- Joined
- Feb 8, 2014
- Messages
- 11,167
Good idea, added to list.
My starting problem is that I know nothing about programing anything in any language. So i don't even have a clue as to how to structure a program let alone the syntax of of all there cryptic function names.
Even the starter kits and manuals are loaded with TLAs right from the begining that I do not know what they mean.
In its simplest form, your program will have 5 basic functions
User Interface (GUI)
Generate Pulse & Direction for steppers
Read Inputs
Write Outputs
Main (this is where the timing and calls are done)
Somewhere in the program will be a clock that will cause the program to scan a module and execute the above functions. I don't know what the syntax looks like for this, but I'll bet there is a lot of info on the internet.
I would create a module for each of these functions and call the module as needed. Not sure how this is done with an Arduino, never programmed one.
Then create a descriptive variable name for each item because both you and the program need to be able to read it, maybe like LlimitSwX (Left Limit Switch X) and assign to maybe input 1. I don't know what the variable name limitations are for your development platform, but I think you get the general idea.
I hope this will get you pointed in the right direction.