11. Connection to other devices
11.4 Modbus TCP
Write Single Register 0x06:
In the event of an error, Modbus TCP will send an error frame.
Fault Code 1 byte 0x90 ;Write Single Register
Exception Code 1 byte 02 or 03 or 04
Exception Code 02 = Target address is invalid, i.e.,
l 0 (the user keeps specifying addresses as one-based addresses)
l Undefined* (please refer to table → Section "Modbus map", page 557) or
l Un-enabled*
*For an error message, it is sufficient if only one of the requested addresses is not
unlocked or is invalid.
Exception Code 04 = Error when attempting to write to the register (marker word)**
**A write operation can always write consistent data to the image table, since this data
is protected from other modules by semaphores. In other words, as of this writing,
there is no known criterion for a "Write Single Register" error in the server.
Values are only allowed to be written if all required addresses are valid and unlocked.
Write Multiple Registers 0x10:
In the event of an error, Modbus TCP will send an error frame.
Fault Code 1 byte 0x86 ;Write Multiple Registers
Exception Code 1 byte 02 or 03 or 04
Exception Code 02 = Target address is invalid, i.e.,
l 0 (the user keeps specifying addresses as one-based addresses)
l Undefined*(please refer to table → Section "Modbus map", page 557) or
l Un-enabled*
Exception Code 03 = The number of registers is not >= 0x0001 and <= 0x007B
OR
Number of bytes != Number of registers x 2
Exception Code 04 = Error when attempting to write to the registers**
Values are only allowed to be written if all required addresses are valid and unlocked.
*For an error message, it is sufficient if only one of the requested addresses is not
unlocked or is invalid.
**A write operation can always write consistent data to the image table, since this data
is protected from other modules by semaphores. In other words, as of this writing,
there is no known criterion for a "write multiple registers" error in the server.
easyE4 11/18 MN050009 EN www.eaton.com
555