7. APPLICATION INSTRUCTIONS
7
−
11
MELSEC-A
DOR
(1) Program which performs logical add of the 32-bit data of X0 to 1F and the
hexadecimal number of F0FF
H
and stores the result to D66 and 67 when XB
turns on.
(2) Program which performs logical add of the 24-bit data of M64 to 87 and the
24-bit data of X20 to 37 and stores the result to D23 and 24 when M8 turns on.
X008
0
P
H
DMOV 0000F0FF D66
P
K8
DOR
X000
D66
Hexadecimal number of F0FF
H
is stored into D66
and 67.
Logical add of the 32-bit data of X0 to 1F and the
32-bit data of D66 and 67 is performed and the
result is stored into D66 and 67.
•
Coding
0 LD
X00B
1 DMOVP H0000F0FF
D66
8 DORP K8X000
D66
17
END
M8
0
P
K6
DMOV X020
D23
P
K6
DOR
M64
D23
24-bit data of X20 to 37 is stored into D23 and 24.
Logical add of the 24-bit data of M64 to 87 and
the 24-bit data of D23 is performed and the result
is stored into D23 and 24.
•
Coding
0 LD
M8
1 DMOVP K6X020 D23
8 DORP K6M64 D23
17
END
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......