Report slave ID
The Modbus function 17 (report slave ID, read only) can be used to read basic information of the IDS-20s. The following example shows the response of function 17 of a RG-30 sensor, which is received in hex-format:
EXAMPLE 23 11 26 53 FF 27 74 20 53 6F 6D 6D 65 72 20 20 52 47 2D 33 30 20 20 20 32 5F 37 31 72 30 31 20 34 35 31 35 31 38 32 31 00 BB D4
|
|
|
|
Example |
|
|---|---|---|---|---|
|
|
Content |
Length (Bytes) |
HEX-value |
Decimal, ASCII |
|
PDU* response |
Slave address |
1 |
23 |
35 |
|
Function code |
1 |
11 |
17 |
|
|
Number of bytes (excl. slave-address, function code, NUL and CRC) |
1 |
26 |
38 |
|
|
Slave ID |
1 |
53 |
"S" |
|
|
Run status (0=inactive; FF=active) |
1 |
FF |
255 |
|
|
Modbus implementation version |
2 |
27 74 |
10100 |
|
|
Separator |
1 |
20 |
" " |
|
|
Vendor string |
7 |
53 6F 6D 6D 65 72 20 |
"Sommer " |
|
|
Separator |
1 |
20 |
" " |
|
|
Device configuration |
7 |
52 47 2D 33 30 20 20 |
“RG-30 “ |
|
|
Separator |
1 |
20 |
" " |
|
|
Software version |
7 |
32 5F 37 31 72 30 31 |
2_71r01 |
|
|
Separator |
1 |
20 |
" " |
|
|
Serial number |
8 |
34 35 31 35 31 38 32 31 |
45151821 |
|
|
NUL |
1 |
00 |
|
|
|
CRC |
2 |
BB D4 |
|
|
|
*Protocol Data Unit |
||||
Table 22 Slave ID
