Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
7 Applied Instructions (Program Flow)
7.1 CJ / Conditional Jump
105
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)
Function and operation explanation
1. 16-bit operation(CJ, CJP)
While the command input is ON, CJ or CJP instruction executes a program with a specified pointer number or
ladder block label.
1) In the case of CJ instruction
2) In the case of CJP instruction
Cautions
1) Instructions of pulse operation type are not provided in the FX0S, FX0 or FX0N PLC.
To execute pulse operation, make the instruction execution condition pulse type.
2) Set a pointer number or ladder block label for the jump destination in the ladder block header .
Add ":" to the entered pointer number or ladder block label.
3) A pointer number or ladder block 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).
P10:
Command
User program
User program
Which is skipped and is not executed when the command turns ON.
User program
Executed in every scan
Command
input
CJ
ON
Jumps to the pointer
while the command is ON.
CJ
EN ENO
p
P10
P10:
Command
User program
User program
Which is skipped and is not executed in one operation
cycle when the command turns ON.
User program
Jumps to the pointer only in one
operation while the command is ON.
Executed in one scan
Command
input
CJP
ON
CJP
EN ENO
p
P10
P20:
CJ
EN ENO
p
X030
P20
Y010
Y011
X031
X032
P10:
X022
CJ
EN ENO
p
P10