Echelon LonBridg Server User Manual

Page 64

Advertising
background image

58

LonBridge Device Class File

Neuron C Declaration

XIF File Definition

network output polled SNVT_switch_2
nvoValueFb

nv_properties {

cpMinSendTime

};

VAR nvoValueFb 2 0 0 0

0 1 63 1 0 1 0 1 0 0 0 0 0

"@0|2

189 * 3

1 0 0 1 0

4 0 1 0 0

1 0 0 0 0

network output polled SNVT_power
nvoPower

nv_properties {

cpPwrSendOnDelta

};

VAR nvoPower 5 0 0 0

0 1 63 1 0 1 0 1 0 0 0 0 0

"@0|4

27 * 1

2 0 0 0 0

For a device class file, you need the network variable index for each network

variable. The index is the first value following the network variable name:

• VAR nviValue 0 0 0 0 …
• VAR nvoValueFb 2 0 0 0 …
• VAR nvoPower 5 0 0 0 …

Thus, nviValue has index 0, nvoValueFb has index 2, and nvoPower has index

5. And so, you can fill in these values within <attributes> element in the device
class file:

<attributes>
<attribute name="state">
<nvs>
<nv index="0" direction="input" />
<nv index="2" direction="output" />
</nvs>
</attribute>
<attribute name="power">
<nvs>
<nv index="5" direction="output" />
</nvs>
</attribute>
</attributes>

Likewise, you can you can fill in these values within <nvs> element in the device
class file:

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

Advertising