Echelon LonBridg Server User Manual

Page 58

Advertising
background image

52

LonBridge Device Class File

Figure 7. The Scales Tab for the SNVT_switch_2 Type

For the enumeration value within the device class file to define the “on” state,
you need to include a scale value of 200 to allow the LonBridge application to use

simple values of 0 and 1 to specify “off” and “on” states.

Thus, the <nv> elements for the

state

attribute within the device class file

includes the following information:

<nv index="?" direction="input" size="3">
<byte index="0" length="1">
<attribute name="state" enum="true">
...
</attribute>
</byte>
<byte index="1" length="1">
<attribute name="state" enum="true">
...
</attribute>
</byte>
</nv>
<nv index="?" direction="output">
<byte index="0">
<attribute name="state" enum="true">
...
</attribute>
</byte>

Advertising