Manual
10-6 Using ACL Variables
Counting the Number of Retries
In this example, the workpieces are being fetched from a parts feeder. A microswitch
attached to Digital Input 0 indicates "0" if a part was correctly fetched; otherwise the
microswitch is "1". If the fetch fails three times in a row, the Automove will halt.
Table 31 - Counting the Number of Retries
ACL Commands: Comments:
BD 0; XD 5, 0; ED; Repeat Sequence 5 indefinitely until there is a failure.
BD 5; VS 44, 3; XU 6, 0, 1; ... ED; Set variable 44 to the allowable number of failures. Call 6
repeatedly until a fetch succeeds. Then process the
(correctly-fetched) part.
BD 6; ... XI 7, 1, 1; ED; Attempt to fetch a part. If the fetch fails, call Sequence 7.
BD 7; V- 44, 1; V< 44, 1;
XI 8, 1; ED;
Subtract 1 from the fail counter. If it reaches less than 1,
call Sequence 8 to halt.
BD 8; AD; ED; Halt (i.e., Abort Download Execution).