Basic Instructions
2 − 25
Caution regarding repeated use of a PSHS instruction
The PSHS instruction is limited in the number of times that it can be used consecutively. The number of times
that the instruction can be used consecutively before the next POPS instruction is as shown below.
Type No. of consecutive times
FP0, FP−e, FPΣ,FP−X , FP0R Up to 8 times maximum
FP2, FP2SH, FP10SH Up to 7 times maximum
If the instruction is used consecutively more than the allowable number of times, be aware that the program
will not run correctly.
1
2
3
4
5
6
1
Y10
X0
X1 X2 X3 X4 X5 X6
ST X 0
PSHS ....
AN X 1
PSHS ....
AN X 2
PSHS ....
AN X 3
PSHS ....
AN X 4
PSHS ....
AN X 5
PSHS ....
AN X 6
OT Y10
23456
This example shows the instruction used
consecutively 6 times.
If a POPS instruction is used during repeated use of a PSHS instruction, reading will take place in order
beginning from the last data stored by the PSHS instruction.
Y10
X0
X1 X2 X3 X4 X5
POPS Reading.....
AN X 6
OT Y 11
POPS Reading.....
AN X 7
OT Y 12
POPS Reading.....
AN X 8
OT Y 13
Y11
X6
Y12
X7
Y13
X8
Y14
X9
Y15
XA
5
4
3
4321
5