747
Table Data Processing Instructions Section 3-17
3-17-16STACK DATA OVERWRITE: SWRIT(640)
Purpose Writes the source data to the specified data element in the stack (overwriting
the existing data). The offset value indicates the location of the desired data
element (how many data elements before the current pointer position).
This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
Ladder Symbol
Variations
Applicable Program Areas
SREAD
D00000
&3
D00100
000000
A
D00000
D00001
D00002
D00003
D00004
D00005
D00006
D00007
D00008
D00009
A
D00000
D00001
D00002
D00003
D00004
D00005
D00006
D00007
D00008
D00009
D00100 A
−3
PLC memory
address
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 position remains
unchanged after the data is read.
PLC memory address
of last word in the stack
Stack
pointer
SWRIT(640)
TB
C
S
TB: First stack address
C: Offset value
S: Source word
Variations Executed Each Cycle for ON Condition SWRIT(640)
Executed Once for Upward Differentiation @SWRIT(640)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK