WebRelay-10 Users Manual
Operation
XML Tags*
Monitor Values
Control Values
WebRelay-10 Plus™
Only
<inputXstate>
0 = Input
OFF
1 = Input
ON
n/a
X
<hightimeX>
The amount of time in seconds
that the input was last on
n/a
X
<countX>
Current number of times the
input has been counted
(counting must be enabled)
n/a
X
<relayXstate>
0 = Relay
OFF
(coil off)
1 = Relay
ON
(coil energized)
0 = Turn relay
OFF
1 = Turn relay
ON
2 = Pulse relay
5 = Toggle the state of
the relay
<units>
F =
Fahrenheit
C =
Celsius
n/a
X
<sensorXtemp>
x.x = Indicates that no digital
temperature sensor is attached.
77.3 = Current temperature.
H24.9 = Current humidity
reading.
n/a
X
<extvarX>
Value of each External Variable. n/a
<serialNumber>
00:00:00:00:00:00, serial
number of WebRelay-10.
n/a
<time>
1253030401 = Time displayed in
“epoch time” (number of
seconds since January 1, 1970)
n/a
* 'X' is replaced by the relay number or input number.
Control
relayXState commands can be sent to WebRelay-10 to control the relays. X is replaced by 1 for Relay 1,
2 for Relay 2, and so forth. The following are a few examples:
Command
Description
state.xml?relay1State=0
Turn Relay 1
OFF
state.xml?relay1State=1
Turn Relay 1
ON
state.xml?relay2State=0
Turn Relay 2
OFF
state.xml?relay2State=1
Turn Relay 2
ON
When the pulse command is sent, the relay will energize for the Pulse Duration specified in the
Relays
setup page . It is possible, however, to send a pulse time command that is different than the configured
Pulse Duration. This is done by sending a pulseTime variable.
The pulseTime variable does not change the Pulse Duration in the setup page and it is not stored or
recorded. The pulseTime variable only changes the duration for the single pulse initiated by that
command. In other words, you must issue the pulseTime command for each pulse command that differs
from the preset value.
For example, suppose the WebRelay-10 is configured for a Pulse Duration of 1.5 seconds. To issue
one 1.5 second pulse, three 5 second pulses, and another 1.5 second pulse to Relay 1, you would issue
Xytronix Research & Design, Inc.
page 57