7. APPLICATION INSTRUCTIONS
7
−
14
MELSEC-A
Program Examples WXOR
(1) Program which performs exclusive OR of the data of D10 and that of D20, and
stores the result to D10 when XA turns on.
(2) Program which performs the exclusive OR of the data of X10 to 1B and data of
D33, and sends the result to the Y30 to 3B when XA turns on.
(3) Program which performs exclusive OR of the data of D10 and that of D20, and
stores the result to D33 when XA turns on.
(4) Program which performs exclusive OR 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
WXOR D20
D10
•
Coding
0 LD
X00A
1 WXORP D20
D10
6 END
X00A
0
P
K3
WXOR X010 D33
P
K3
MOV
D33
Y030
Exclusive OR 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 Y30 to 3B.
•
Coding
0 LD
X00A
1 WXORP K3X010 D33
6 MOVP D33
K3Y030
11
END
X00A
0
P
WXOR D10
D20 D33
•
Coding
0 LD
X00A
1 WXORP D10
D20
D33
8 END
X010
0
P
K3
K3
WXOR X010 D33 Y030
•
Coding
0 LD
X010
1 WXORP K3X010 D33
K3Y030
8 END
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......