M800V/M80V Series PLC Programming Manual (1/2)
7 Basic Instructions
7.2 Connection Instructions
MEP, MEF: Operation result pulse conversion
Setting
Bit device
data
X
Y
M
L
F
[Instruction symbol] [Execution condition]
MEP
MEF
Functions
MEP
If operation results up to MEP instruction are rising edge (from OFF to ON), goes ON (continuity state).
If operation results up to MEP instruction are anything other than rising edge, goes OFF (noncontinuity state).
Use of the MEP instruction simplifies pulse conversion processing when multiple contacts are connected in series.
MEF
If operation results up to MEF instruction are falling edge (from ON to OFF), goes ON (continuity state).
If operation results up to MEF instruction are anything other than falling edge, goes OFF (noncontinuity state).
Use of the MEF instruction simplifies pulse conversion processing when multiple contacts are connected in series.
Arithmetic errors
There are no arithmetic errors associated with the MEP or MEF instructions.
Program example
A program which performs pulse conversion on the operation results of X0 and X1.
X0 X1
0
4
POINT
(1) The MEP and MEF instructions may not work properly after the pulse conversion of contacts with index in a sub-
routine program or in a FOR - NEXT instruction.
Use EGP/ EGF instruction when executing a pulse conversion of contact with index in a FOR - NEXT instruction
or in a subroutine program.
(2) Because the MEP and MEF instructions operate with the operation results immediately prior to the MEP and MEF
instructions, the AND instruction should be used at the same position.
The MEP and MEF instructions cannot be used at the LD or OR position.
Usable devices
B SB
T SM V
T
C
[Ladder mode]
SET M0
END
Con-
Word device
stant
D
R/ZR W SW SD
Z
K
Steps
0
1
2
3
4
131
Digit
Pointer
designa-
Index
tion
H
P
[List mode]
Inst.
Device
LD
X0
AND
X1
MEP
SET
M0
END
IB-1501667-B