ControlByWeb WebRelay-Quad X-WR-4R1-5 User Manual page 37

Hide thumbs Also See for WebRelay-Quad X-WR-4R1-5:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebRelay-Quad X-WR-4R1-5 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Webrelay-quad x-wr-4r1-iWebrelay-quad x-wr-4r1-e

Table of Contents