Echelon IzoT NodeBuilder User Manual

Page 5

Advertising
background image

3120 and 3170 Neuron Core ................................................... 122

Setting the Hardware Template Description ................................... 122

6

Defining Device Interfaces and Creating their Neuron C Application

Framework .......................................................................................... 124

Introduction to Device Interfaces ................................................................. 125

Starting the Code Wizard ...................................................................... 125

Using the Resource Pane............................................................... 126

Introduction to Resource File Sets ........................................... 127

Introduction to Resources ........................................................ 128

Using the NodeBuilder Resource Editor .................................. 130

Using the Program Interface Pane ................................................. 130

Defining the Device Interface ................................................................ 132

Adding Functional Blocks ............................................................... 135

Using Large Functional Block Arrays ....................................... 138

Editing Mandatory Network Variables ............................................ 138

Editing Mandatory Configuration Properties................................... 145

Implementing Optional Network Variables ..................................... 151

Implementing Optional Configuration Properties ........................... 153

Adding Implementation-specific Network Variables ....................... 155

Adding Implementation-specific Configuration Properties ............. 158

Setting Initial Values for Network Variables and
Configuration Properties ................................................................. 161

Setting Initial Values for Structured Data Types ...................... 162

Setting Initial Values for Enumerations .................................... 164

Setting Initial Values for Floating Point and s32 Data Types ... 165

Using Changeable-Type Network Variables .................................. 166

Generating Code with the Code Wizard ............................................... 167

Files Created by the Code Wizard ................................................. 167

Using Code Wizard Templates .................................................... 170

Version 3 Templates ................................................................ 170

Version 2 Templates ................................................................ 170

Version 1 Templates ................................................................ 171

Creating the Device Application ..................................................... 171

7

Developing Device Applications .................................................. 173

Introduction to Neuron C ............................................................................. 174

Unique Aspects of Neuron C ................................................................ 174

Neuron C Variables ............................................................................... 176

Neuron C Variable Types ............................................................... 176

Neuron C Storage Classes ............................................................. 176

Variable Initialization ....................................................................... 177

Neuron C Declarations ................................................................... 177

Introduction to Neuron C Code Editing ........................................................ 178

Modifying Neuron C Code Generated by the Code Wizard .................. 179

Code Commands ............................................................................ 179

Code Guidelines ............................................................................. 180

Add I/O and Timer Declarations ............................................... 180

Add when-tasks Responding to I/O and Timer Events ............ 181

Add interrupt-tasks Responding to Interrupt Requests ............ 181

Add Code to when(nv_update_occurs(<nv>)) when-task
of Functional Blocks with Input NVs......................................... 181

Share Code with filexfer.nc when Handling Explicit
Messages on a Device Implementing FTP .............................. 181

Ignore NCC#310 and NC#463 Compiler Warnings ................. 181

Implementing Changeable-Type Network Variables ...................... 181

IzoT NodeBuilder User's Guide

v

Advertising