Echelon LonTal Stack User Manual

Page 4

Advertising
background image

iv

Serial MIP Driver Example......................................................................... 47

Serial MIP Driver API ................................................................................. 47

Structures .............................................................................................. 47

Functions................................................................................................ 48

6

Creating a Model File ..............................................................................51

Model File Overview .................................................................................... 52

Defining the Device Interface...................................................................... 53

Defining the Interface for a LonTalk Stack Application..................... 53

Choosing the Data Type ................................................................. 54

Defining a Functional Block ................................................................. 55

Declaring a Functional Block......................................................... 56

Defining a Network Variable................................................................ 56

Defining a Changeable-Type Network Variable ........................... 58

Defining a Configuration Property....................................................... 59

Declaring a Configuration Property .............................................. 59

Responding to Configuration Property Value Changes................ 62

Defining a Configuration Property Array ..................................... 62

Sharing a Configuration Property ................................................. 64

Inheriting a Configuration Property Type .................................... 66

Declaring a Message Tag ...................................................................... 67

Defining a Resource File ....................................................................... 68

Implementation-Specific Scope Rules............................................ 70

Writing Acceptable Neuron C Code ............................................................ 70

Anonymous Top-Level Types ................................................................ 71

Legacy Neuron C Constructs ................................................................ 71

Using Authentication for Network Variables ............................................ 71

Specifying the Authentication Key....................................................... 72

How Authentication Works................................................................... 73

Managing Memory ....................................................................................... 74

Address Table ........................................................................................ 74

Alias Table ............................................................................................. 75

Domain Table......................................................................................... 75

Network Variable Configuration Table................................................ 76

Example Model files..................................................................................... 76

Simple Network Variable Declarations ............................................... 76

Network Variables Using Standard Types .......................................... 76

Functional Blocks without Configuration Properties ......................... 77

Functional Blocks with Configuration Network Variables................. 78

Functional Blocks with Configuration Properties Implemented

in a Configuration File .......................................................................... 79

7

Using the LonTalk Interface Developer Utility ................................81

Running the LonTalk Interface Developer................................................. 82

Specifying the Project File .................................................................... 82

Specifying the Echelon Smart Transceiver or Neuron Chip

Configuration ......................................................................................... 83

Configuring the LonTalk Stack ............................................................ 84

Configuring the Buffers ........................................................................ 85

Configuring the Application.................................................................. 86

Configuring Support for Non-Volatile Data......................................... 87

Specifying the Device Program ID ....................................................... 88

Specifying the Model File...................................................................... 89

Specifying Neuron C Compiler Preferences......................................... 90

Advertising