EasyManua.ls Logo

Omron SYSMAC CV Series - IO Read 2: Rd2(280)

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...
0100
00
(190)
READ 0001 0003 D00010
0000
00
0100
00
Equals
Flag
A500
06
406
Example When CIO 000000 is ON in the following example, the number of words speci-
fied in CIO 0001 is read through CIO 0003 (the I/O word allocated to the Special
I/O Unit) and stored at consecutive words starting at D00010.
The following program section uses a self-holding bit to ensure that the read op-
eration is executed even if the Special I/O Unit (or Slave Rack) is busy when
READ(190) is executed. The type of programming is also effective when the
read operation requires more than one cycle. The Equals Flag, which turns ON
when the reading operation is completed, is used to end the execution.
Address Instruction Operands
00000 LD 000000
00001 OR 010000
00002 READ(190)
0001
0003
D00010
00003 AND NOT A50006
00004 OUT 010000
5-35-2 I/O READ 2: RD2(280)
(280)
RD2 C S D
Ladder Symbol
Operand Data Areas
D: First destination word CIO, G, A, T, C, DM
S: Source word CIO
C: Control word CIO, G, A, T, C, #, DM, DR, IR
Description When the execution condition is OFF, RD2(280) is not executed. When the ex-
ecution condition is ON, RD2(280) reads the memory contents of a Special I/O
Unit to specified words (beginning with D) in the Programmable Controller
through the source word ( S). The word specified for S is the third of the four
words (i.e., the first input 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 read (binary 00 to FF)
Control Word Contents
Beginning address to be read (binary 00 to FF)
MSB LSB
The beginning address to be read specifies the rightmost (lowest) word of the
range of data that is to be read from the memory area in the Special I/O Unit.
If 00 is specified as the number of words to be read, the instruction will not be
executed. If the sum of the beginning address to be read plus the number of
words to be read 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, a non-readable
area being specified), the Carry Flag (A50004) will turn ON.
The Equals Flag (A50006) can be used to check whether or not RD2(280)
execution has been completed.
Precautions Several cycles may be required before RD2(280) execution is completed. Dur-
ing that time, the execution condition for RD2(28) must remain ON.
(CVM1 V2)
Special I/O Instructions Section 5-35

Table of Contents

Related product manuals