The task is to get either or a combination of the vertical axis servo motors (X,Z,B) to run, based on the condition of the LED associated with each axis.
If the X axis LED is on then the X axis runs; if both X axis and Z axis LED's are on then both will run, etc.
I would like all motors to run simultaneously - vs sequentially, if the LED status indicates more than one motor is to run.
BTW, the Y axis indexes a belt between the vertical axis cycles.
Right now, the current button has the motors running sequentially.
Thanks in advance for any help.
This is the code I currently have on the button.
MoveBelt = GetUserDRO (1060) 'Belt Index Increment
code "G91"
code "F5"
If GETUSERLED (1031) Then 'checks X axis LED
code "G1X-1"
code "G1X1"
End If
If GETUSERLED (1032) Then 'checks Z axis LED
code "G1Z-1"
code "G1Z1"
End If
If GETUSERLED (1033) Then 'checks B axis LED
code "G1B-1"
code "G1B1"
End If
code "F200"
code "G1A" & MoveBelt
While IsMoving
SETUSERLED (1036,1) 'turn on A axis LED
Wend
SETUSERLED (1036,0) 'turn off A axis LED
code "G90"