Echelon i.LON SmartServer Technical Information Page 181

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 180
i.LON SmartServer 2.0 Programmer’s Reference
12-9
ST_HIGH value: 75.0
state: 1 (ON)
ST_MED value: 50.0
state: 1 (ON)
ST_LOW value: 25.0
state: 1 (ON)
The following code demonstrates how to use the Set function to create a type translator that uses this
<UCPTtranslatorRule>:
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="UFPTtypeTranslator_Cfg">
<UCPTname>Net/LON/iLON App/Type Translator[0]</UCPTname>
<DataPoint dpType="Input">
<UCPTname>Net/LON/iLON App/VirtFb/nvilevDisc</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_lev_disc</UCPTformatDescription>
<UCPTnickName>Input0</UCPTnickName>
</DataPoint>
<DataPoint dpType="Output">
<UCPTname>Net/LON/iLON App/VirtFb/nvoSwitch</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_switch</UCPTformatDescription>
<UCPTnickName>Output0</UCPTnickName>
</DataPoint>
<UCPTtranslatorRule>SNVT_lev_disc_TO_SNVT_switch</UCPTtranslatorRule>
<SCPTdelayTime>0</SCPTdelayTime>
</Item>
</iLonItem>
</Set>
12.3.4.4 SNVT_occupancy_TO_SNVT_setting
You can use this Type Translator Rule to translate an input data point of type SNVT_setting to an
output data point of type SNVT_occupancy.
The SNVT_occupancy input data point is defined by a <DataPointFormat> element that has a
“Dp Type” attribute of “Input”. The input data point referenced by <UCPTname> must have a
<UCPTformatDescription> property of #0000000000000000[0]. SNVT_occupancy and a
<UCPTnickName> property of Input0.
The SNVT_setting output data point to be translated is defined by a <DataPoint> element that
have a “Dp Type” attribute of “Output”. The output data point referenced by <UCPTname> must
have a <UCPTformatDescription> of #0000000000000000[0]. SNVT_setting and a
<UCPTnickName> of Output0.
Each time a type translation is made, the function, rotation, and setting fields of the SNVT_setting
ouput data point are assigned values based on the current enumeration stored in the SNVT_occupancy
input data point, as described in the following table:
SNVT_occupancy (input
point)
SNVT_setting (ouput point)
OC_NUL function: SET_STATE (enumerated value is 5)
setting: 0
rotation: 0
OC_UNOCCUPIED function: SET_STATE
setting: 60
rotation: -80.01
OC_OCCUPIED function: SET_STATE
setting: 100
rotation: 80.24
Page view 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 442 443

Comments to this Manuals

No comments