![Omron CVM1D Operation Manual Download Page 389](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532389.webp)
0000
A500
0010
(281)
WR2 #0010 D00300 0002
Equals Flag
0010
01
01
01
06
384
The words that are to be transferred are specified by the control word. The con-
tents of the control word are as follows:
Number of words to be written (binary 00 to FF)
Control Word Contents
Beginning address for writing (binary 00 to FF)
MSB
LSB
The beginning address for writing specifies the rightmost (lowest) word of the
range of in the Special I/O Unit into which the data is to be written.
If 00 is specified as the number of words to be written, the instruction will not be
executed. If the sum of the beginning address for writing plus the number of
words to be written is more than 100 (binary), the Error Flag (A5003) will turn ON.
If an error occurs at the Special I/O Unit (such as, for example, an area for in
writing is not possible being specified), the Carry Flag (A50004) will turn ON.
The Equals Flag (A50006) can be used to check whether or not WR2(281)
execution has been completed.
Precautions
Several cycles may be required before WR2(281) execution is completed. Dur-
ing that time, the execution condition for RD2(28) must remain ON.
WR2(281) carries out data exchange with the Special I/O Unit via the I/O area,
so the time required to complete execution depends on the I/O refresh interval
(i.e., the cycle time).
Be sure that there is a Special I/O Unit mounted. If no Special I/O Unit is
mounted, WR2(210) execution will continue without stopping.
As of this printing, WR2(281) can only be used for the C500-CT021 High-speed
Counter Unit is set for four-word operation (normally, when used with SYSMAC
BUS).
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Beginning address plus number of words exceeds 100 binary.
Content of
*
DM word is not BCD when set for BCD.
CY (A50004):
An error has occurred at the Special I/O Unit.
EQ (A50006):
The write operation has been completed.
Example
When CIO 000001 is ON in the following example, the 16 words beginning with
D00300 are transferred in order through CIO 0002 and are written in order to
words 00 through 0F in the Special I/O Unit‘s memory area.
Address
Instruction
Operands
00000
LD
000001
00001
OR
001001
00002
WR2(281)
#0010
D00300
0002
00003
AND NOT
A50006
00004
OUT
001001
0 0
Number of words to be written: 16
C: Control Word Contents
Beginning address for writing: word 00
1 0
(Binary data)
Special I/O Instructions
Section 5-33
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...