Chapter 16 PLC Function Applications│CP2000
16-45
Command Function
MPS
Save to stack
Operand N/A
Save current content of cumulative register to the stack. (Add one to stack pointer)
Command Function
MRD
Read stack (pointer does not change)
Operand N/A
Reads stack content and saves to cumulative register. (Stack pointer does not
change)
Command Function
MPP
Read stack
Operand N/A
Retrieves result of previously-save logical operation from the stack, and saves to
cumulative register. (Subtract one from stack pointer)
Ladder diagram:
X0
Y1
X1
M0
X2
Y2
END
MPP
MRD
MPS
Command code: Description:
LD X0 Load Contact a of X0
MPS
Save to stack
AND X1
Create series connection
to contact a of X1
OUT Y1 Drive Y1 coil
MRD
Read stack (pointer does
not change)
AND X2
Create series connection
to contact a of X2
OUT M0 Drive M0 coil
MPP
Read stack
OUT Y2 Drive Y2 coil
END Program conclusion
Command Function
OUT
Drive coil
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
- - -
Outputs result of logical operation before OUT command to the designated element.
Coil contact action:
Result:
Out command
Coil
Access Point:
Contact a (N.O.) Contact b (N.C.)
FALSE Off Not conducting Conducting
TRUE On Conducting Not conducting
Ladder diagram:
X0
X
Y1
Command code: Description:
LD X0 Load Contact b of X0
AND X1
Establish parallel
connection to contact a
of X1
OUT Y1
Drive Y1 coil