![Omron CJ1G-CPUxx Instructions Manual Download Page 686](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491686.webp)
665
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 the 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
The stack pointer position remains
unchanged after the data is read.
PLC memory address
of last word in the
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 CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...