6-20 Writing the User Program ECODRIVE03-FL*-04VRS
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
BCE - Branch Conditional on Bit
or
0 = Jump when status is ’0’
1 = Jump when status is ’1’
Bit: M0 – M5, M8
I0 - I4
Q0 - Q2
Target Instruction
The jump is executed if the programmed bit has met the preselected
condition.
If the condition is not met, the program continues at the instruction with
the next higher number.
The program continues after the time period of one cycle.
BIC - Branch Conditional on Bit Field Value
or
Mode
0 = Evaluate as binary
1 = Evaluate BCD
Number of Bits: 1 to 8
Start Bit (Low Bit): M0 – M5, M8, I0 - I4, Q0 - Q2
Jump Length : Maximum value = 99
Jump Offset
This command executes a jump to a calculated target location. The
destination depends on the state of the programmed bits. Up to 8 bits are
considered. If a target instruction is >0999, the error message "F- 03 02 –
NC-Block Nr.illegal." is issued.
If digits >9 result from the BCD evaluation, the error message "F- 02 14 –
Input Not BCD" is issued.
The target location is calculated as follows:
()
LengthJumpScalingTotalOffsetnInstructionInstructioTarget ×+=
Fig. 6-11: Calculation of the Target Instruction, BIC Command
The program proceeds to the target location following the time period of
one cycle.
BCE V602 M0.02.3 V600
BCE 0100 M0.02.3 1
BIC 0234 10 M2.02.3 2 1
BIC V600 V601 M2.02.3 2 1