3. Instructions
576
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Example Programming
In this case, the stack pointer indicates D7 and the offset value is 3, so the data is deleted from D4. The
remaining data is shifted up one word and the stack pointer is decremented from D7 to D6.
SDEL
D0
&3
D100
0.00
A
B
C
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
B
C
C
D100
A
−3
−1
PLC memory
address
Stack
pointer
Stack pointer
Last word
in stack
Stack
pointer
Stack pointer
Last word
in stack
PLC memory address
of last word in the stack
The stack pointer is decremented
by 1 after the data is deleted.
(Delete/output)
-1
PLC memory address
of last word in the stack