3.11 PSHS (Push stack), RDS (Read stack), POPS (Pop stack)
■
Ladder diagram
■
Outline of operation
Type of
instruction
Operation
PSHS
The operation result immediately before the PSHS instruction is stored and operation continues
from the next step.
RDS
Reads the operation result saved by the PSHS instruction, and continues with the operation using
it from the next step.
POPS
Reads the operation result saved by the PSHS instruction, continues with the operation using it
from the next step, and resets the operation result saved by the PSHS instruction.
● Saves a single operation result, and reads it and performs multiple operations.
● This instruction is used to branch from a single contact and connect to further contacts.
■
Operation Example
1) When X100 is ON, the PSHS instruction saves the operation result and outputs it to Y110 if
X101 is ON.
2) The RDS instruction reads the operation result and outputs it to Y111 if X102 is ON.
3) The POPS instruction reads the operation result and outputs it to Y112 if X103 is OFF, and
resets the operation result saved by the PSHS instruction.
3.11 PSHS (Push stack), RDS (Read stack), POPS (Pop stack)
3-22 WUME-FP7CPUPGR-12