ECODRIVE03-FL*-04VRS Writing the User Program 6-19
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
APZ - Byte Set / Clear and Count
Bit Field (see Parameter AA11)
Using this command, the status of up to 8 bits of the byte defined in
Parameter AA11 (Tool Wear) can be controlled. For each of up to 8 bits,
a separate counter is incremented by one whenever the bit status
changes from ’0’ to ’1.’ This enables the number of uses for a tool, and
therefore also its wear, to be determined.
Otherwise, this command operates like the APE command.
The program proceeds to the next instruction following the time period of
one cycle.
BAC - Branch Conditional on Count
or
Preset Count
Actual Quantity Offset
Target Instruction
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 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.
APZ 21022001
BAC V600 +1234 V603
BAC 0345 +1234 12345