Revision 2.6
Character String Example:
char write_registers_mb_request =
Response
Modbus/TCP:
Transaction identifier (2 Bytes): 0x0001
Protocol identifier (2 Bytes): 0x0000
Length (2 Bytes): 0x0006
Unit identifier: 0xff
Modbus:
Function (1 Byte): 0x10 (Write Multiple Registers)
Reference number (2 Bytes): 0x0010
Word count (2 Bytes): 0x0002
Modbus Error:
Function code (1 Byte): 0x90
Exception code (1 Byte): 0x01, 0x02
Exception codes:
0x01 - Function code not supported
0x02 - Incorrect starting address / quantity of outputs combination
Character String Example:
char write_registers_mb_response[] =
Xytronix Research & Design, Inc.
{0x00, 0x01, 0x00, 0x00, 0x00, 0x0b, 0xff, 0x10, 0x00, 0x10, 0x00, 0x02, 0x04,
0x00, 0x00, 0x41, 0x20 };
{0x00, 0x05, 0x00, 0x00, 0x00, 0x06, 0xff, 0x10, 0x00, 0x10, 0x00, 0x02 };
WebRelay-Quad™ Users Manual
page 37
Need help?
Do you have a question about the WebRelay-Quad X-WR-4R1-5 and is the answer not in the manual?