
CLM01.4-LAP-01VRS
Writing the User Program
5-15
DOK-CONTRL-CLM01.4LAP1-FK01-EN-P
BAC – Branch Conditional on Count
or
Preset count
Actual quantity offset
Target location
Like the COU command, this command allows the program to count
events, process cycles, quantities, etc.
First the quantity is incremented. Then, the actual quantity is compared
with the desired target quantity. If the programmed target quantity is not
reached, the program jumps to the target location. If the target quantity is
reached, the actual quantity is reset to zero and the program proceeds to
the next instruction.
Examples: a) Count following the event
0000
WAI
01.000
0001
PSI
1 +000050.000 250
0002
BAC
0000 +0000 00010
0003
JST
0000
Positioning is executed 10 times, and then the program waits for a new
start signal.
Examples: b) Count prior to the event
0000
BAC
0002 +0000 00010
0001
JST
0000
0002
PSI
1 +000050.000 250
0003
WAI
01.000
0004
JMP
0000
Positioning is executed 9 times, and then the program waits for a new
start signal.
For additional information on this command, see the explanation below
under the COU command.
BAC V600 +1234 V603
BAC 0345 +1234 12345
Summary of Contents for CLM1.4
Page 117: ...7 20 Functions CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 205: ...9 42 Interfaces CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 213: ...10 8 Command Communications CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 233: ...11 20 Diagnostic Messages CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 272: ......
Page 273: ...Printed in the U S A Barcode...