5-3. Description of Basic Instructions
107
Outline
PSHS: Stores the operated result up to this instruction.
RDS: Reads the operated result stored by the
PSHS
instruction.
POPS: Reads and clears the operated result stored by the
PSHS
instruction.
Program example
■
Explanation of example
■
Time chart
ON
OFF
X0
ON
OFF
X1
ON
OFF
Y0
ON
OFF
X2
ON
OFF
Y1
ON
OFF
X3
ON
OFF
Y2
• When X0 turns ON:
1) Stores the operated result up to the
PSHS
instruction
and Y0 goes ON when X1 turns ON.
2) Reads the stored result by the
RDS
instruction and Y1
goes ON when X2 turns ON.
3) Reads the stored result by the
POPS
instruction and Y2
goes ON when X3 turns OFF. Also clears the stored result
by the
PSHS
instruction.
Ladder Diagram
FP Programmer
II
key operations
Boolean Non-ladder
Address Instruction
0
X0
Y0
Push Stack
X1
X2
X3
Read Stack
Pop Stack
Y1
Y2
RDS
Read stack
POPS
Pop stack
PSHS
Push stack
Availability
Step
1
1
1
All series
SHIFT
SC
WRT
WRT
ST
X-WX
ST
X-WX
0
WRT
AN
Y-WY
ST
X-WX
2
WRT
AN
Y-WY
ST
X-WX
1
WRT
AN
Y-WY
OT
L-WL
WRT
0
WRT
AN
Y-WY
OT
L-WL
AN
Y-WY
2
WRT
9
SHIFT
SC
SHIFT
SC
WRT
WRT
A
SHIFT
SC
AN
Y-WY
OT
L-WL
WRT
1
WRT
SHIFT
SC
WRT
WRT
B
SHIFT
SC
WRT
WRT
NOT
DT/Ld
ST
X-WX
3
ST
X
0
PSHS
AN
X
1
OT
Y
0
RDS
AN
X
2
OT
Y
1
POPS
AN/
X
3
OT
Y
2
0
1
2
3
4
5
6
7
8
9
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...