WebRelay-10 Users Manual
Operation
3.2.2 Monitoring Events Through eventX.xml (WebRelay-10 Plus™ only)
The relays can be configured to turn
ON
, turn
OFF
, or pulse at specified times. Instructions to change
the relay state at a given time (or periodically) are called events. WebRelay-10 Plus™ supports 100
events, which can be monitored through the eventX.xml page (where X is the event number 0-99). This
can be demonstrated by entering the following URL into the address bar of a web browser:
http://192.168.1.2/event0.xml
The following event.xml page is returned:
<event0>
<active>yes</active>
<currentTime>11/14/2010 15:14:09</currentTime>
<nextEvent>11/15/2010 15:15:00</nextEvent>
<period>1 d</period>
<count>0</count>
<relay>1</relay>
<action>turn relay(s) on</action>
<pulseDuration>0.5 s</pulseDuration>
</event0>
The tags used by WebRelay-10 are described below:
Tags*
Description
<eventX>
Event tag where X represents the event number (0-99).
<active>
This field indicates whether or not the event is active. The text
yes
indicates
that the event is active and the event will occur at the next event time. The text
no
indicates that the event is inactive and the event will no longer take place.
<currentTime>
This field indicates the current date and time as
MM/DD/YYYY HH:MM:SS
in 24-
hour format.
<nextEvent>
The next time the event is scheduled to occur is given as
MM/DD/YYYY
HH:MM:SS
. If an event is inactive, this field will display the date and time as
xx/xx/xxxx xx:xx:xx
.
<period>
For events that occur more than one time, this field indicates the period of the
event (time between event occurrences). The unit of time is indicated after the
value (seconds (s), minutes (m), hours (h), days (d), or weeks (w)). If this field is
set to
0
, then the event has been disabled. For example
1d
would be a period of
3 days.
<count>
This field indicates the number of remaining times the event will occur. If this
field is 0 and the event is active, then the event is always on.
<relay>
Event will apply to the relay specified (1-10).
<action>
One of the follow actions is applied to the event.
turn relay(s) on
turn relay(s) off
pulse relay(s)
toggle relay(s)
set extVar0
clear extVar0
change schedules
<pulseDuration>
This field indicates the time (in seconds) that the relay will energized.
* 'X' is replaced by the relay number or input number.
Xytronix Research & Design, Inc.
page 59