Delta AH500 Programming Manual page 185

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH5 00 Prog ram m ing M an ua l
Instruction code
MPS/MRD/MPP
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.
5 - 6
Operand
Storing the data in the stack/Reading
-
the data from the stack/Popping the
data from the stack
Function

Advertisement

Table of Contents
loading

Table of Contents