5. SEQUENCE INSTRUCTIONS
5
−
35
MELSEC-A
Program Example FEND
(1) Program which uses the CJ instruction.
(
)
(
)
(
)
(
)
X000
0
Y020
X00B
2
CJ P23
X013
6
When XB is on, jump is made to label P23 and
execution is performed from the next step to P23.
Y030
X014
8
Y031
Executed when XB is off.
10
FEND
X001
P23
11
Indicates the end of sequence program when XB
is off.
Y022
•
Coding
0 LD
X000
1 OUT
Y020
2 LD
X00B
3 CJ
P23
6 LD
X013
7 OUT
Y030
8 LD
X014
9 OUT
Y031
10
FEND
11
P23
12
LD
X001
13
OUT
Y022
14
END
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......