*This is command is used when CTM200 is being used as a MODBUS Master*
Set the condition that will trigger MODBUS exception reports.
e = 0 | Disable the MODBUS exception reports (default) |
e = 1 to 7FFF in hex | MODBUS events and exceptions to be used |
MODBUS Event and Exception Bitmap:
bit0 | Illegal Function Exception, Code 1 A master sends a Modbus function, which is not supported by the slave device. |
bit1 | Illegal Address Exception, Code 2 A master queries an invalid or non-existing data address. |
bit2 | Illegal Value Exception, Code 3 A master sends a data value, which is not an allowable value for the slave device. |
bit3 | Slave Failure Exception, Code 4 An unrecoverable error occurs in the slave device. The length might exceed the allowable data size. |
bit4 | Acknowledge Exception, Code 5 A long duration of time will be required to process the request. This is to prevent a timeout error. |
bit5 | Slave Device Busy Exception, Code 6 A long–duration program command is running. The command should be retransmitted later. |
bit6 | NAK Exception, Code 7 The slave cannot perform the program function received in the query. |
bit7 | Memory Parity Error Exception, Code 8 A master attempted to read record file, but detected a parity error in the memory. |
bit8 | Gateway Path Unavailable Exception, Code 10/0x0A The gateway is unable to establish a connection with the target device. |
bit9 | Gateway Target Fail Exception, Code 11/0x0B The gateway is unable to receive a response from the target device. Usually means that the device is not present on the network. |
bit10 | Reply Timeout Event, Code 12/0x0C The slave device does not reply in time or does not reply at all. The device ID might be wrong. |
bit11 | Send Timeout Event, Code 13/0x0D The handshake lines are not properly set. |
bit12 | Device Open Error Event, Code 14/0x0E The Modbus Master couldn't open a serial or TCP slave device. The network is down, or the serial port is already opened. The function code in $PMEX will be 0 for this event. |
bit13 | TCPIP Connection Closed Event, Code 15/0x0F TCP/IP connection was closed by the remote slave device. |
bit14 | Unknown Poll Error Event, Code 16/0x10 This event is for all other errors when polling slave devices. |
At least one event or exception defined by e should be detected to trigger reports. The exception code 12 ~ 16 are defined by Cypress Solutions.
See also: MODBUS
Firmware revision 2.0.4.2702