6. BASIC INSTRUCTIONS
6
−
50
MELSEC-A
Execution Conditions
Program Examples CML
(1) Program which reverses the data of X0 to 7 and transfers the result to D0.
(2) Program which reverses the data of M16 to 31 and transfers the result to the
Y40 to 4F.
(3) Program which reverses the data of D0 and stores the result to D16 when X3
turns on.
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
Negative transfer command
0
X003
CML D0 D16
P
•
Coding
0 LD
X003
1 CML
D0
D16
6 END
0
•
Coding
0 LD
M9038
1 CML
K2X000
D0
6 END
M9038
CML X000 D0
K2
The number of bits of (S) < The number of bits of (D):
These bits are
all regarded 0.
0
M9038
CML M16 Y040
K2 K3
•
Coding
0 LD
M9038
1 CML
K2M16 K3Y040
6 END
The number of bits of (S) < The number of bits of (D):
These bits are
all regarded 0.
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......