Iord-Instruction - Omron CJ1W-CT021 Operation Manual

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

IORD-Instruction

4-4

IORD-Instruction

15 14 13 12 11 10 9
S+1:
Example ladder program
Start
118
IORD(222)
C
S
D
C Control Code.
The IORD-instruction enables you to read data from the High-speed Counter
Unit. The high-byte (=CC1) and the low-byte (=CC2) of the Control Code spec-
ify the type of data that is to be read.
15 14 13 12 11 10 9
C:
S First Source Word.
Source Machine Number (S) and the number of words (S+1) to be read.
15 14 13 12 11 10 9
S:
8
7
6
5
D First Destination Word.
The PLC memory address of the first word where the read data is to be written.
Refer to the following structure for the ladder program if you want to use the IORD-
instruction. For an overview of the supported IORD-instructions and how to set the
C-, S- and D-operands, refer to 4-5 "Supported IOWR/IORD-Instructions".
Data Transfer Busy
CIO n+19 ( bit 02)
The Data Transfer Busy bit (CIO n+19, bit 02) is ON when the Unit is busy com-
pleting an IOWR/IORD-instruction or being initialised. When this bit is OFF the
@IORD(222)
8
7
6
5
4
3
2
8
7
6
5
4
3
2
4
3
2
1
0
Number of words to be read:
Set between 1-128 (0001
IORD(222)
C
S
D
=
Section 4-4
C
S
D
1
0
CC2 (=Control Code 2)
CC1 (=Control Code 1)
1
0
Machine Number from which
data is to be read:
Set between 0-95 (0000
- 0080
)
H
H
Set (C/S/D) data ready
before executing
IORD-instruction
Transfer successful
R1
- 005F
)
H
H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents