Echelon IzoT NodeBuilder User Manual

Page 176

Advertising
background image

Float

SNVT_volt_f

{0, 0x42, 1, 0x7c, 0x6666}

Structure

SNVT_switch

{200, 0}

Enumeration

SNVT_hvac_mode

HVAC_AUTO

If you need help entering a valid initializer value, you can click the button to the right of the Initializer
property to open the Edit Initializer dialog. This dialog provides information on the data type such as
scaling, and minimum and maximum values. If the network variable or configuration property is a
structure, enumeration, or float, this dialog is very useful:

• For structures, it lists the individual fields in the data type and lets you enter valid values for each

field.

• For enumerations, it lists all the available enumerations for the data type.
• For floats and s32 type values, it lets you convert them to structures.

The following subsections describe how to set values for floats, structures, and enumerations in the
Edit Initializer dialog.

Notes:

• Network variables are automatically reset to 0 during reset processing (except for those declared

with the optional eeprom modifier); therefore, they do not need to be explicitly initialized to 0.

• Configuration properties have default values that are defined in resource files. Default values are

included in the definition of the configuration property type, in the definition of the functional
profile’s member configuration property (an optional initial value override), and possibly in the
definition of an inherited functional profile. The Neuron C compiler will automatically initialize
the configuration property to its defined default value.

Therefore, you can explicitly set the initial value or the configuration property; however, it is

recommended that you use the default values defined in the resource file, if possible.

For more information on the initializer format, see Appendix A of the Neuron C Reference Guide
and any C reference manual.

Setting Initial Values for Structured Data Types

For structured network variables and configuration properties, the Edit Initializer dialog displays the
individual fields in the structure.

162

Defining Device Interfaces and Creating their Neuron C Framework

Advertising