Echelon i.LON SmartServer Technical Information Page 26

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 25
i.LON SmartServer 2.0 Programmer’s Reference
2-12
The following code samples demonstrate supported xSelect statements.
Example 1 – List or Get all channels on the SmartServer:
<iLonItem>
<xSelect> = "//Item[@xsi:type="Channel_Cfg"] </xSelect>
</iLonItem>
Example 2 – List or Get all LONWORKS channels on the SmartServer that were updated after a specific
time:
<iLonItem>
<xSelect>//Item[@xsi:type="LON_Channel_Cfg"][UCPTlastUpdate &gt;"2008-04-01T00:00:00
"]
</xSelect>
</iLonItem>
Example 3 – List or Get all LONWORKS application devices of a specific type (by name) on a specific
channel.
<iLonItem>
<xSelect>//Item[@xsi:type="LON_Device_Cfg"][contains(UCPTname,"Net/LON/DIO")]</xSelect>
</iLonItem>
Example 4 – List or Get all instantiated functional blocks on the SmartServer automated systems
device [i.LON App (internal)]:
<iLonItem>
<xSelect>//Item[@xsi:type="Fb_Cfg"][starts-with(UCPTname,"Net/LON/")][UCPThidden=0]</xSelect>
</iLonItem>
Example 4 – List, Get, or Read all data points on the Digital Input 1 functional block on the internal
i.LON App device:
<iLonItem>
<xSelect>//Item[@xsi:type="Dp_Cfg"]
[starts-with(UCPTname, "Net/LON/iLON App/Digital Input 1/")]</xSelect>
</iLonItem>
Example 5 – Get all SNVT_switch data points on the SmartServer that were updated in the time line
defined by <UCPTlastUpdate>:
<iLonItem>
<xSelect>
//Item[@xsi:type="Dp_Cfg"][UCPTformatDescription="#0000000000000000[0].SNVT_switch"]
[UCPTlastUpdate &gt;"2008-04-01T00:00:00" and UCPTlastUpdate &lt;"2008-04-07T00:00:00"]
</xSelect>
</iLonItem>
Example 6 – List, Get, or Read the data points on the internal i.LON App device in the time line
defined by <UCPTlastUpdate> to return a maximum of the 11th to 29th data points:
<iLonItem>
<xSelect>//Item[@xsi:type="Dp_Cfg"] [starts-with(UCPTname,"Net/LON/iLON App/")]
[UCPTlastUpdate &gt; "2008-04-01T15:30:21Z" and UCPTlastUpdate &lt; "2008-04-08T15:30:21Z"]
[position()&gt;10 and position()&lt;30]
</xSelect>
</iLonItem>
Example 7 – List or Get all instantiated Alarm Generators on the internal i.LON App device;
<iLonItem>
<xSelect>//Item[@xsi:type="UFPTalarmGenerator_Cfg"]</xSelect>
</iLonItem>
Example 8 – Read the first 10 events scheduled in a Scheduler on the internal i.LON App device:
<iLonItem>
<xSelect>//Item[@xsi:type=”UFPTscheduler_Data”]
[UCPTname="Net/LON/iLON App/Scheduler"]
[UCPTeventFilter="EF_SCHEDULE"][position()&lt;10]"
</xSelect>
</iLonItem>
Page view 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 442 443

Comments to this Manuals

No comments