Echelon i.LON SmartServer Technical Information Page 29

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 28
i.LON SmartServer 2.0 Programmer’s Reference
2-15
<DataPoint dpType="nvoLevelAlarm" discrim="dir_out">
<UCPTname>Net/LON/iLON App/Data Logger[0]/nvoDlLevAlarm[0]</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_alarm</UCPTformatDescription>
</DataPoint>
2.7
UCPTcurrentConfig
Each application on the SmartServer stores the namespace version of the client that last set its
configuration (via a Set function) its last configuration. When a client sends a List function in a SOAP
request, the SOAP response returns the UCPTcurrentConfig tag, which contains this information. The
client should check this tag because new namespaces may contain new or different tags that older
clients will not understand.
If a SmartServer responds with a newer UCPTcurrentConfig, the client should allow the user either to
continue using the older tool with the risk that it may overwrite changes made with a newer tool, or fail
and preserve the configuration created by the new tool.
The following code demonstrates the UCPTcurrentConfig tag returned by a SOAP response after
receiving a List function in a SOAP request.
<UCPTcurrentConfig>4.0</UCPTcurrentConfig>
2.8
Fault Structure
The faultcode and faultstring are now combined in a fault structure. If a fault structure exists, both the
faultcode and faultstring elements exist. This enables a client to check only for the existence of a fault
structure instead of having to check for both elements.
The following code demonstrates the fault structure used in Version 4.0.
<fault>
<faultcode faultType="_error">4</faultcode>
<faultstring xml:lang="en-US">fault string</faultstring>
</fault>
2.9
LonString type
The Version 4.0 XML schema declares the type E_LonString, which is a string type and has a value
that represents a L
ONWORKS value. The E_LonString also contains the LonFormat attribute which is a
string that contains the format description of the item. The WSDL uses the E_LonString type for
enumerations or element values that have format descriptions that depend on references to other data
point formats.
The following code sample demonstrates the LonFormat attribute of the E_LonString type.
<UCPTvalue LonFormat="#0000000000000000[0].SNVT_switch">100.0 1</UCPTvalue>
<UCPTvalue LonFormat="#0000000000000000[0].SNVT_switch.value">100.0</UCPTvalue>
<UCPTvalue LonFormat="#0000000000000000[0].SNVT_switch.state">1</UCPTvalue>
<UCPTvalue LonFormat="UCPTvalueDef">ON</UCPTvalue>
<UCPTpointStatus LonFormat="UCPTpointStatus">AL_NUL</UCPTpointStatus>
When you use the Read function on a data point on the Data Server (xsi type = Dp_Cfg), the
E_LonString type has a unit attribute that specifies the unit strings defined for the data point.
<UCPTvalue LonFormat="#0000000000000000[0].SNVT_switch" Unit="value, state">0.0 0</UCPTvalue>
2.10
SOAP Message Examples
The following examples demonstrate how to use the Version 4.0 SOAP interface to get the
configuration of data point, write a value to a data point in a Web connection, and read the data in a
data logger.
Page view 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 442 443

Comments to this Manuals

No comments