omron — WHILE program instruction

WHILE program instruction Example The following example uses a WHILE structure to monitor a combination of input signals to determine when a sequence of motions should be stopped. In this example, if the signal from either part feeder becomes zero (assumed to indicate the feeder is empty), then the repetitive motions of the robot stops and the program continues. Note that if either feeder is empty when the WHILE structure is first encountered, then execution immediately skips to step 27: 20 feeder.1 = 1037 21 feeder.2 = 1038 22 . 23 WHILE SIG(feeder.1, feeder.2) DO 24 CALL move.part.1() 25 CALL move.part.2() 26 END 27 28 ; Either feeder #1 or feeder #2 is empty 29 . 30 . 31 .

Related Keywords DO program instruction EXIT program instruction NEXT program instruction UNTIL program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 566