FTXL User’s Guide ix
Initializing the FTXL Device ................................................................ 81
Periodically Calling the Event Pump................................................... 81
Sending a Network Variable Update ................................................... 83
Receiving a Network Variable Update from the Network.................. 85
Handling a Network Variable Poll Request from the Network.......... 88
Handling Changes to Changeable-Type Network Variables .............. 88
Validating a Type Change ..............................................................89
Processing a Type Change.............................................................. 90
Processing a Size Change ............................................................... 91
Rejecting a Type Change ................................................................ 92
Handling Dynamic Network Variables ................................................ 92
Communicating with Other Devices Using Application Messages .... 93
Sending an Application Message to the Network ......................... 94
Receiving an Application Message from the Network.................. 94
Handling Management Commands...................................................... 94
Handling Local Network Management Tasks ..................................... 95
Handling Reset Events.......................................................................... 95
Querying the Error Log......................................................................... 95
Working with ECS Devices.......................................................................... 95
Using Direct Memory Files.......................................................................... 96
The DMF Memory Window................................................................... 97
File Directory ......................................................................................... 99
Shutting Down the FTXL Device ................................................................99
Working with the Nios II Development Environment...................................101
Development Tools ..................................................................................... 102
Using a Device Programmer for the FPGA Device .................................. 103
Setting up the Nios II IDE ........................................................................ 103
Creating a New FTXL Application Project ........................................ 104
Running the LonTalk Interface Developer Utility ............................ 105
Customizing the FTXL System Library............................................. 105
Specifying the Properties for the Application.................................... 106
Building the Application Image ................................................................ 107
Loading the Application Image into Persistent Memory ........................ 107
Running the Application............................................................................ 108
Debugging the Application ........................................................................ 109
LonTalk Interface Developer Command Line Usage.....................................111
Overview .....................................................................................................112
Command Usage ........................................................................................ 112
Command Switches....................................................................................113
Specifying Buffers................................................................................ 115
Model File Compiler Directives ......................................................................119
Using Model File Compiler Directives......................................................120
Acceptable Model File Compiler Directives.............................................. 120
Neuron C Syntax for the Model File...............................................................125
Functional Block Syntax............................................................................ 126
Keywords.............................................................................................. 126
Examples.............................................................................................. 128
Functional Block Properties Syntax ......................................................... 129
Keywords.............................................................................................. 129
Examples.............................................................................................. 130
Network Variable Syntax .......................................................................... 132
Comentários a estes Manuais