INST.No.INE-863B KR2S
【
Communication Interface
】
Instruction Manual
-31-
7-5
Function Code
The response for each function is given below. (Refer to <Table 2 Function code table> in Para. 7-3-2 and
Refer to 7-6 for responses for abnormality).
7-5-1
Reading of digital setting values (Reading of coil status)
Function code : 01 [01H]
“Digital (ON/OFF) setting values 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.
Example) Reading of 10 digital setting value reference numbers from 8 to 17 of the slave 2
Reference
number
8
9
10
11
12
13
14
15
16
17
Data
-
-
-
-
-
-
-
-
-
ON
“0” is responded as no reference number exists.
Record
ON
< RTU mode >
Master → Instrument
Master → Instrument
Slave address
02H
Slave address
02H
Function code
01H
Function code
01H
Start No. (H)
00H
Data pieces
02H
End No. (L)
07H
First 8 data
00H
Number of data (H)
00H
Next 8 data
02H
Number of data (L)
0AH
CRC (L)
7CH
CRC (L)
0DH
CRC (H)
3DH
CRC (H)
FFH
<ASCII mode error check>
Error check: The CRC (L) and the CRC (H) parts are as follows.
LRC
ECH
LRC
F9H
*The start number (Relative number) is “Reference number - 1”. (Decimal 7 (= 8 - 1) → Hexadecimal
07H)
*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 10
and the data pieces are 2.)
(00H)
Reference number
First 8 data
Reference number 17 16
Next 8 data
(02H)
0 0 0 0 0 0 1 0
0
0
0
0
0
0
0
0
15
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 ...