Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
DOR, DORP
- 241 -
Execution conditions
The execution conditions for DOR, DORP are as follows.
Operation command OFF
DOR
ON
Executed per scan
Executed per scan
DORP
Program example
(1) Program to execute logical OR of the X0 to 1F 32-bit data and the F0FF hexadecimal when XB
turns ON, and to store the results in R66, 67.
HF0FFDMOV R66
XB
10
K8X0
R66
DOR
Store the F0FF hexadecimal in R66, 67.
Logical OR the X0 to 1F 32-bit data and R66, 67
32-bit data, and store the results in R66, 67.
Coding
No. of
steps
Com-
mand
Device
10 LD XB
11 DMOV
HFOFF
R66
14 DOR X8X0 R66
17
(2) Program that executes logical OR of the M64 to 87 24-bit data and X20 to 37 24-bit data when
M8 turns ON, and stores the results in D23, 24.
K6X20DMOV D23
M8
10
K6M64
D23
DOR
Store the X20 to 37 24-bit data in D23, 24.
Logical OR the M64 to 87 24-bit data and
D23, 24 data, and store the results in D23, 24.
Coding
No. of
steps
Com-
mand
Device
10 LD M8
11 DMOV K6X20 D23
14 DOR
K6M64
D23
17