7 Applied Instructions
7.1 Program Flow
114
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Cautions
1) The FX0, FX0S or FX0N PLC does not support the instructions of pulse operation type.
To execute pulse operation, make the instruction execution condition pulse type.
2) The figure below shows programming of a label.
When creating a circuit program, move the cursor to the left side of the bus line in the ladder diagram, and
input a label P at the head of the circuit block.
3) A label can be programmed in a smaller number step than CJ instruction. However, note that a watchdog
timer error occurs when the scan time exceeds 200 ms (default setting).
4) When the pointer number in operands is same and there is one label, the following operation is caused.
When X020 turns ON, the program execution jumps from CJ instruction corresponding to X020 to the
label P9. When X020 turns OFF and X021 turns ON, the program execution jumps from CJ instruction
corresponding to X021 to the label P9.
5) When a label number (including labels for CALL instructions described later) is used two or more times,
an error is caused.
Label
P 20
CJ
EN ENO
p
Bus line
X030
P20
Y010
Y011
X031
X032
Label
P 10
X022
CJ
EN ENO
p
P10
X020
X021
Label
P 9
CJ
EN ENO
p
CJ
EN ENO
p
P9
P9
P 9
Label
User program
X030
X020
P 9
Label
User program
CJ
EN ENO
pP9
CJ
EN ENO
pP9