GE GFK-0804B 用户手册

下载
页码 160
C
C-17
GFK–0804B
Appendix C RTU Protocol
Message  (17): Report Device Type
Format:
Address
Func
17
Normal Response
Type
Device
Count
Data
Error Check
Byte
Address
Func
17
Error Check
Query
66
Slave
Run
Mode
5
Query:
The Report Device Type query is sent by the master to a slave in order to learn what
type of programmable control or other computer it is.
H An address of zero is not allowed as this cannot be  a broadcast request.
H The function code is equal to 17.
Response:
H The byte count field is one byte in length and is equal to 5.
H The device type field is one byte in length and is equal to 66.
H The slave run mode field is one byte in length.  The  slave run light byte is equal to
OFFH if the Micro PLC is running.  It is equal to 0 if the Micro PLC is not running.
H The data field contains three bytes.
1st  Byte  =
30H if the Micro PLC is a 14-point or 16-point unit
32H if the Micro PLC is a 28-point unit
2nd  Byte  =
30H if the Micro PLC Expander is a 14-point unit
32H if the Micro PLC Expander is a 28-point unit
0H if the Micro PLC Expander is not present
33H if the Micro PLC Expander is an analog unit
3rd Byte =
0