
Appendix D How to Use PLC Function
Explanations:
To save contents of the accumulative register into the operation result. (the result operation pointer pluses 1)
Mnemonic
MRD
Operand
Function
Reads the current result of the internal PLC operations
None
Explanations:
Reading content of the operation result to the accumulative register. (the pointer of operation result doesn’t move)
Mnemonic
MPP
Operand
Function
Reads the current result of the internal PLC operations
None
Explanations:
Reading content of the operation result to the accumulative register. (the stack pointer will decrease 1)
Program Example:
Ladder diagram:
X0 | MPS |
X1 | |
| Y1 |
| X2 |
MRD | M0 |
| Y2 |
MPP | END |
|
Command code: | Operation: | |
LD | X0 | Load contact A of X0 |
|
|
|
MPS |
| Save in stack |
AND | X1 | Connect to contact A of X1 in |
|
| series |
OUT | Y1 | Drive Y1 coil |
|
|
|
MRD |
| Read from the stack (without |
|
| moving pointer) |
AND | X2 | Connect to contact A of X2 in |
|
| series |
OUT | M0 | Drive M0 coil |
MPP |
| Read from the stack |
OUT | Y2 | Drive Y2 coil |
END |
| End program |
Revision June 2008, 04EE, |