Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 640

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Table Data Processing Instructions
Operand Specifications
Description
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
SWRIT(640) overwrites the data in the desired word with the data specified in
S. The location of the desired word is calculated by subtracting the offset
value in C from the stack pointer (TB+3 and TB+2). SWRIT(640) does not
change the stack pointer.
TB
TB+1
TB+2
TB+3
TB+4
Pointer
Last word
Offset value
in stack
C
SWRIT(640) can be used to change the data for an item currently on a con-
veyor. The position of the desired item is simply the number of items back (the
offset value) from the most recent item added to the conveyor.
TB
CIO 0 to CIO 6143
W0 to W511
H0 to H511
A448 to A959
A0 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
---
#0001 to #FFFB
(Hexadecimal)
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
PLC memory
Stack
address
n
m
B
C
D
m
n
Writes the data (A) without
changing the stack pointer.
S
Overwrites the data in the desired
word with the data in S.
The address of the desired word is
calculated by subtracting the offset
value from the stack pointer address.
Section 3-16
C
S
#0000 to #FFFF
(Hexadecimal)
Stack
TB
n
TB+1
TB+2
m
TB+3
TB+4
A
C
D
Pointer
Last word
in stack
A
m
n
607

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents