Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
5-17
MEP,MEF
1
2
3
4
5
6
7
8
5
.2 Association Instructions
5
.2.4 Operation re
sult conver
sions (MEP,MEF)
5.2.4  
Operation result conversions (MEP,MEF)
MEP,MEF
Function
MEP
(1) If operation results up to the MEP instruction are leading edge (from OFF to ON), goes ON 
(continuity status).
If operation results up to the MEP instruction are anything other than leading edge, goes 
OFF (non-continuity status).
(2) Use of the MEP instruction simplifies pulse conversion processing when multiple contacts are 
connected in series.
MEF
(1) If operation results up to the MEF instruction are trailing edge (from ON to OFF), goes ON 
(continuity status).
If operation results up to the MEF instruction are anything other than trailing edge, goes OFF 
(non-continuity status).
(2) Use of the MEF instruction simplifies pulse conversion processing when multiple contacts are 
connected in series.
Operation Error
(1) There are no operation errors associated with the MEP or MEF instruction.
Program Example
(1) A program which performs pulse conversion to the operation results of X0 and X1
[Ladder Mode]
[List Mode]
 
1. The MEP and MEF instructions will occasionally not function properly when 
pulse conversion is conducted for a contact that has been indexed by a 
subroutine program or by the FOR to NEXT instructions.  If pulse conversion is 
to be conducted for a contact that has been indexed by a subroutine program 
or by the FOR to NEXT instructions, use the EGP/EGF instructions.
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.
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Basic
Process
High
performance
Redundant Universal
MEP
MEF
Command
Command
Step
Instruction
Device