7. APPLICATION INSTRUCTIONS
7
−
15
MELSEC-A
DXOR
(1) Program which compares the 32-bit data of X20 to 3F and the bit pattern of data
of D9 and 10, and stores the number of different bits to D16 when X6 turns on.
X006
0
P
K8
DXOR X020
D9
P
DSUM D9
Exclusive OR of the 32-bit data of X20 to 3F and
the data of D9 and 10 is performed.
Comparing 32-bit data of D9 and 10, the total
number of "1" bits is stored into A0.
•
Coding
0 LD
X006
1 DXORP K8X020
D9
10
DSUMP D9
13
MOVP
A0
D16
18
END
P
MOV A0 D16 Data of A0 is stored into D16.
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......