192
4
4 Instructions4.5.3 Table Operation
[S]+n-1 [S]+n-2
[S]+6 [S]+5 [S]+4
[S]+3 [S]+2
[S]+1 [S]
Data area
Pointer
[S]+n-1 [S]+n-2
[S]+6 [S]+5 [S]+4
[S]+3 [S]+2
[S]+1 [S]
Data area unchanged
Pointer
[D]
K4
When the pointer in [S] is 0, the zero ag M8020 is set to ON and the POP instruction is not executed.
Use a comparison instruction to check whether the pointer is in the range 1 ≤ [S] ≤ (n – 1) before executing
the POP instruction.
When the pointer in [S] is 1, 0 is written to [S] and the zero ag M8020 is set to ON.
An error is returned in the following conditions. The error ag M8067 is set to ON to identify this error and
the error code is stored in D8067.
Error 6706 is returned when [S] > n – 1.
Error 6706 is returned when [S] < 0.
◆
Application
●
Before execution of the instruction
●
After execution of the instruction