Code commands – Echelon IzoT NodeBuilder User Manual

Page 193

Advertising
background image

Default directors for functional blocks or functional block arrays. The source code for each

functional block or functional block array contains a default implementation of a director function

Utility functions to manage functional block state. The Code Wizard generates common.h and

common.nc files, which contain some utility functions. Most utility functions are delivered with
the CodeWizard-3.lib library file (CodeWizard.lib for version 2 templates), and they are
declared in the CodeWizard.h header file. See these files for more information on these
functions.

File directory structure. The Code Wizard creates code to reference the configuration property

template and value files for both direct memory read/write and FTP configuration property access.
The two access methods are mutually exclusive.

If FTP is used to access configuration property template and value files, and at least one

configuration file has been implemented, the Code Wizard code also provides an implementation
of the FTP server. The default implementation of the FTP server supports read and write access
both sequentially and random access. The FTP server supports configuration property files with
up to the amount of available space on the Neuron Chip. This space is equal to 64 KB minus any
address space used for code, data, or other features. The default implementation of the FTP server
does not support local initiation or dynamic creation of files, but partially implements the
framework for these operations. See the filexfer.h file for more details.

Modifying Neuron C Code Generated by the Code Wizard

Each file generated by the Code Wizard has sections that look like this:

//{{NodeBuilder Code Wizard Start

//{{NodeBuilder Code Wizard End

Neuron C code inside these comments will be modified by the Code Wizard every time code you
generate code for the device template. You can edit the Neuron C code outside these tags, and your
changes will not be overwritten when you run the Code Wizard again.

Code Commands

Inside this Code Wizard generated code, there are commands used by the Code Wizard that look like
this:

//<Command>

These commands indicate where the NodeBuilder Code Wizard puts certain pieces of generated code.
For example, the //<Include Headers> precedes the Code Wizard generated list of include statements.
If you want to remove the Code Wizard statements from Code Wizard control, you can move them
outside the Code Wizard generated code. Once you have moved a code outside of the Code Wizard
start (//{{NodeBuilder Code Wizard Start), end (//{{NodeBuilder Code Wizard
End

), you will manage the section of the code on your own.

For example, one Neuron C feature that is not supported by the NodeBuilder Code Wizard is a single
configuration property being applied to more than one network variable. The following example
demonstrates this:


//{{NodeBuilder Code Wizard Start
:
:
//<Fblock Input NV Declarations>
network input SNVT_temp_p nviTempP
nv_properties {

cpTransInMin = 0,

cpTransInMax = 3000L

IzoT NodeBuilder FX User's Guide

179

Advertising