4 using the read function on a data logger, Using the read function on a data logger -9, Using the read function on a data logger – Echelon i.LON SmartServer 2.0 User Manual

Page 74

Advertising
background image

i.LON SmartServer 2.0 Programmer’s Reference

5-9

Request

<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item

xsi:type="LON_Fb_Cfg">

<UCPTname>Net/LON/iLON

App/Data

Logger[3]</UCPTname>

<UCPTannotation>#8000010128000000[4].UFPTdataLogger;xsi:type="LON_Fb_Cfg"
</UCPTannotation>
<UCPThidden>0</UCPThidden>
<UCPTlastUpdate>2008-02-28T11:53:57.930-08:00</UCPTlastUpdate>
<UCPTuri>LON_Fb_Cfg.htm</UCPTuri>
<DataPoint

dpType="nviClear"

discrim="dir_in">

<UCPTname>Net/LON/iLON

App/Data

Logger[3]/nviDlClear[3]</UCPTname>

<UCPTformatDescription>#0000000000000000[0].SNVT_switch</UCPTformatDescription>
</DataPoint>
<DataPoint

dpType="nviEnable"

discrim="dir_in">

<UCPTname>Net/LON/iLON

App/Data

Logger[3]/nviDlEnable[3]</UCPTname>

<UCPTformatDescription>#0000000000000000[0].SNVT_switch</UCPTformatDescription>
</DataPoint>
<DataPoint

dpType="nvoStatus"

discrim="dir_out">

<UCPTname>Net/LON/iLON

App/Data

Logger[3]/nvoDlStatus[3]</UCPTname>

<UCPTformatDescription>#0000000000000000[0].SNVT_switch</UCPTformatDescription>
</DataPoint>
<DataPoint

dpType="nvoLevelAlarm"

discrim="dir_out">

<UCPTname>Net/LON/iLON

App/Data

Logger[3]/nvoDlLevAlarm[3]</UCPTname>

<UCPTformatDescription>#0000000000000000[0].SNVT_alarm</UCPTformatDescription>
</DataPoint>
<UCPTfbIndex

xsi:type="number">9</UCPTfbIndex>

<UCPTfptKey>#8000010128000000[4].UFPTdataLogger</UCPTfptKey>
<UCPTdynamic

xsi:type="string"

LonFormat="UCPTdynamic">DDT_STATIC</UCPTdynamic>

</Item>
</iLonItem>
</Set>

Response

<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<Item>

<UCPTname>Net/LON/iLON App/Data Logger[3]</UCPTname>

</Item>
</iLonItem>
</SetResponse>

5.3.4

Using the Read Function on a Data Logger

Use the Read function to retrieve entries from the log files generated by your Data Loggers. You can
specify which log entries the function will return by filling the properties described in the following
table into the input you supply to the function.

You could use a Read request to generate a list of updates recorded for a specific data point or to
generate a list of data point updates recorded during a specific interval.

Note: You should not attempt to read more than 150 log entries with a single Read request. You can
use the following position() expression to ensures that a maximum of 64 values is returned:
“[position()&gt; =last()-64]“

Request (updates recorded for a specific data point)

<Read xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect>

//Item[@xsi:type="UFPTdataLogger_Data"]

[UCPTpointName="Net/LON/iLON App/Digital Output 1/nviClaValue_1"]

</xSelect>

</iLonItem>
</Read>

Advertising