Read exception status (function code 07), Diagnostics (function code 08) – ProSoft Technology MVI56E-MNETC User Manual
Page 152

Guide to the MVI56E-MNETC User Manual
MVI56E-MNETC ♦ ControlLogix Platform
User Manual
Modbus TCP/IP Client Enhanced Communication Module
Page 152 of 183
ProSoft Technology, Inc.
February 3, 2013
5.5.8 Read Exception Status (Function Code 07)
This function code is used to read the contents of eight Exception Status outputs
in a remote device. Function code 7 provides a method for accessing this
information because the Exception Output references are known (no output
reference is needed in the function). The normal response contains the status of
the eight Exception Status outputs. The outputs are packed into one data byte,
with one bit per output. The status of the lowest output reference is contained in
the least significant bit of the byte.
5.5.9 Diagnostics (Function Code 08)
MODBUS function code 08 provides a series of tests for checking the
communication system between a Client device and a server, or for checking
various internal error conditions within a server.
The function uses a two-byte sub-function code field in the query to define the
type of test to be performed. The server echoes both the function code and sub-
function code in a normal response. Some of the diagnostics cause data to be
returned from the remote device in the data field of a normal response.
In general, issuing a diagnostic function to a remote device does not affect the
running of the user program in the remote device. Device memory bit and
register data addresses are not accessed by the diagnostics. However, certain
functions can optionally reset error counters in some remote devices.
A server device can, however, be forced into 'Listen Only Mode' in which it will
monitor the messages on the communications system but not respond to them.
This can affect the outcome of your application program if it depends upon any
further exchange of data with the remote device. Generally, the mode is forced to
remove a malfunctioning remote device from the communications system.
Sub-function Codes Supported
Only Sub-function 00 is supported by the MVI56E-MNETC module.
00 Return Query Data
The data passed in the request data field is to be returned (looped back) in the
response. The entire response message should be identical to the request.
Sub-function
Data Field (Request)
Data Field (Response)
00 00
Any
Echo Request Data