EasyManua.ls Logo

Omron SYSMAC CV Series - IO Write 2: Wr2(281)

Omron SYSMAC CV Series
636 pages
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...
411
5-35-4 I/O WRITE 2: WR2(281)
(281)
WR2 C S D
Ladder Symbol
Operand Data Areas
D: Destination word CIO
S: First source word CIO, G, A, T, C, DM
C: Control word CIO, G, A, T, C, #, DM, DR, IR
Description When the execution condition is OFF, WR2(281) is not executed. When the ex-
ecution condition is ON, WR2(281) writes the specified number of words to the
specified address in a Special I/O Unit via the destination word (D). The word
specified for D is the first of the four words (i.e., the first output word) that serve
as the interface with the Special I/O Unit.
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 115 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.
(CVM1 V2)
Special I/O Instructions Section 5-35

Table of Contents

Related product manuals