EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 639

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
606
Table Data Processing Instructions Section 3-16
3-16-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).
Ladder Symbol
Variations
Applicable Program Areas
Operands TB through TB+3: Stack control words
The first four words of the stack contain the PLC memory address of the last
word in the stack and the stack pointer (the PLC memory address of the next
available word in the stack.)
TB+4 through TB+(N–1): Data storage region
The remainder of the stack is used to store data.
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
TB
0
15
TB+1
0
15
TB+2
0
15
TB+3
0
15
PLC memory address of the last
word in the stack (rightmost 4 digits)
PLC memory address of the last
word in the stack (leftmost 4 digits)
Stack pointer (rightmost 4 digits)
(Initial value is the rightmost 4 digits of
the PLC memory address for TB+4.)
Stack pointer (leftmost 4 digits)
(Initial value is the leftmost 4 digits of
the PLC memory address for TB+4.)
15 0
TB+4
TB+(N–1)
Data storage region

Table of Contents