WebRelay-10 Users Manual
Operation
Response
WebRelay-10 Response Frame Example – Write Coils 7-9 ON
Field Name
Length
Function
Example Data
Transaction Identifier
2 bytes
Synchronization number.
0x0001
Protocol Identifier
2 bytes
Zero for Modbus/TCP
0x0000
Message Length
2 bytes
Number of bytes in frame (below)
0x0004
Unit Identifier
1 byte
Slave Address (0xff if not used)
0xFF
Function Code
1 byte
Write Multiple Coils
0x0F
Data
Start address (0x0000 – 0x0009)
Relay count (0x0001 – 0x000A)
0x0006
0x0003
Rx String: 00 01 00 00 00 06 FF 10 00 16 00 04
Errors
Pulse Function code Error (1 Byte):
0x90
Exception codes (1 Byte):
0x01 – Feature not supported.
0x02 – Address quantity not an even number.
Incorrect combination of start address and relay count.
Error Response Frame Example
Field Name
Length
Function
Example Data
Transaction Identifier
2 bytes
Synchronization between messages of
server and client.
0x0001
Protocol Identifier
2 bytes
Zero for Modbus/TCP
0x0000
Message Length
2 bytes
Number of bytes in frame (below)
0x0003
Unit Identifier
1 byte
Slave Address (0xff if not used)
0xFF
Function Code
1 byte
Error code
0x90
Data
1 byte
Exception code (
0x01 - 0x02
)
0x02
Rx String: 00 01 00 00 00 03 FF 90 02
Xytronix Research & Design, Inc.
page 77