![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268787.webp)
748
Table Data Processing Instructions
Section 3-17
3-17-16 STACK 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
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...