Operation
WebRelay-10 Users Manual
3.2 XML Operation
Custom XML computer applications may be created to monitor and control WebRelay-10. This method
does not use a web browser. Diagnostics.xml is available for troubleshooting and system monitoring.
3.2.1 state.xml
Monitoring
The state of the relays, inputs, and sensors can be monitored by sending a request to port 80 (or port
specified in setup). This can be demonstrated by entering the following URL into the address bar of a
web browser (substituting the IP address as necessary):
http://192.168.1.2/state.xml
The following state.xml page is returned:
<datavalues>
<input1state>0</input1state>
<input2state>0</input2state>
<hightime1>0.000</hightime1>
<hightime2>0.000</hightime2>
<count1>0</count1>
<count2>0</count2>
<relay1state>0</relay1state>
<relay2state>0</relay2state>
<relay3state>0</relay3state>
<relay4state>0</relay4state>
<relay5state>0</relay5state>
<relay6state>0</relay6state>
<relay7state>0</relay7state>
<relay8state>0</relay8state>
<relay9state>0</relay9state>
<relay10state>0</relay10state>
<units>F</units>
<sensor1temp>x.x</sensor1temp>
<sensor2temp>x.x</sensor2temp>
<sensor3temp>x.x</sensor3temp>
<sensor4temp>x.x</sensor4temp>
<sensor5temp>x.x</sensor5temp>
<sensor6temp>x.x</sensor6temp>
<sensor7temp>x.x</sensor7temp>
<sensor8temp>x.x</sensor8temp>
<extvar0>0.00</extvar0>
<extvar1>0.00</extvar1>
<extvar2>0.00</extvar2>
<extvar3>0.00</extvar3>
<extvar4>0.00</extvar4>
<serialNumber>WebRelay-10 Serial Number</serialNumber>
<time>1290165251</time>
</datavalues>
The numbers enclosed by the tags,
<tag>
, indicate the current state or value monitored by WebRelay-
10. Values for each tag are described in the table below.
XML computer applications will open a TCP/IP socket with the WebRelay-10 and send a
GET
command
followed by the state.xml command string.
page 56
Xytronix Research & Design, Inc.
Содержание WebRelay-10 X-WR-10R12-I
Страница 1: ...WebRelay 10 Title Page Goes Here...