Mitsubishi Electronics C64 Home Safety Product User Manual


 
7. Basic Commands
LDP, LDF, ANDP, ANDF, ORP, ORF
- 115 -
Cautions
(1) Devices used for LDP have to be limited to the ones already output with OUT command, etc.
If the devices to be output later are used, the condition will not be achieved.
10
13
X0 X5
M1
M1
X0
X5
M1
M1
X0
X5
M1
M1
17
X0 X5
M1
10
M1
M1
Correct example
Incorrect example
M1
(2) The commands such as LDP, LDF, etc. cannot use in high-speed program processing. Use the
commands such as PLS, MEP, etc.
ANDP, ANDF
(1) ANDP is a leading edge pulse series connection command, and ANDF is a trailing edge pulse
series connection command. They perform an AND operation with the operation result up to that
point, and take the resulting value as the operation result.
The ON/OFF data used by ANDP and ANDF are indicated in the table below:
Devices designated by ANDP ANDP state Devices designated by ANDF ANDF state
OFF ON ON OFF ON
OFF OFF
ON ON
OFF
ON OFF
OFF
ON OFF ON
ORP, ORF
(1) ORP is a leading edge pulse parallel connection command, and ORF is a trailing edge pulse
parallel connection command. They perform an OR operation with the operation result up to that
point, and take the resulting value as the operation result.
Devices designated by ORP ORP state Devices designated by ORF ORF state
OFF ON ON OFF ON
OFF OFF
ON ON
OFF
ON OFF
OFF
ON OFF ON
Program example
(1) Program to execute the MOV command at leading edge of X0 or X1:
Coding
No. of
steps
Com-
mand
Device
10 LDP X0
16 ORP X1
22 MOV K0 D0
X1
10
MOV K0 D0
X0
25