Mps: push mrd: read mpp: pop – KEYENCE Visual KV Series User Manual
Page 127

2.4 Instruction Details
1
2
3-103
Chapter 2 Instructions
Example
Coding
Description
•
When input relay 0000 is ON:
0500 turns ON as soon as 0001 turns ON.
0501 turns ON as soon as 0002 turns ON.
0502 turns ON as soon as 0003 turns ON.
•
The MPS instruction is used at the start of an output branch.
•
The MRD instruction is used to connect an output branch.
•
The MPP instruction is used at the end of an output branch.
•
When the KV IncrediWare (DOS)/LADDER BUILDER for KV programming
support software is used, the MPS, MRD, and MPP instructions are automatically
converted into mnemonics and entered in the ladder diagram.
Note 1: Limit the number of MPS instructions to 8 or less in a circuit.
Note 2: An MPS instruction must have a corresponding MPP instruction. This
means that the same number of MPS and MPP instructions must be used in a
program. An MPS or MPP instruction without a corresponding MPP or MPS instruc-
tion results in a logic error.
Operands
Key operation
MPS: Push
MRD: Read
MPP: Pop
Stores current input and arithmetic flag
status.
Reads input and arithmetic flag status
stored with PUSH.
Reads and clears input and arithmetic flag
status stored with PUSH.
Line No.
Instruction
Operand
0000
LD
0000
0001
MPS
0002
AND
0001
0003
OUT
0500
0004
MRD
0005
AND
0002
0006
OUT
0501
0007
MPP
0008
AND
0003
0009
OUT
0502
MPS
C
MRD
D
MPP
c h
0000
0501
0500
0001
0002
0003
0502
MRD
MPP
MPS
MPS
C
MRD
D
MPP
ch
ENT
R-SRCH
:
:
:
MPS / MRD / MPP
KVNKA Chap 02_4bP.p65
08.3.11, 0:00 PM
103