Chapter 6. Serial I/O, SNP & RTU Protocols
GFK-2222AD
April 2018
247
Message (17): Report Device Type
Format:
Address
Error Check
Func 17
Query
Normal Response
Address
Device
Type 43
Error Check
Func 17
Slave Run
Light
Data
Byte
Count
Figure 62: RTU Report Device Type Message Format
Query:
The Report Device Type query is sent by the master to a slave in order to learn what type of
programmable control or another computer it is.
▪
An Address of zero is not allowed as this cannot be a broadcast request.
▪
The Function code is 17.
Response:
▪
The Byte Count field is one byte in length and is equal to 5.
▪
The Device Type field is one byte in length and is equal to 43 (hexadecimal) for PACSystems
▪
The Slave Run Light field is one byte in length. The Slave Run Light byte is equal to OFFH if the CPU is
in RUN Mode. It is equal to 0 if the CPU is not in RUN Mode.
▪
The Data field contains three bytes. For PACSystems CPUs, the first byte is the Minor Type, and the
remaining bytes are zeroes. The following table lists minor types.
Response Data
(Minor Type)
CPU Model
87
02 hex
IC698CPE010
04 hex
IC698CPE020
05 hex
IC698CRE020
06 hex
IC698CPE030
08 hex
IC698CPE040
0A hex
IC695CPE302
IC695CPE305
IC695CPU310
0C hex
IC695NIU001
10 hex
IC695CPU320
11 hex
IC695CRU320
12 hex
IC695CPE302
IC695CPE305
18 hex
IC695CPU315
87
Does not apply to CPE330, which has no serial ports.