Echelon FTXL Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Echelon FTXL herunter. Echelon FTXL User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 261
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - FTXL User’s Guide

FTXL User’s Guide078-0363-01A®

Seite 2

x Keywords... 132 The Network Variable Modifier ...

Seite 3 - Related Documentation

88 Developing an FTXL Application nciGain }; You can enhance the myController() function to implement the new gain f

Seite 4 - ONWORKS System

FTXL User’s Guide 89 See The Dynamic Interface Example Application on page 202 for an example application that handles changeable-type network

Seite 5

90 Developing an FTXL Application } nv_type_category_t; This enumeration describes the type (signed short or floatin

Seite 6

FTXL User’s Guide 91 then the application must process the type changes for both the network variable and the configuration network variable.

Seite 7 - Table of Contents

92 Developing an FTXL Application callback handler function can report the correct current size for any implemented n

Seite 8

FTXL User’s Guide 93 network variable is added. On device startup, it calls this function for each dynamic network variable that had been pre

Seite 9

94 Developing an FTXL Application Sending an Application Message to the Network Call the LonSendMsg() function to sen

Seite 10

FTXL User’s Guide 95 management callbacks. These commands are requests for your application to wink, go offline, go online, or reset, and are

Seite 11

96 Developing an FTXL Application utility, might not be able to communicate with a device that is in the extended mod

Seite 12

FTXL User’s Guide 97 You do not generally need to modify the code that the LonTalk Interface Developer utility generates (in FtxlDev.c) or the

Seite 13 - Introduction to FTXL

FTXL User’s Guide xi Managing Interrupts... 179 Determining Memory Usa

Seite 14

98 Developing an FTXL Application FTXL TransceiverRegistered Memory WindowMaximum range: 0x0001 – 0xFFFFFile director

Seite 15 - Neuron-hosted

FTXL User’s Guide 99 File Directory The LonTalk Interface Developer utility produces a configurable file directory structure, which supports:

Seite 17 - Servers

FTXL User’s Guide 101 6 Working with the Nios II Development Environment This chapter describes how to set up the Nios II IDE for building a

Seite 18 - ShortStack Device

102 Working with the Nios II Development Environment Development Tools To develop your FTXL application, you use ver

Seite 19 - ONWORKS networking to a high

FTXL User’s Guide 103 Using a Device Programmer for the FPGA Device To load your hardware design, software application, and the FTXL LonTalk p

Seite 20 - Devices

104 Working with the Nios II Development Environment application consists of the following components, all of which n

Seite 21 - ONWORKS Devices

FTXL User’s Guide 105 5. Specify the target hardware. Click Browse in the Select Target Hardware area to open the Select Target Hardware dia

Seite 22 - Memory Files

106 Working with the Nios II Development Environment To customize the system library properties for the operating sys

Seite 23 - FTXL Architecture

FTXL User’s Guide 107 f. In the Properties window, click Apply to save these settings, then click OK to close the dialog. Other options and p

Seite 24

xii LonTalk Interface Developer Utility Error and Warning Messages...229 Introduction...

Seite 25 - The FTXL Developer’s Kit

108 Working with the Nios II Development Environment b. Load the hardware image for the Nios II processor into the F

Seite 26 - Started with

FTXL User’s Guide 109 4. If you have a valid Nios II development license, and have already loaded the configuration data (the JTAG Indirect C

Seite 27

110 Working with the Nios II Development Environment • The application itself, including implementations of the even

Seite 28 - ONWORKS network tool

FTXL User’s Guide 111 A LonTalk Interface Developer Command Line Usage This appendix describes the command-line interface for the LonTalk Int

Seite 29 - Getting Started with FTXL

112 LonTalk Interface Developer Command Line Usage Overview The LonTalk Interface Developer utility consists of two m

Seite 30 - ONWORKS network connector

FTXL User’s Guide 113 are yes, on, 1, +, no, off, 0, - (a minus sign or dash). Examples: libf -–verbosecomments=yes libf --verbosecomments •

Seite 31 - Software Requirements

114 LonTalk Interface Developer Command Line Usage Command Switch Long Form Short Form Description --buffer -B Impl

Seite 32 - FTXL API Files

FTXL User’s Guide 115 Command Switch Long Form Short Form Description --source -n Use the specified model file --spdelay -p Set the servic

Seite 33

116 LonTalk Interface Developer Command Line Usage Note that the type and number for the --buffer switch are separate

Seite 34 - 22 Getting Started with FTXL

FTXL User’s Guide 117 Buffer Type Primary Specification Alternate Specifications Valid Values Network output priority buffers nop netoutputpri

Seite 35

FTXL User’s Guide 1 1 Introduction to FTXL This chapter introduces the LonTalk Platform for FTXL Transceivers. It describes the architecture

Seite 37

FTXL User’s Guide 119 B Model File Compiler Directives This Appendix lists the compiler directives that can be included in a model file. Mod

Seite 38 - Choosing the Data Type

120 Model File Compiler Directives Using Model File Compiler Directives ANSI C permits compiler extensions through th

Seite 39 - Defining a Functional Block

FTXL User’s Guide 121 Important: Configuration property re-ordering and merging can reduce the memory required for the template file, but can

Seite 40 - Defining a Network Variable

122 Model File Compiler Directives #pragma set_guidelines_version string The Neuron C 2.1 compiler generates LONMARK

Seite 41 - Defining a Resource File

FTXL User’s Guide 123 #pragma disable_warning number #pragma enable_warning number Controls the compiler's printing of individual warning

Seite 43 - ONMARK Standard Program ID

FTXL User’s Guide 125 C Neuron C Syntax for the Model File This Appendix lists the Neuron C syntax for the allowable statements of a model fil

Seite 44

126 Neuron C Syntax for the Model File Functional Block Syntax fblock FPT-identifier { fblock-member-list } identifie

Seite 45 - Using Direct Memory

FTXL User’s Guide 127 referenced by the fblock must be declared as an array of at least the same size. When implementing an fblock array&apos

Seite 46 - Value Changes

2 Introduction to FTXL Overview Automation solutions for buildings, homes, and industrial applications include sensor

Seite 47 - static nciOffset

128 Neuron C Syntax for the Model File implementation_specific keyword, followed by a unique index number, and a uniq

Seite 48

FTXL User’s Guide 129 Functional Block Properties Syntax fb_properties { property-reference-list } property-reference-list : property-refere

Seite 49

130 Neuron C Syntax for the Model File has a range modification, then all members must have a range modification spec

Seite 50

FTXL User’s Guide 131 of the nvoData network variable array), and four offset CP family members (SCPToffset), one for each member of each fblo

Seite 51

132 Neuron C Syntax for the Model File network output SNVT_amp nvoAmpere; network output polled SNVT_time_stamp nvoIn

Seite 52 - Declaring a Message Tag

FTXL User’s Guide 133 sync | synchronized Specifies that all values assigned to this network variable must be propagated, and in their origi

Seite 53

134 Neuron C Syntax for the Model File In an application that uses compiler-generated SD data, you can still specify

Seite 54 - LonMaker User's Guide

FTXL User’s Guide 135 Recommendation: Use a SNVT or SCPT if one is available that matches your data because SNVTs and SCPTs can provide inte

Seite 55 - Anonymous Top-Level Types

136 Neuron C Syntax for the Model File network variables. This keyword is not required for model files. Names of arr

Seite 56 - Legacy Neuron C Constructs

FTXL User’s Guide 137 A network variable connection is authenticated only if the readers and writers have the authenticated keywords specified

Seite 57 - How Authentication Works

FTXL User’s Guide 3 the ANSI/CEA-709.1 (EN14908-1) Control Network Protocol as the “LonTalk protocol”, although other interoperable implementa

Seite 58

138 Neuron C Syntax for the Model File The Network Variable Initializer initial-value or initializer-list Specifies a

Seite 59 - Alias Table

FTXL User’s Guide 139 Network variable properties can be shared between two or more network variables. The use of the global keyword creates

Seite 60 - Example Model files

140 Neuron C Syntax for the Model File cp_family Declares the configuration property as part of a configuration file.

Seite 61 - Using Types

FTXL User’s Guide 141 network database. This specification is used for configuration properties that must be managed by the device, such as a

Seite 62 - UFPTenergyMeter

142 Neuron C Syntax for the Model File specified. In this case, each range modification pair is delimited by the ASC

Seite 63

FTXL User’s Guide 143 The compiler uses the first rule in this list that applies to the configuration property. These initialization rules are

Seite 64

144 Neuron C Syntax for the Model File The syntax for declaring a device property list is: device_properties { proper

Seite 65 - SNVT_address

FTXL User’s Guide 145 // empty string initializer with its own }; Message Tag Syntax msg_tag [ connection-info ] tag-identifier [, tag-ide

Seite 67 - Developer Utility

FTXL User’s Guide 147 D FTXL LonTalk API This Appendix describes the API functions, event handler functions, and callback handler functions t

Seite 68 - Specifying the Project File

4 Introduction to FTXL Neuron Firmware Figure 1. A Single-Chip LONWORKS Device For a Neuron-hosted device that uses a

Seite 69

148 FTXL LonTalk API Introduction The FTXL LonTalk API provides the functions that you call from your FTXL applicatio

Seite 70 - Configuring the Application

FTXL User’s Guide 149 • API source code for the example applications: Start → Programs → Echelon FTXL Developer’s Kit → Source Code FTXL Lon

Seite 71 - ONMARK Standard Program

150 FTXL LonTalk API Table 13. Other FTXL LonTalk API Functions Function Description LonFreeNvTypeData() Frees int

Seite 72 - Specifying the Model File

FTXL User’s Guide 151 Function Description LonSendResponse() Sends an application message response to a request message. The FTXL applica

Seite 73 - NodeBuilder Errors Guide

152 FTXL LonTalk API Function Description LonQueryConfigData() Queries local configuration data on the FTXL device

Seite 74 - Copied Files

FTXL User’s Guide 153 Table 17. Commonly Used FTXL Event Handler Functions Function Description LonNvUpdateCompleted() Indicates that eithe

Seite 75 - FtxlDev.c

154 FTXL LonTalk API Dynamic Network Variable Event Handler Functions Table 18 lists the event handler functions tha

Seite 76

FTXL User’s Guide 155 Function Description LonResponseArrived() Indicates that an application message response has arrived from the network

Seite 77 - Bit Field Members

156 FTXL LonTalk API Function Description LonEventReady() Indicates that a network event is ready to be processed.

Seite 78 - Floating Point Variables

FTXL User’s Guide 157 Function Description LonNvdDelete() Indicates a request to delete a non-volatile data segment. LonNvdDeserializeSegme

Seite 79

FTXL User’s Guide 5 Compared to the single-chip device, the Smart Transceiver implements only a subset of the LonTalk protocol layers. The ho

Seite 80 - Declarations

158 FTXL LonTalk API • HTML API documentation: Start → Programs → Echelon FTXL Developer’s Kit → Documentation → AP

Seite 81

FTXL User’s Guide 159 Function Description OsalDeleteEvent() Deletes an event. OsalSetEvent() Sets an event. OsalWaitForEvent() Waits

Seite 82

160 FTXL LonTalk API Table 29. FTXL OSAL Debug Functions Function Description OsalClearStatistics() Clears the c

Seite 83 - Network Variable Attributes

FTXL User’s Guide 161 Resource Number Notes Events 10 Modify the number of events, if needed, within the operating-system settings. To cal

Seite 84 - The Message Tag Table

162 FTXL LonTalk API Figure 13. FTXL Abstract Priorities Before you can instantiate a task within an application, yo

Seite 85 - FTXL User’s Guide 73

FTXL User’s Guide 163 OS_LOW_APPLICATION_PRIORITY_BASE Defines the highest OS priority used for application tasks running at a lower priority

Seite 86 - Using the FTXL LonTalk API

164 FTXL LonTalk API Figure 15. Defined Symbols in the Project Properties Dialog Similarly, if you want to support a

Seite 87 - Transceiver

FTXL User’s Guide 165 priority tasks (OS_HIGH_PRIORITY_BASE) set to 4. The figure assumes that low numbers represent high priorities. The cr

Seite 88 - Callbacks and Events

166 FTXL LonTalk API Lowest Assignable Task Priority The μC/OS-II operating system uses the lowest task priority for

Seite 89 - System Abstraction Layer

FTXL User’s Guide 167 Maximum Number of Event Control Blocks The μC/OS-II operating system uses event control blocks for the FTXL OSAL critica

Seite 90 - Restoring Non-Volatile Data

6 Introduction to FTXL Using a ShortStack Micro Server makes it easy to add LONWORKS networks to any existing smart d

Seite 91 - Writing Non-Volatile Data

168 FTXL LonTalk API Table 33. MicroC/OS-II General Options Option Setting for FTXL Applications Maximum number of

Seite 92

FTXL User’s Guide 169 Figure 18. MicroC/OS-II General Options Page Event Flags Table 34 describes the event flag options for the μC/OS-II ope

Seite 93 - Initializing the FTXL Device

170 FTXL LonTalk API Option Setting for FTXL Applications Size of name of Event Flag group 0 or larger Event flag b

Seite 94 - InputBufferCount

FTXL User’s Guide 171 Option Setting for FTXL Applications Include code for OSMutexDel() Not required Include code for OSMutexQuery() Not r

Seite 95 - ONWORKS devices by

172 FTXL LonTalk API Figure 20. MicroC/OS-II Semaphores Page Mailboxes FTXL applications do not use mailbox resource

Seite 96 - Stack and API

FTXL User’s Guide 173 Queues FTXL applications do not use queue resources. Table 38 describes the queue options for the μC/OS-II operating sy

Seite 97

174 FTXL LonTalk API Option Setting for FTXL Applications Enable debug variables Not required Include code for OSSc

Seite 98 - LonNvUpdateOccurred()

FTXL User’s Guide 175 Figure 21. MicroC/OS-II Miscellaneous Page Task Management Table 41 describes the task-management options for the μC/OS

Seite 99

176 FTXL LonTalk API Option Setting for FTXL Applications Include code for OSTaskQuery() Required Include code for

Seite 100 - Variables

FTXL User’s Guide 177 Table 42. MicroC/OS-II Time Management Options Option Setting for FTXL Applications Include code for OSTimeDlyHMSM()

Seite 101 - Validating a Type Change

FTXL User’s Guide 7 For an FTXL device, you use an Altera Nios II processor as the host processor for your device’s application and I/O. The

Seite 102 - Processing a Type Change

178 FTXL LonTalk API Table 43. MicroC/OS-II Timer Management Options Option Setting for FTXL Applications Maximum nu

Seite 103 - Processing a Size Change

FTXL User’s Guide 179 Table 44. FTXL HAL Transceiver Functions Function Description LonAssertTransceiverReset() Asserts the FTXL Transce

Seite 104 - Rejecting a Type Change

180 FTXL LonTalk API Function Description LonDriverTransceiverIrq() The main body of the ISR for processing input

Seite 105 - Messages

FTXL User’s Guide 181 E Determining Memory Usage for FTXL Applications This Appendix describes how much volatile and non-volatile memory an FT

Seite 106 - Handling Management Commands

182 Determining Memory Usage for FTXL Applications Overview The FTXL LonTalk protocol stack allocates memory dynamica

Seite 107 - Working with ECS Devices

FTXL User’s Guide 183 call to the LonInit() function (you could also call it after the FTXL device is commissioned or during peak activity).

Seite 108 - Using Direct Memory Files

184 Determining Memory Usage for FTXL Applications Table 48. RAM Usage per Application Buffer Application Buffer Type

Seite 109 - The DMF Memory Window

FTXL User’s Guide 185 required for each type of LONWORKS resource. The number of bytes required for each type of resource is an estimate; you

Seite 110 - LON_DMF_WINDOW_USAGE

186 Determining Memory Usage for FTXL Applications The flash memory implementation in the FtxlNvdFlashDirect.c file r

Seite 111 - File Directory

FTXL User’s Guide 187 Table 53. Non-Volatile Memory Required for the Application Data Application Data Bytes Required Header 16 CPNVs ()∑jjCP

Seite 112

Echelon, LONWORKS, LONMARK, NodeBuilder, LonTalk, Neuron, 3120, 3150, LNS, i.LON, ShortStack, LonMaker, and the Echelon logo are trademarks of Echelon

Seite 113 - Development Environment

8 Introduction to FTXL Transceiver and wiringApplication in CFTXL Device11-pin parallel I/O link layer and driver sof

Seite 114 - Development Tools

188 Determining Memory Usage for FTXL Applications Table 54. Example Memory Usage Number of Network Variables Number

Seite 115 - Setting up the Nios II IDE

FTXL User’s Guide 189 05001000150020002500Memory (KB)10 100 250 500 1000 2000 4000Number of Network VariablesRAMFlash Figure 24. Example Memor

Seite 117

FTXL User’s Guide 191 F Downloading an FTXL Application Over the Network This Appendix describes considerations for designing an FTXL applicat

Seite 118 - II Operating System

192 Downloading an FTXL Application Over the Network Overview For a Neuron-hosted device, you can update the applicat

Seite 119 - Application

FTXL User’s Guide 193 should also inform the user of its state. During this stage, the FTXL device should verify that the application to be d

Seite 120 - Running the Application

194 Downloading an FTXL Application Over the Network minimum, the FTXL application should reserve enough RAM to buffe

Seite 121 - Debugging the Application

FTXL User’s Guide 195 G Example FTXL Applications This Appendix describes the example applications that are included in the FTXL Developer’s K

Seite 122 - FTXL Hardware Guide

196 Example FTXL Applications Overview of the Example Applications The FTXL Developer’s Kit includes two example appl

Seite 123 - Command Line Usage

FTXL User’s Guide 197 Table 56. FTXL Dynamic Interface Example Files File Name Description Dynamic Interface Example.lidprj LonTalk Interfa

Seite 124 - Command Usage

FTXL User’s Guide 9 Table 3. Comparing Neuron-Hosted and Host-Based Solutions for LONWORKS Devices Characteristic Neuron-Hosted Solution Sho

Seite 125 - Command Switches

198 Example FTXL Applications Main Function The main() function is in the main.c file. The main() function creates a

Seite 126

FTXL User’s Guide 199 • Creates the “event ready” event using the FTXL OSAL OsalCreateEvent() function. The LonEventReady() callback handler

Seite 127 - Specifying Buffers

200 Example FTXL Applications The FtxlHandlers.c file contains the modified LonNvUpdateOccurred() function, which is

Seite 128

FTXL User’s Guide 201 • ProcessOnlineEvent(): Calls the ProcessNviVoltUpdate() function when the device goes online. These functions are def

Seite 129

202 Example FTXL Applications For more information about creating and using a model file, see Creating a Model File o

Seite 130

FTXL User’s Guide 203 SNVT_volt_mil type. Any attempt to change the NV to an unsupported type causes the device to reject the change and to r

Seite 131 - Creating a Model File

204 Example FTXL Applications LON_SET_UNSIGNED_WORD(FbStatus[fbIndex].object_id, fbIndex); } /* Initiali

Seite 132

FTXL User’s Guide 205 Although the main() and appTask() functions for this application are part of an example, you can use the same basic algo

Seite 133

206 Example FTXL Applications This functional separation approach keeps changes to the LonTalk Interface Developer ut

Seite 134 - C-string-const

FTXL User’s Guide 207 • Checks whether the object index represents a supported object: o For non-supported objects, sets the object status t

Seite 135

10 Introduction to FTXL Notes: 1. ShortStack Micro Servers running on FT 3150 or PL 3150 Smart Transceivers support u

Seite 136

208 Example FTXL Applications LonBool processActuatorInputs = FALSE; unsigned index =

Seite 137

FTXL User’s Guide 209 /* Update the status. If the object is not the * node object, just return the current status

Seite 138 - Keywords

210 Example FTXL Applications { /* Actuator was disabled, but is now *

Seite 139

FTXL User’s Guide 211 break; } } myNvAdded() The myNvAdded() function calls the UpdateCircuitMap() utility function to update the log

Seite 140 - Examples

212 Example FTXL Applications void myNvDeleted(const unsigned index) { LonByte oldCircuitId = circuitMap[index].cir

Seite 141

FTXL User’s Guide 213 Application-Specific Utility Functions The dynamic interface example application includes the following application-spec

Seite 142

214 Example FTXL Applications void myEventReady(void) { /* Signal application task so that it can process the * e

Seite 143

FTXL User’s Guide 215 fblock SFPTclosedLoopActuator { nviVolt implements nviValue; nvoVoltFb implements nvoValueFb; } voltActuator exte

Seite 144 - Network Variable Syntax

216 Example FTXL Applications 3. Optional: Enter a project name in the Name field. The default name is FTXL_Simple

Seite 145

FTXL User’s Guide 217 Figure 25. New Project Window for the FTXL Simple Project Perform the same steps to create a new project for the dynami

Seite 146 - The Network Variable Type

FTXL User’s Guide 11 The FTXL LonTalk protocol stack and API require about 540 KB of program memory on the Nios II host processor, not includi

Seite 147 - Information

218 Example FTXL Applications 2. From the Welcome to LonTalk Interface Developer page of the utility, click Browse t

Seite 148

FTXL User’s Guide 219 1. Start the Nios II EDS IDE. 2. Ensure that the workspace includes the example application project that you want to b

Seite 149 - Authentication

220 Example FTXL Applications e. Select Program FPGA configuration data into hardware-image region of flash memory t

Seite 150

FTXL User’s Guide 221 5. If you have a valid Nios II development license, and have already loaded the configuration data into the Cyclone II

Seite 151

222 Example FTXL Applications Running the Simple Example To verify that the application runs as expected, connect the

Seite 152

FTXL User’s Guide 223 6. In the Select Network Variable Type dialog, expand C:\LonWorks\Types\STANDARD.FMT and select either SNVT_volt or SNV

Seite 153

224 Example FTXL Applications 3. Drag a Functional Block shape from the NodeBuilder Basic Shapes 3.0 pane of the Sha

Seite 154

FTXL User’s Guide 225 vi. The Create Network Variable dialog should look similar to Figure 26. Figure 26. The LonMaker Create Network Variab

Seite 155

226 Example FTXL Applications vi. The Create Network Variable dialog should look similar to Figure 27. Figure 27. T

Seite 156

FTXL User’s Guide 227 5. Repeat steps 2 - 4 to set values for the nviAmpA02 and nviAmp03 network variables and observe the change to the nvoA

Seite 157

12 Introduction to FTXL Figure 4 shows the basic architecture of an FTXL device. Figure 4. FTXL Architecture The FTXL

Seite 158

228 Example FTXL Applications Each time you build either of the FTXL example applications, you see the following remi

Seite 159 - FTXL LonTalk API

FTXL User’s Guide 229 G LonTalk Interface Developer Utility Error and Warning Messages This Appendix lists the LonTalk Interface Developer ut

Seite 160 - Introduction

230 LonTalk Interface Developer Utility Error and Warning Messages Introduction All messages, errors and warnings, co

Seite 161 - Functions

FTXL User’s Guide 231 LID# Description 5 An error occurred when reading a device interface file This is an internal error, probably a result

Seite 162

232 LonTalk Interface Developer Utility Error and Warning Messages LID# Description 10 Failure to attach to LONUCL3

Seite 163 - Extended API Functions

FTXL User’s Guide 233 LID# Description 21 The xif32bin.exe utility returned an error, indicating failure when converting XIF to XFB The bina

Seite 164 - FTXL Event Handler Functions

234 LonTalk Interface Developer Utility Error and Warning Messages LID# Description 28 Unexpected error (not a file

Seite 165

FTXL User’s Guide 235 LID# Description 35 Configuration parameters are in use, but no template file has been found This might be the result

Seite 166

236 LonTalk Interface Developer Utility Error and Warning Messages LID# Description 46 One or more configuration pa

Seite 167

FTXL User’s Guide 237 LID# Description 62 Insufficient buffer space The message includes the total number of bytes available for transceiver

Seite 168

FTXL User’s Guide 13 The FTXL LonTalk API consists of the following types of functions: • Functions to initialize the FTXL device after each

Seite 169

238 LonTalk Interface Developer Utility Error and Warning Messages LID# Description 4009 Warning code not in use. 4

Seite 170 - Managing Binary Semaphores

FTXL User’s Guide 239 LID# Description 4019 Warning code not in use. 4020 Warning code not in use. 4021 Warning code not in use. 4022 War

Seite 172 - Operating System

FTXL User’s Guide 241 H Glossary This appendix defines many of the common terms used for FTXL device development.

Seite 173 - Specifying Task Priorities

242 Glossary D downlink Link-layer data transfer from the host to the FTXL Transceiver. E Eclipse An open-source soft

Seite 174

FTXL User’s Guide 243 FTXL link layer The physical connection and protocol used to attach an FTXL host processor to an FTXL Transceiver; the h

Seite 175

244 Glossary included with both the FTXL Developer's Kit and the ShortStack Developer's Kit. LonTalk Platfo

Seite 176

FTXL User’s Guide 245 Index A address table, 47 alias table, 47 Altera Complete Design Suite, 102 ANSI/CEA 709.1-B, 2 application. See FTXL ap

Seite 177 - Maximum Number of Tasks

246 Index new project, 215 Nios II IDE, 215 overview, 196 running, 220 running LonTalk Interface Developer, 217 simpl

Seite 178 - AppTasks

FTXL User’s Guide 247 K keywords configuration property, 139 functional block, 126 functional block properties, 129 message tag, 145 network v

Seite 179 - Other µC/OS-II Settings

14 Introduction to FTXL • The FTXL hardware abstraction layer (HAL) files, which you might need to modify • The FTXL

Seite 180

248 Index building application, 107 compiling, 107 creating new project, 104 debugging, 109 loading application, 107

Seite 182

FTXL User’s Guide 15 Task Additional Considerations Reference Select an FPGA device and load it with Nios II processor and related hardware

Seite 183 - Semaphores

16 Introduction to FTXL Task Additional Considerations Reference Use the LonTalk Interface Developer utility to gene

Seite 184 - Mailboxes

FTXL User’s Guide 17 2 Getting Started with FTXL This chapter describes the FTXL Developer’s Kit and how to install it.

Seite 185 - Miscellaneous

FTXL User’s Guide iii Welcome Echelon’s FTXL™ products enable any product that contains an Altera® Nios® II processor to quickly and inexpensi

Seite 186 - Control Blocks

18 Getting Started with FTXL FTXL Developer’s Kit Overview The FTXL Developer’s Kit is a development toolkit that con

Seite 187 - Task Management

FTXL User’s Guide 19 • Driver software for the Altera USB-Blaster download cable • FPGA configuration data and software for the DBC2C20 deve

Seite 188 - Time Management

20 Getting Started with FTXL DBC2C20 Software Although the DBC2C20 Altera Cyclone II Development Board includes a set

Seite 189 - Timer Management

FTXL User’s Guide 21 File Name Description FtxlHandlers.c Function definitions for the FTXL event handler functions and callback handler fun

Seite 190

22 Getting Started with FTXL

Seite 191 - Managing Interrupts

FTXL User’s Guide 23 3 Creating a Model File You use a model file to define your device’s interoperable interface, including its network in

Seite 192

24 Creating a Model File Model File Overview The interoperable application interface of a LONWORKS device consists o

Seite 193 - FTXL Applications

FTXL User’s Guide 25 Developer’s Kit, and must be licensed separately. See the NodeBuilder User’s Guide for details about using the NodeBuild

Seite 194 - Total Memory Use

26 Creating a Model File Example: The following declaration defines an input network variable of type “SNVT_type” wi

Seite 195 - Memory Use for Buffers

FTXL User’s Guide 27 (for example, SNVT_volt), but can be changed during device installation to a different type (for example, SNVT_volt_mil).

Seite 196 - ONWORKS Resources

iv • Introduction to the LONWORKS System (078-0183-01A). This manual provides an introduction to the ANSI/CEA-709.1 (EN14908) Control Networking Prot

Seite 197 - Memory for Non-Volatile Data

28 Creating a Model File • Includes a single network variable, named nvoAmpere, which implements the nvoValue networ

Seite 198 - NV_SD_length

FTXL User’s Guide 29 Type translators are also available to convert network variables of one type to another type. Some type translators can

Seite 199 - Memory Usage Examples

30 Creating a Model File The FTXL application in a device does not need to know anything about where input network va

Seite 200

FTXL User’s Guide 31 • Only a network management tool, such as the LonMaker Integration tool, can change the type of a changeable-type networ

Seite 201

32 Creating a Model File Defining a Configuration Property Like network variables, configuration properties have type

Seite 202

FTXL User’s Guide 33 You must implement configuration properties within a configuration file if any of the following apply to your application

Seite 203 - Over the Network

34 Creating a Model File SFPTnodeObject functional profile, simply add this network variable to the model file. You

Seite 204

FTXL User’s Guide 35 When you define a configuration property array, the entire array (but not each element) applies to one or more network va

Seite 205 - Application Download Utility

36 Creating a Model File There is one gain setting per channel, implemented as an array of configuration network vari

Seite 206

FTXL User’s Guide 37 Sharing a Configuration Property The typical instantiation of a configuration property is unique to a single device, func

Seite 207

FTXL User’s Guide v Product Category Documentation Titles Nios II processor Nios II Hardware Development Tutorial Nios II Software Develop

Seite 208 - Example Application Files

38 Creating a Model File Example 2: The following model file defines a three-phase ammeter, implemented with an array

Seite 209

FTXL User’s Guide 39 SCPTdefOutput configuration property as an optional configuration property, and use it to define the default value for th

Seite 210 - Application Task Function

40 Creating a Model File Declaring a Message Tag You can declare a message tag in a model file. A message tag is a c

Seite 211 - Event Handler Function

FTXL User’s Guide 41 the program ID template to the program ID of a device. That is, the range of device types to which a resource file appli

Seite 212 - Model File

42 Creating a Model File devices, and scopes 1 and 2 are reserved for future use. Because scope 0 applies to all dev

Seite 213 - Callback Handler Function

FTXL User’s Guide 43 Writing Acceptable Neuron C Code When processing the model file, the LonTalk Interface Developer utility distinguishes be

Seite 214 - Utility Functions

44 Creating a Model File Legacy Neuron C Constructs You must use the Neuron C Version 2.1 syntax described in this ma

Seite 215

FTXL User’s Guide 45 Alternatively, your application can use a combination of the LonQueryDomainConfig() and LonUpdateDomainConfig() API calls

Seite 216

46 Creating a Model File Device B(reader)1234ACKD Message orRequestChallengeReply to challengeACK or ResponseDevice A

Seite 217 - Event Handler Functions

FTXL User’s Guide 47 http://global.ihs.com/doc_detail.cfm?item_s_key=00391891&item_key_date=971131&rid=CEA. See Appendix E, Determinin

Seite 219

48 Creating a Model File override the automatic calculation of the table size and specify any number of entries, from

Seite 220

FTXL User’s Guide 49 However, it is a common practice to use the “nvi” prefix for input network variables and the "nvo" prefix for o

Seite 221

50 Creating a Model File file. The API uses this table to access the network variables when the application runs. I

Seite 222

FTXL User’s Guide 51 Functional Blocks with Configuration Network Variables The following example takes the above example and adds a few confi

Seite 223

52 Creating a Model File element of the Meter array of functional blocks, again starting with nvoWattage[0]. The use

Seite 224

FTXL User’s Guide 53 network output polled eeprom SNVT_elapsed_tm nvoUsage[3]; fblock UFPTenergyMeter { nvoWattage[0] implements nvoWatta

Seite 226

FTXL User’s Guide 55 4 Using the LonTalk Interface Developer Utility You use the model file, described in Chapter 3, and the LonTalk Interf

Seite 227 - Applications

56 Using the LonTalk Interface Developer Utility Running the LonTalk Interface Developer You use the LonTalk Interfac

Seite 228

FTXL User’s Guide 57 utility’s Model File Selection page, you can specify the name and location of the model file. The location of the LonTalk

Seite 229

FTXL User’s Guide vii Table of Contents Welcome...

Seite 230

58 Using the LonTalk Interface Developer Utility Recommendation: Allow the LonTalk Interface Developer utility to ca

Seite 231

FTXL User’s Guide 59 • The non-volatile data flush guard timeout value • The name for the top-level root segment for the non-volatile data T

Seite 232

60 Using the LonTalk Interface Developer Utility If your company is not a member of the LONMARK International, you ca

Seite 233 - Using a Device

FTXL User’s Guide 61 The LonTalk Interface Developer project directory is automatically included in the compiler search path, and does not nee

Seite 234 - Running the Simple Example

62 Using the LonTalk Interface Developer Utility • project.xif • project.xfb These files form the FTXL application fr

Seite 235

FTXL User’s Guide 63 The LonCpTypes.h file defines configuration property types, and includes standard or user configuration property types (S

Seite 236

64 Using the LonTalk Interface Developer Utility Using Types The LonTalk Interface Developer utility produces type de

Seite 237

FTXL User’s Guide 65 • The nvoSwitch declaration is based on a structure. The LonTalk Interface Developer utility redefines this structure u

Seite 238 - Virtual Functional Block

66 Using the LonTalk Interface Developer Utility LON_SET_ATTRIBUTE(var, LON_ALPHA, alpha_flag); These macros are defi

Seite 239 - The Micrium Software License

FTXL User’s Guide 67 This floating-point format can represent numbers with the following characteristics: • 103810*1± approximate maximum val

Seite 240

viii Specifying the Authentication Key... 44 How Authentication Works...

Seite 241 - Error and Warning Messages

68 Using the LonTalk Interface Developer Utility #define LON_MSMANTISSA_FIELD Flags_2 See the IEEE Standard for Binar

Seite 242 - Error Messages

FTXL User’s Guide 69 The utility generates a configuration file in FtxlDev.c for the cpLocation configuration property: /* * * Writable con

Seite 243

70 Using the LonTalk Interface Developer Utility Similarly, a LonReadOnlyValueFile type is defined and used to declar

Seite 244

FTXL User’s Guide 71 • Defining the LON_READONLY_FILE_IS_WRITEABLE macro to 1 causes the read-only value file to be writeable by the local ap

Seite 245

72 Using the LonTalk Interface Developer Utility The FtxlTypes.h file defines the bitmasks for these attributes. For

Seite 246 - Neuron C Reference Guide

FTXL User’s Guide 73 5 Developing an FTXL Application This chapter describes how to develop an FTXL application. It also describes the vari

Seite 247

74 Developing an FTXL Application Overview of an FTXL Application This chapter describes how to use the FTXL LonTalk

Seite 248 - [LID#50]

FTXL User’s Guide 75 Host ApplicationFTXL LonTalk APIApplication FrameworkOperating System Abstraction LayerHardware Abstraction LayerANSI/CEA

Seite 249 - Warning codes

76 Developing an FTXL Application o Future versions or fixes to the FTXL product might affect these API files Callba

Seite 250

FTXL User’s Guide 77 The FTXL OSAL function prototypes are generic, and do not depend on the operating system’s syntax. For example, to creat

Seite 251 - Hint codes

FTXL User’s Guide ix Initializing the FTXL Device ... 81 Periodically Calling the

Seite 252

78 Developing an FTXL Application current application. The header also includes a checksum to ensure that the data i

Seite 253 - Glossary

FTXL User’s Guide 79 this function returns FALSE, but if the device was reset while a transaction was in progress, this function returns TRUE

Seite 254

80 Developing an FTXL Application 7. Calling the LonNvdExitTransaction() callback handler function to clear the tran

Seite 255

FTXL User’s Guide 81 process FTXL events. This function then calls event handler functions (such as LonNvUpdateOccurred() or LonNvUpdateCompl

Seite 256

82 Developing an FTXL Application main thread, the application should implement an infinite loop that waits on this o

Seite 257

FTXL User’s Guide 83 Example: while (1) { // process application-specific data ... if (OsalWaitForEvent(readyHandle, OSAL_WAIT_FOREVER) =

Seite 258

84 Developing an FTXL Application application-specific processing of update completion. Figure 10 shows the control

Seite 259

FTXL User’s Guide 85 Do not handle an update failure with a repeated propagation; the FTXL LonTalk protocol stack automatically retries a numb

Seite 260

86 Developing an FTXL Application If a network variable update is received while the FTXL device is offline, the valu

Seite 261

FTXL User’s Guide 87 This example extends the previous example and shows how your application can be notified of an update to either network v

Kommentare zu diesen Handbüchern

Keine Kommentare