EasyManua.ls Logo

Delta AH500 - Page 185

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AH500 Programming Manual
5-6
Instruction code Operand Function
MPS/MRD/MPP
-
Storing the data in the stack/Reading
the data from the stack/Popping the
data from the stack
Explanation:
1. The instruction MPS is used to store the data in the accumulative register in the stack (the
value of the stack pointer increases by one).
2. The instruction MRD is used to read the data from the stack and store it in the accumulative
register (the value of the stack pointer remains the same).
3. The instruction MPP is used to pop the previous logical operation result from the stack, and
store it in the accumulative register (the value of the stack pointer decreases by one).
Example:
1. Contact A of X0.0 is loaded, and the data in the accumulative register is stored in the stack.
2. Contact A of X0.1 is connected in series, the coil Y0.1 is driven, and the data is read from the
stack (the value of the stack pointer remains the same).
3. Contact A of X0.2 is connected in series, the coil M0 is driven, and the previous logical
operation result is popped from the stack.
Instruction: Operation:
LD X0.0 Contact A of X0.0 is loaded.
MPS The data in the accumulative register is stored in the stack.
AND X0.1 Contact A of X0.1 is connected in series.
OUT Y0.1 The coil Y0.1 is driven.
MRD The data is read from the stack.
AND X0.2 Contact A of X0.2 is connected in series.
OUT M0 The coil M0 is driven.
MPP The previous logical operation result is popped from the stack.
OUT Y0.2 The coil Y0.2 is driven.
END The program ends.
Note:
1. The number of MPS instructions must be equal to that of MPP instructions.
2. The instruction MPS can be used at most 31 times.

Table of Contents

Other manuals for Delta AH500

Related product manuals