Auxiliary Operations
XW-210 WiFi™ Users Manual
XML Tags*
Monitor Values
<sensorX>
x.x = Indicates that no sensor reading is available
77.3 = Current sensor reading
<sXAlarm>
Current state of the sensor alarms
0 = Normal
1 = Alarm 1
2 = Alarm 2
<count1>
The scaled count value (rawCount * mult offset).
<registerX>
Value of each Register.
<vin>
Scaled internal Vin measurement
<time>
Time displayed in “epoch time” (number of seconds since January 1, 1970)
* 'X' is replaced by the sensor or register number.
6.1.2 XML Control
Commands can be sent to the XW-210 to control the relays, counters, and registers.
Relay State Control
Commands are sent using a variable called relay1State. A few examples of using relay1State are given
here.
Command
Description
state.xml?relay1State=0
Turn Relay 1
OFF
state.xml?relay1State=1
Turn Relay 1
ON
Pulse Relay
When the pulse command is sent, the output will turn
ON
for the Pulse Duration specified in the
Relay
setup page. It is also possible to send a pulse time command that is different than the configured Pulse
Duration. This is done by sending a pulseTime1 variable. The pulseTime1 variable does not change the
Pulse Duration in the setup page and it is not stored or recorded. The pulseTime1 variable only changes
the duration for the single pulse initiated by that command. In other words, you must issue the
pulseTime1 command for each pulse command that differs from the preset value.
For example, if the XW-210 is configured for a Pulse Duration of 1.5 seconds. To issue one 1.5 second
pulse and one 5 second pulse you would issue the following commands.
Command
Description
state.xml?relay1State=2
Pulse Relay 1 for the preset time (1.5 seconds).
state.xml?relay1State=2&pulseTime1=5
Pulse Relay 1 for 5 seconds.
XML Set Counter
The counter value can be set using the
count1
command.
Command
Description
state.xml?count1=200
Set counter1 to 200.
Page 58
Xytronix Research & Design, Inc.
Summary of Contents for WebRelay Wireless XW-210I
Page 1: ......