I/O Write 2: Wr2(281) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Special I/O Instructions

5-35-4 I/O WRITE 2: WR2(281)

Ladder Symbol
(281)
WR2
Description
Precautions
Flags
Operand Data Areas
C: Control word
C
S
D
S: First source word
D: Destination word
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:
Control Word Contents
MSB
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.
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.
ER (A50003):
CY (A50004):
EQ (A50006):
LSB
Number of words to be written (binary 00 to FF)
Beginning address for writing (binary 00 to FF)
Beginning address plus number of words exceeds 100 binary.
Content of *DM word is not BCD when set for BCD.
An error has occurred at the Special I/O Unit.
The write operation has been completed.
Section 5-35
(CVM1 V2)
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, DM
CIO
411

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents