![Omron CS1W-NC113 - REV 02-2008 Manual Download Page 126](http://html1.mh-extra.com/html/omron/cs1w-nc113-rev-02-2008/cs1w-nc113-rev-02-2008_manual_742370126.webp)
5-4
Section
Writing Data with IOWR
114
5-4-2 IOWR: INTELLIGENT I/O WRITE
An explanation of how to use the IOWR instruction is given here.
IOWR
C
S
W
@IOWR
C
S
W
C: Control code, S: First source word, D: Destination unit number and total num-
ber of words written
Operand
Description
C
Specifies the address (Hex) in the PCU to which data will be written.
PCU address (Hex)
S
Specifies the first word in the CPU Unit from which data is to be trans-
ferred.
The following areas can be specified as the source start word.
Refer to the CS1 manuals for details on each address.
First source word
Area
Range
CIO Area
0000 to 6143
Work Area
W000 to 511
Holding Bit Area
H000 to 511
Auxiliary Area
A000 to 959
Timer Area
T0000 to 4095
Counter Area
C0000 to 4095
DM Area
D00000 to 32767
EM Area
E00000 to 32767
EM Area with bank desig-
nation
En_00000 to 32767 (n=0 to C)
Indirect DM/EM address,
binary
@D00000 to 32767
@E00000 to 32767
@En_00000 to 32767 (n=0 to C)
Indirect DM/EM address,
BCD
*D00000 to 32767
*E00000 to 32767
*En_00000 to 32767 (n=0 to C)
W
Specify the destination unit number to which data will be transferred
and the total number of words to transfer. The settable ranges are as
follows:
W+1: 0001 to 0080 Hex (128 words) (Refer to
Precautions when
Using IOWR
below.)
W:
NC113/133
0000 to 005F Hex (unit numbers: 0 to 95)
NC213/233
0000 to 005F Hex (unit numbers: 0 to 95)
NC413/433
0000 to 005E Hex (unit numbers: 0 to 94)
Example: Transferring 10 words of data to unit number 3
#00090003 (total number of words to transfer: 0009 (9 words), unit
number: 0003 (No. 3))
Total number of words transferred (Hex)
W+1
W
Destination unit number (Hex)
5-4-3 Flags
When data is transferred using IOWR, the Error Flag (word n+8, bit 12), the ER
Flag, and the Equals Flag can be used to check whether the transfer has been
Summary of Contents for CS1W-NC113 - REV 02-2008
Page 1: ...CS1W NC113 213 413 133 233 433 Position Control Units ...
Page 2: ...iv ...
Page 4: ...vi ...