7. APPLICATION INSTRUCTIONS
7
−
10
MELSEC-A
Program Examples WOR
(1) Program which performs logical add of the data of D10 and that of D20, and
stores the result to D10 when XA turns on.
(2) Program which performs logical add of the data of X10 to 1B and the data of
D33, and sends the result to the Y30 to 3F when XA turns on.
(3) Program which performs logical add of the data of D10 and that of D20, and
stores the result to D33 when XA turns on.
(4) Program which performs logical add of the data of X10 to 1B and the data of
D33, and sends the result to the Y30 to 3B when XA turns on.
X00A
0
P
WOR D20 D10
•
Coding
0 LD
X00A
1 WORP D20
D10
6 END
X00A
0
P
K3
WOR X010 D33
P
K4
MOV D33 Y030
Logical add of the data of X10 to 1B and the data
of D33 is performed and the result is stored into
D33.
Data of D33 is sent to the Y30 to 3F.
•
Coding
0 LD
X00A
1 WORP K3X010 D33
6 MOVP D33
K4Y030
11
END
X00A
0
P
WOR D10 D20 D33
•
Coding
0 LD
X00A
1 WORP D10
D20
D33
8 END
X00A
0
P
K3
K3
WOR X010 D33 Y030
•
Coding
0 LD
X00A
1 WORP K3X010 D33
K3Y030
8 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: ......