INST.No.INE-863B KR2S
【
Communication Interface
】
Instruction Manual
-32-
7-5-2
Reading of digital input data (Reading of input relay status)
Function code : 02 [02H]
“Digital (ON/OFF) input data with the continuous numbers” are read for the number of data
specified from the start number specified. The ON/OFF data is arranged per 8 by 8 in numerical
order in 1 data (1 byte) and configures a data of the response message. The LSB (D0 side) of each
data is the digital data of the youngest number. When the number of read data pieces is not in
multiples of 8, the unnecessary bits become 0.
The start number (Relative number) is “Reference number - 10001”.
Example) Reading of 4 digital input setting value reference numbers from 10109 to 10112 of the slave 2
Reference
number
10109
10110
10111
10112
10113
10114
10115
10116
Data
ON
OFF
ON
OFF
-
-
-
-
Level 1
Level 2
Level 3
Level 4
“0” is responded as no reference
number exists.
CH1 Event activation status
< RTU mode >
Master → Instrument
Master → Instrument
Slave address
02H
Slave address
02H
Function code
02H
Function code
02H
Start No. (H)
00H
Data pieces
01H
End No. (L)
6CH
First 8 data
05H
Number of data (H)
00H
CRC (L)
81H
Number of data (L)
04H
CRC (H)
CFH
CRC (L)
B9H
CRC (H)
E7H
<ASCII mode error check>
Error check: The CRC (L) and the CRC (H) parts are as follows.
LRC
8CH
LRC
F6H
*The start number (Relative number) is “Reference number - 10001”.
(Decimal 108 (= 10109 - 10001) → Hexadecimal 6CH)
*The data pieces are the number of bytes of data.
(It differs from the number of data requested. In the example, the requested number of data is 4 and
the data piece is 1.)
“0” is responded as the reference numbers
from 10113 to 10116 do not exist.
(05H)
First 8 data
0
0
0
0
0
1
0
1
Reference number 10112 10109
8
Summary of Contents for KR2S
Page 2: ...INST No INE 863B KR2S Communication Interface Instruction Manual ...
Page 124: ...INST No INE 863B KR2S Communication Interface Instruction Manual ...
Page 125: ...INST No INE 863B KR2S Communication Interface Instruction Manual ...
Page 126: ...INST No INE 863B KR2S Communication Interface Instruction Manual ...
Page 127: ...INST No INE 863B KR2S Communication Interface Instruction Manual ...