I'm putting together a device that will drive two stepper motors and 2 DC motors with variable settings set prior to the "cycle start" button being pressed. Within the loop, I started writing the code in what I think would work but I'm not 100% sure of what is allowed within an "if else" tree. If I structured it like the following, would that work? Would it cause a bunch of problems (assuming the commands therein were correct)?
If (cycle start) If (stepper motor 1 direction switch) run in this direction run at speed run for this duration Else run in opposite direction run at speed run for this duration If (stepper motor 2) Else If (DC motor 1) Else If (DC motor 2) Else
That's the gist of the intent of the program. I'm sure there is a million ways to drive the intent but I'm still a bit confused with what is actually functional using If..Else