IORD-Instruction
Section 4-4
79
4-4
IORD-Instruction
C Control Code.
The IORD-instruction enables you to read data from the Counter Unit. The high-
byte (=CC1) and the low-byte (=CC2) of the Control Code specify the type of
data that is to be read.
S First Source Word.
Source Machine Number (S) and the number of words (S+1) to be read.
D First Destination Word.
The PLC memory address of the first word where the read data is to be written.
Example ladder program
Refer to section 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 section 4-5
IORD(222)
@IORD(222)
C
C
S
S
D
D
C:
CC2 (=Control Code 2)
CC1 (=Control Code 1)
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
S:
Machine Number from which
data is to be read:
Set between 0-95 (0000
H
- 005F
H
)
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
S+1:
Number of words to be read:
Set between 1-128 (0001
H
- 0080
H
)
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
IORD(222)
C
S
D
R1
Start
Data Transfer Busy
CIO n+17 (bit02)
=
Transfer successful
Set (C/S/D) data ready
before executing
IORD-instruction
Содержание CJ1W-CTL41-E
Страница 2: ...i SYSMAC CJ series CJ1W CTL41 E 4 Channel Counter Unit Operation Manual Produced September 2004...
Страница 3: ...ii...
Страница 5: ...iv...
Страница 9: ...viii...
Страница 31: ......
Страница 43: ......
Страница 73: ......
Страница 119: ......
Страница 123: ......
Страница 126: ......
Страница 127: ......
Страница 131: ......
Страница 133: ...116...