0 7 8 - 0 4 0 3 - 0 1 A®NodeBuilder®FX/PL Examples Guide
2 Using the NodeBuilder FX/PL Example Introduction to the NodeBuilder FX/PL Example The NodeBuilder FX/PL Development Tool includes a Neuron C examp
NodeBuilder FX/PL Examples Guide 3 Released Binaries The NcExample device application includes a pre-built binary application image file (.apb exten
4 Using the NodeBuilder FX/PL Example Using the Pre-Built Example Device Application You can use the LonMaker tool to download the NcExample device
NodeBuilder FX/PL Examples Guide 5 6. Click OK. 7. By default, the LonMaker tool will prompt you to select whether to install any new files in the
6 Using the NodeBuilder FX/PL Example 10. Select the Network Attached check box. In the Network Interface Name property select the network interfa
NodeBuilder FX/PL Examples Guide 7 12. Select OnNet to immediately propagate changes you make to the example device in the LonMaker drawing to the
8 Using the NodeBuilder FX/PL Example Downloading the Example Application To download the example application to the LTM-10A Platform, follow these
NodeBuilder FX/PL Examples Guide 9 2. The Commission Device Wizard opens with the Application Image window displayed. Select the Load Application
10 Using the NodeBuilder FX/PL Example Testing the I/O Devices on the Gizmo 4 I/O Board You can use the I/O devices on the Gizmo 4 I/O Board to ob
NodeBuilder FX/PL Examples Guide 11 2. Press and hold the SW2 button at the bottom left side of the Gizmo 4 I/O Board (Button 2). Observe that LE
ii Echelon, LON, LonWorks, Neuron, 3120, 3150, Digital Home, i.LON, LNS, LonMaker, LonMark, LonPoint, LonTalk, NodeBuilder, and the Echelon logo are
12 Using the NodeBuilder FX/PL Example so that they are all selected, right-click one of the selected functional block shapes, and click Browse on t
NodeBuilder FX/PL Examples Guide 13 5. Click anywhere in the nviAlarmTime row and enter a time in the Value box at the top of the Browser that is
14 Using the NodeBuilder FX/PL Example Creating the Example Device Application This section details how to create the NcExample device application f
NodeBuilder FX/PL Examples Guide 15 warning that you have a mismatch between the Program ID and the transceiver type. For purposes of the example,
16 Using the NodeBuilder FX/PL Example Now that you have added the device to the LonMaker drawing and loaded the device with its application, the No
NodeBuilder FX/PL Examples Guide 17 same as the type of the primary input network variable of the functional block (nviDigitalOutput). 11. Click Gen
18 Using the NodeBuilder FX/PL Example // initialize output lines: GizmoSetLed(0, DigitalOutput[0]::cpDigitalDefault.state); GizmoSetLed(1,
NodeBuilder FX/PL Examples Guide 19 8. Repeat steps 3 and 4, but rename the nviAnalog network variable to nviAnalogOutput. 9. Right-click the Ana
20 Using the NodeBuilder FX/PL Example #define AI_FILTERSIZE 4 #define AI_CHANNELS AnalogInput_FBLOCK_COUNT mtimer ai_timer; // the buffer for the
NodeBuilder FX/PL Examples Guide 21 ai_rawdata[iChannel][iIndex] = ai_rawdata[iChannel][iIndex + 1]; } // fetch current value
NodeBuilder FX/PL Examples Guide iii Table of Contents Preface ...
22 Using the NodeBuilder FX/PL Example 24. Browse the Analog Output 1 and Analog Input 2 functional blocks using the LonMaker Browser. Verify that
NodeBuilder FX/PL Examples Guide 23 13. Use the LonMaker Browser to browse the translator. Enable monitoring for nvoPercentage, and force nviTempP
24 Using the NodeBuilder FX/PL Example 13. Repeat steps 11 and 12, but set CP Name to UCPTmaxTemp. 14. Right-click the UFPTtranslator functional pr
NodeBuilder FX/PL Examples Guide 25 The (tempP * 2) term transforms an unscaled SNVT_temp_p value into an equivalent unscaled SNVT_lev_percent value
26 Using the NodeBuilder FX/PL Example else if ((TFblock_command)iCommand == FBC_WHEN_RESET) HVACTempOld = 0; UpdateTemperature(); // get go
NodeBuilder FX/PL Examples Guide 27 when (timer_expires(hvac_coretick)) { // advance the timers: HvacMinSendTimer += HVAC_CORETICK; HvacMaxSen
28 Using the NodeBuilder FX/PL Example 7. Right-click the RealTimeKeeper functional block’s Optional CPs folder and select Implement Optional CP fro
NodeBuilder FX/PL Examples Guide 29 && (current.hour == RealTimeKeeper::nviAlarmTime.hour) ) { // raise alarm rtc_alar
30 Using the NodeBuilder FX/PL Example //<Input NV Define> #ifdef _HAS_INP_NV_6 // //<Fblock NV When> when(nv_update_occurs(nviTimeSet)
NodeBuilder FX/PL Examples Guide 31 5. Open the Wheel functional block’s Mandatory NVs folder. Right-click the nvoValue network variable and select
iv Preface Preface The NodeBuilder® FX/PL Development Tool includes a Neuron C example application that you can load into your LTM-10A Platform. Yo
32 Using the NodeBuilder FX/PL Example } priority when (io_changes(ioWheel)) { if (fblockNormalNotLockedOut( Wheel::global_index)) { if (Wheel:
NodeBuilder FX/PL Examples Guide 33 // Manage the throttle preferences. Note the throttle tick // counter is maintained by the WheelTimer rou
34 Using the NodeBuilder FX/PL Example This code updates the output network variable with recent physical data to wipe out the override value. This
www.echelon.com
NodeBuilder FX/PL Examples Guide v Purpose This document describes how to load and use the Neuron C example application included with the NodeBuilde
vi Preface an IP-852 router, your computer must have an IP network interface such as an Ethernet card or modem with PPP software. In addition, the
NodeBuilder FX/PL Examples Guide vii LTM-10A User's Guide Describes how to use the LTM-10A Platform for testing your applications and I/O hard
viii Preface Region Languages Supported Contact Information Europe English German French Italian Echelon Europe Ltd. Suite 12 Building 6 Croxle
NodeBuilder FX/PL Examples Guide 1 1 Using the NodeBuilder FX/PL Example This chapter introduces the Neuron C example application that you can run
Comentarios a estos manuales