7 Applied Instructions (Program Flow)
7.1 CJ / Conditional Jump
107
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
8) Because M8000 is normally ON while a PLC is operating, unconditional jump is specified when M8000 is
used in the following example.
9) The operation of the CJ instruction and contact coils are described later.
10) The relationships between the master control instructions and jump instructions are described later.
11) The jumping ranges of CJ instruction is different according to the pointer type specified by .
Program examples
In one operation cycle after X023 changes to ON from OFF, CJ P7 instruction becomes valid.
By using this method, jump can be executed after all outputs between CJ P7 instruction and the pointer P7
turn OFF.
Pointer type Jumping range
Pointer number Pointer numbers within the same program file
Ladder block label Ladder block labels within the same POU
P5:
M8000
User program
(It is skipped, and is not executed.)
User program
RUN monitor
CJ
EN ENO
p
P5
P7:
X023
User program
M0
X023
CJ
EN ENO
p
P7
PLS
EN ENO
d
M0