Network variables, snvts, and unvts – Echelon Neuron C User Manual
Page 20

8
Overview
Declaration
Example
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;
};
In addition, Neuron C Version 2 supports the declarations listed in Table 3.
Table 3. Neuron C Version 2 Declarations
Declaration
Example
I/O Objects
IO_0 output oneshot relay_trigger;
(See Chapter 2)
Timers
mtimer led_on_timer;
(See Chapter 2)
Network Variables
network input SNVT_temp temperature;
(See Chapter 3)
Configuration Properties
cp_family SCPTdefOutput defaultOut;
(See Chapter 4)
Functional Blocks
fblock SFPTnodeObject { … } myNode;
(See Chapter 5)
Message Tags
msg_tag command;
(See Chapter 6)
Network Variables, SNVTs, and UNVTs
A
network variable
is an object on one device that can be
connected
to network
variables on one or more additional devices. A device’s network variables define
its inputs and outputs from a network point of view and allow the sharing of data
in a distributed application. Whenever a program writes into one of its
output
network variables (with the exception of output network variables that are