Specifications

Revision 2.4 WebRelay-Quad™
Users Manual
The pulseTimeX variable does not change the pulse time specified in the setup page and it is not
stored or recorded. The pulseTimeX variable only changes the pulse duration for the single pulse
initiated by that command. In other words, you must issue the pulseTimeX for each pulse
command that differs from the preset pulse time. For example, suppose the pulse time is set to
1.5 seconds in the configuration pages. To issue one 1.5 second pulse, three five second pulses,
and a 1.5 second pulse once again, you would issue the following commands...
state.xml?relay1State=2 This will pulse the relay for the preset time (1.5 seconds)
state.xml?relay1State=2&pulseTime1=5 This will pulse the relay for 5 seconds.
state.xml?relay1State=2&pulseTime1=5 This will pulse the relay for 5 seconds
state.xml?relay1State=2&pulseTime1=5 This will pulse the relay for 5 seconds
state.xml?relay1State=2 This will pulse the relay for the preset time (1.5 seconds)
Note: http://192.168.1.2/ would be included on all commands above
Multiple relays can be changed with a single command by submitting multiple relayXState
variables separated by an ampersand symbol (&). All four relayXState variables or a subset of the
relayXState variables can be included. The relayXState variables can be in any order. Relays that
are already in the desired state will not be affected by on/off commands.
Note: Pulse commands will reset the pulse timer each time a command is received.
The following line illustrates how to turn ‘ON’ Relay 1, turn ‘ON’ Relay 2, and turn ‘OFF’ Relay 4.
http://192.168.1.2/state.xml?relay1State=1&relay4State=0&relay2State=1
When the above commands are sent to WebRelay-Quad™, its current state is returned in the form
of an XML page.
Note: The XML reply does not contain headers. To generate an XML reply with headers use the
following command:
Command Description
stateFull.xml
Return the XML reply with headers
The commands can also be sent without having WebRelay-Quad™ return the XML page. This is
accomplished by adding the noReply field as follows.
Command Description
state.xml?relay1State=1&noReply=1
Turn Relay 1 ON without returning state.
state.xml?relay1State=0&noReply=1
Turn Relay 1 OFF without returning state.
Xytronix Research & Design, Inc. page 30