XW-210 WiFi™ Users Manual
6.6.9 Write Multiple Registers – Modbus Function Code 16 (0x10)
The Modbus Write Multiple Registers function can be used to pulse the relays.
Request
The Modbus Write Multiple Registers function is used to pulse the relay(s) for a specified time. When the
XW-210 receives this command, it immediately turns the appropriate relay(s)
ON
(if not already on) and
starts the pulse timer.
The pulse time is specified using floating point format in the register value field and can range from 0.1
seconds to 86400 seconds (1 day). When the pulse time expires, the relay will be turned
OFF
. If a pulse
time command is sent with a value greater than 86400, the pulse timer will be set to 86400. If a pulse
time command is sent with a value less than 0.1, the pulse timer will be set to 0.1.
If any commands are sent to XW-210 (Modbus, XML or HTML) before the pulse timer has expired, the
pulse timer will be canceled immediately and the new command will be executed.
IEEE 754 floating point format is used for the pulse time. XW-210 may be configured for little-endian or
big-endian transmission. The endian-ness is configured in the
Advanced Network tab
. (See
2.4.3
Advanced Network Tab
for more information.)
Start Address (2 bytes):
0x0310 (relay 1)
Register Quantity (2 bytes):
0x0002
Byte Count (1 byte):
0x04
Pulse Duration (4 bytes/relay):
0x3DCCCCCC – 0x47A8C000 (big-endian)
0xCCCC3DCC – 0xC00047A8 (little-endian)
Response
The request is acknowledged by responding with the register quantity that was requested.
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.
Xytronix Research & Design, Inc.
Page 75
Содержание WebRelay Wireless XW-210I
Страница 1: ......