6. BASIC INSTRUCTIONS
6
−
60
MELSEC-A
Operation Errors
In the following cases, operation error occurs and the PC stops its operation.
•
When there are mult. contacts of the same labels, a jump has been made to that
label by the CJ, SCJ, or JMP instruction.
•
There is no label at the jump destination of CJ, SCJ, or JMP instruction.
•
Jump has been made to a label located below the END instruction.
•
Jump has been made to a step between FOR and NEXT.
•
Jump has been made into a subroutine.
Program Examples SCJ
(1) Program which causes a jump during the next scan to END when XC turns on.
(
)
(
)
(
)
0
4
11
X00C
X00C
X00B
X013
X017
SCJ P255
Y093
Y099
Y083
When XC turns on, jump is made from the next
scan to END.
(P255 represents END.)
Executed when XC turns off or turns from off
to on.
END
•
Coding
0 LD
X00C
1 SCJ
P255
4 LDI
X00C
5 MPS
6 AND
X013
7 OUT
Y093
8 MPP
9 AND
X017
10
OUT
Y099
11
LD
X00B
12
OUT
Y083
13
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: ......