Echelon IzoT NodeBuilder User Manual

Page 178

Advertising
background image

3. All other fields in the structure are automatically set to their default values, which are defined in

resource files. If no default value is defined for the field, it is set to 0 or the minimum value
allowed if 0 is out of range. You can set all fields to their default values by clicking Use Default.

The current initial value for the structure is displayed in the Initializer box. The values are
enclosed in braces and are separated with commas (e.g.,

{SET_OFF, 0, 0}

for a SNVT_setting data

type).

4. Enter values for all other fields in the structure.

You can edit the values of a field by either selecting the field and clicking Value in the Structure
Fields
box or directly editing the value in the Initializer box. You can add comments or arrange
the initializer value to be displayed in a separate line by editing the Initializer box directly. If you
select a field in the Structure Fields box, the corresponding value in the Initializer box is
highlighted and vice versa. For a union, you can only set the first member; all subsequent
members are read-only.

You can use a preprocessor #define statement to define a string that can be used as a structure
initializer. For example, you can enter the following: #define myInit {FS_XFER_OK,
1, 2 {{{3}, {0x00, 0x00, 0x00, 0x000}, 0}}}

. If you do this, you can enter

myInit directly in the Initializer box when creating the network variable or configuration
property. The Edit Initializer dialog will not be aware of the #define statement, and it will not
verify any data you enter.

5. Click OK to save the changes. The value specified in the Initializer box will be transferred to the

Initializer property of the respective network variable or configuration property dialog.

Setting Initial Values for Enumerations

For enumerated network variables and configuration properties, you can enter a value following these
steps:

1. Click anywhere in the data type’s row.

164

Defining Device Interfaces and Creating their Neuron C Framework

Advertising