Enable/Disable Protocol Level Diagnostics
Protocol level diagnostics can be logged to the Modbus Ethernet’s port file.
By default, diagnostics logging is disabled.
The following global parameters are available to specify diagnostic behavior.
MBETH_ENABLE_PROTOCOL_DEBUG
For | Project |
Purpose | To enable debugging for all Modbus Ethernet interfaces. |
Value | Y |
Default Value | N |
<PORT>_ENABLE_PROTOCOL_DEBUG
Where <PORT> is the number of the port.
For | Port |
Purpose | Enable protocol level debugging on a single port. |
Value | Y |
Default Value | N |
Important: Protocol information is logged in a HEX representation. All data is flushed to the file when the communication interface terminates. Prior to this time, all data may not have been flushed to the disk.
MBETH_DISABLE_IO_ERRLOG
For | Project |
Purpose | To disable logging of I/O errors for all Modbus Ethernet ports |
Value | Y |
Default Value | N |
<PORT>_DISABLE_IO_ERRLOG
Where <PORT> is the number of the port.
For | Port |
Purpose | To disable logging of I/O errors for all Modbus Ethernet ports |
Value | Y |
Default Value | N |