Mitsubishi Electronics C64 Home Safety Product User Manual


 
7. Basic Commands
MEP, MEF
- 117 -
{ MEP, MEF ... Operation results pulse conversion
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
4
MEP
MEF
Function
MEP
(1) If operation results up to MEP command are leading edge (from OFF to ON), turns ON (continuity
state).
If operation results up to MEP command are anything other than leading edge, turns OFF
(non-continuity state).
(2) Use of the MEP command simplifies pulse conversion processing when multiple contacts are
connected in series.
MEF
(1) If operation results up to MEF command are trailing edge (from ON to OFF), turns ON (continuity
state).
If operation results up to MEF command are anything other than trailing edge, turns OFF
(non-continuity state).
(2) Use of the MEF command simplifies pulse conversion processing when multiple contacts are
connected in series.
Program example
(1) Program to perform pulse conversion on the operation results of X0 and X1:
Points
(1) The MEP and MEF commands will occasionally not function properly when pulse conversion is
conducted for a contact that has been indexed by a sub-routine program or by the FOR to NEXT
loop.
If pulse conversion is to be conducted for a contact that has been indexed by a sub-routine program
or by the FOR to NEXT loop, use the EGP/EGF commands.
(2) Because the MEP and MEF commands operate with the operation results immediately prior to the
MEP and MEF commands, the AND command should be used at the same position.
The MEP and MEF commands cannot be used at the LD or OR position.
Coding
No. of
steps
Com-
mand
Device
10 LD X0
11 AND X1
12 MEP
16 SET M0
10
SET M0
X0
X1
17