7 Applied Instructions (Program Flow)
7.1 CJ / Conditional Jump
104
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
7.1 CJ / Conditional Jump
Outline
CJ or CJP instruction jumps to the specified pointer number or ladder block label.
The sequence program steps between CJ or CJP instruction and the pointer are not executed.
1. Format and operation, execution form
2. Input and output data types
3. Applicable devices
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
CJ 16 bits Continuous
Syntax such as condition sentence is used.
Refer to the following manual for syntaxes.
→ Q/L/F Structured
Programming Manual
(Fundamentals)
CJP 16 bits Pulse
Variable Description Data type
Input
variable
EN Execution condition Bit
Pointer number or ladder block label for the jump destination ANY16
Output
variable
ENO Execution state Bit
Operand
type
Bit Devices Word Devices Others
System User Digit Specification
System
User
Special
Unit
Index
Constant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifier K H E
""
P
zz
CJ
EN ENO
p
CJP
EN ENO
p
p
p