Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
217
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
8.1 FNC 00 – CJ / Conditional Jump
Outline
CJ or CJP instruction jumps to a pointer (P); The sequence program steps between CJ or CJP instruction and the
pointer are not executed.
CJ and CJP instructions reduce the cycle time, and allow programs with double coils.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (CJ and CJP)
While the command input is ON, CJ or CJP instruction executes a program with a specified label (pointer number).
1) In the case of CJ instruction
2) In the case of CJP instruction
Operand type Description Data type
(FX
3U/FX3UC : n = 0 to 4095, FX3G : n=0 to 2047) (P63 jumps to END instruction.) Pointer number
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD.b KnX KnY KnM KnS T C D R U\G VZModifyKH E ""P
33
P
FNC 00
CJ
16-bit Instruction
3 steps
CJ
CJP
Continuous
Operation
Pulse (Single)
Operation
Mnemonic Operation Condition Mnemonic Operation Condition
32-bit Instruction
Pn
Pn
CJ
Label
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.
Pn
Pn
CJP
Pn
Label
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
Pn
Pn