6. BASIC INSTRUCTIONS
6
−
58
MELSEC-A
6.5 Program Branch Instructions
6.5.1 Conditional jump, unconditional jump
(CJ, SCJ, JMP)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012
(M9010,
M9011)
P
O
O
O
Functions CJ
(1) Executes the program of specified pointer number when the jump command is
on.
(2) Executes the program of the next step when the jump command is off.
SCJ
(1) Executes the program of specified pointer number, starting at the next scan,
when the jump command changes from off to on.
(2) Executes the program of the next step when the jump command is off or
changes from off to on.
Jump commands
Applicable
CPU
All CPUs
CJ P**
SCJ
JMP
P**
P**
Jump
destination
pointer
number
(Label)
P**
* P255 indicates END and cannot
be used as a label.
Jump command
CJ
Executed per scan
Jump command
SCJ
1 scan
Executed per scan
P**
Pointer number of jump
destination (P0 to P255)
Setting data
ON
OFF
ON
OFF
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......