7 Applied Instructions (Program Flow)
7.1 CJ / Conditional Jump
106
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
4) When the pointer number or ladder block label specified by is same and there is one jump
destination, the following operation is caused.
When X020 turns ON, the program execution jumps from CJ instruction corresponding to X020 to the
pointer P9. When X020 turns OFF and X021 turns ON, the program execution jumps from CJ instruction
corresponding to X021 to the pointer P9.
5) When a pointer number or ladder block label (including pointer number or ladder block label for CALL
instructions described later) is used two or more times, an error is caused.
6) The pointer P63 specifies jump to END step. The pointer P63 needs not to be programmed.
7) Any pointer number or ladder block label cannot be shared by CALL instruction and CJ instruction.
X020
X021
P9:
CJ
EN ENO
p
CJ
EN ENO
p
P9
P9
P9:
User program
X030
X020
P9:
User program
CJ
EN ENO
pP9
CJ
EN ENO
pP9
X000
M8000
X001
RUN monitor
(normally ON)
P15:
User program
Command
Subroutine program
dedicated to CALL instruction
Program a label (P)
after FEND instruction.
CJ
EN ENO
pP15
CALLP
EN ENO
p
FEND
EN ENO
P15
SRET
EN ENO