Code 07 — Read
Exception Status
TIWAY I Gateway User Manual
Code 07 instructs the Gateway to read 8 predefined Cs within a secondary.
This implementation will read the first 8 Cs in the discrete image register in
a secondary and pack them into one data byte.
NOTE: The programmer of a non-Modbus PLC must make certain that the
application program running within the PLC will place meaningful data in
these locations. This data can reflect status information.
Example:
Request:
11 07 XXXX
Figure C-17 Read Exception Status Example — Request
This request to secondary 17 (decimal) is asking for exception status data.
Response:
11 07 3B XXXX
Figure C-18 Read Exception Status Example — Response
Checksum (XXXX)
Function code (07)
Slave address (11)
Checksum (XXXX)
Data value (3B)
Function code (07)
Slave address (11)
Modbus Commands
I000000
I000000
C-15