Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G

Скачать
Страница из 936
217
FX
3G
/FX
3U
/FX
3UC
 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
In
trodu
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion 
Li
st
4
D
evices 
in D
etail
5
Specifi
ed t
he
D
evice &
 
C
onst
ant
6
Bef
ore 
Pr
ogr
am
m
ing
7
B
asic 
In
st
ru
ct
ion
8
FNC0
0-F
NC0
9
Pr
ogr
am
 Flow
9
FN
C
10-FN
C
19
Mo
ve
 &
 Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
 &
 Logic 
O
per
ati
on
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
/FX
3UC
 : n = 0 to 4095, FX
3G
 : 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
X Y M T C S D….b KnX KnY KnM KnS T C D R U…\G… V Z Modify K H
E
"…"
P
3
3

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 ‚