I have been writing a program for palletising and want the robot to wait for a two-bit signal coming in from inputs 3 and 4 if both of these are off or B000 is 0 (This is a counter bit and initialises the placing of the fist product). As of now I have this code:
WAIT (IN# (3) <> 0 AND IN# (4) <> 0) OR B000 = 0
And I have tried a wait loop, yet I still got a syntax error:
*Wait1
IF (IN#(3)=OFF AND IN#(4)=OFF) OR B000 = 0
JUMP *EndWait1
JUMP *Wait1
*EndWait1
Does someone know where the error is and how to fix it?
One condition is that all three of those conditions have to be checked at the same time since input 3 and 4 also get different bitcodes which will later in the program initialise something.
Wait command with multiple conditions - NX100
-
Entiti847 -
March 24, 2025 at 11:28 AM -
Thread is Resolved