Echelon NodeBuilder FX Manual do Utilizador Página 198

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 300
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 197
184 Developing Device Applications
Declaration Example
Simple data items
int a, b, c;
Data types
typedef unsigned long ULONG;
Enumerations
enum hue {RED, GREEN, BLUE};
Pointers
char *p;
Functions
int f(int a, int b);
Arrays
int a[4];
Structures and unions
struct s {
int field1;
unsigned field2 : 3;
unsigned field3 : 4;
};
The Neuron C Version 2.2 programming language also supports the following declarations:
Declaration Example
I/O objects
IO_0 output oneshot relay_trigger;
Timers
mtimer led_on_timer;
Network variable
network input SNVT_temp nviTemperature;
Configuration Properties
SCPTdefOutput cp_family cpDefaultOut;
Functional Blocks
fblock SFPTnodeObject { … } myNode;
Introduction to Neuron C Code Editing
The Neuron C source code generated by the NodeBuilder Code Wizard provides the framework for
your device application. It implements the device interface that you have defined, but it only
implements basic device functionality. The functionality supplied by Code Wizard includes the most
common tasks required for interoperable device and functional block management, but it does not
include any code implementing your application’s core algorithms. You can implement your device’s
functionality by editing your device application’s Neuron C source code in the Edit pane of the
NodeBuilder Project Manager to.
In addition to network variable, configuration property, and functional block declarations that comprise
the device interface, the Neuron C code generated with the NodeBuilder Code Wizard also contains the
following features:
• Skeleton when() task for functional blocks or functional block arrays. The when() task
provides notification upon incoming network variable updates for the functional block or
functional block array. If the functional block has no input network variables, no when() task is
generated.
• Default implementation for handling of system events. System events include when reset,
online, offline. These system events also get routed to the different director functions, allowing
each functional block director function to respond to each event in an appropriate way.
• Code handling device and functional block requests on the Node Object. The Code Wizard
generates code for the nviRequest and nvoStatus network variables on the Node Object
functional block. This implementation routes requests to the functional block or blocks concerned
by calling the relevant director functions, and provides a default implementation that allows for
the following requests to be honored: RQ_REPORT_MASK, RQ_UPDATE_STATUS,
RQ_DISABLED, RQ_ENABLE. Handling for other requests is partially implemented but must
Vista de página 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 299 300

Comentários a estes Manuais

Sem comentários

Aries-automotive S226010-2 manuels

Manuels d'utilisation et guides de l'utilisateur pour Pour la voiture Aries-automotive S226010-2.
Nous fournissons des manuels en pdf 1 Aries-automotive S226010-2 à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Pour la voiture Aries-automotive

Modèles Type de document
S222016-2 Manuel de l'utilisateur   Aries Automotive S222016-2 User Manual, 3 pages
S229007-2 Manuel de l'utilisateur   Aries Automotive S229007-2 User Manual, 1 pages
S229008 Manuel de l'utilisateur   Aries Automotive S229008 User Manual, 1 pages
S221007-2 Manuel de l'utilisateur   Aries Automotive S221007-2 User Manual, 4 pages
S222008-2 Manuel de l'utilisateur   Aries Automotive S222008-2 User Manual, 1 pages
S222009-2 Manuel de l'utilisateur   Aries Automotive S222009-2 User Manual, 2 pages
S222012-2 Manuel de l'utilisateur   Aries Automotive S222012-2 User Manual, 2 pages
S222013-2 Manuel de l'utilisateur   Aries Automotive S222013-2 User Manual, 2 pages
S222006-2 Manuel de l'utilisateur   Aries Automotive S222006-2 User Manual, 5 pages
365008-2 Manuel de l'utilisateur   Aries Automotive 365008-2 User Manual, 5 pages
365018-2 Manuel de l'utilisateur   Aries Automotive 365018-2 User Manual, 5 pages
365016-2 Manuel de l'utilisateur   Aries Automotive 365016-2 User Manual, 5 pages
365017-2 Manuel de l'utilisateur   Aries Automotive 365017-2 User Manual, 5 pages
365019-2 Manuel de l'utilisateur   Aries Automotive 365019-2 User Manual, 5 pages
365031-2 Manuel de l'utilisateur   Aries Automotive 365031-2 User Manual, 5 pages
363017-2 Manuel de l'utilisateur   Aries Automotive 363017-2 User Manual, 4 pages
363006-2 Manuel de l'utilisateur   Aries Automotive 363006-2 User Manual, 1 pages
203036 Manuel de l'utilisateur   Aries Automotive 203036 User Manual, 2 pages
P35-4012 Manuel de l'utilisateur   Aries Automotive P35-4012 User Manual, 4 pages
203002 Manuel de l'utilisateur   Aries Automotive 203002 User Manual, 1 pages