Echelon FTXL User Manual
Page 63
![background image](/manuals/735717/63/background.png)
FTXL User’s Guide
51
Functional Blocks with Configuration Network
Variables
The following example takes the above example and adds a few configuration
properties implemented as configuration network variables. A cp modifier in the
network variable declaration makes the network variable a configuration
network variable (CPNV). The nv_properties and fb_properties modifiers apply
the configuration properties to specific network variables or the functional block.
// Configuration properties for the node object
network input cp SCPTlocation nciLocation;
// network variables for the node object
network input
SNVT_obj_request nviNodeRequest;
network output polled SNVT_obj_status nvoNodeStatus;
fblock SFPTnodeObject {
nviNodeRequest implements nviRequest;
nvoNodeStatus
implements
nvoStatus;
} NodeObject external_name("NodeObject")
fb_properties {
nciLocation
};
// config properties for the Meter
network input cp SCPTminSendTime nciMinSendTime[3];
network input cp SCPTmaxSendTime nciMaxSendTime[3];
network input cp UCPTcoupling nciCoupling;
// network variables for the meter
network input SNVT_amp
nviAmpere[3];
network input SNVT_volt
nviVoltage[3];
network input SNVT_angle
nviCosPhi[3];
network output SNVT_power
nvoWattage[3] nv_properties {
nciMinSendTime[0],
nciMaxSendTime[0]
};
network output polled eeprom SNVT_elapsed_tm nvoUsage;
fblock UFPTenergyMeter {
nvoWattage[0] implements nvoWattage;
nviAmpere[0] implements nviAmpere;
nviVoltage[0] implements nviVoltage;
nviCosPhi[0] implements nviCosPhi;
nvoUsage[0]
implements
nvoUsage;
} Meter external_name("Meter") fb_properties {
static nciCoupling
};
This example implements two arrays of configuration network variables,
nciMinSendTime
and
nciMaxSendTime
. Each element of these two arrays
applies to one element of the
nvoWattage
array, starting with
nciMinSendTime[0]
and
nciMaxSentTime[0]
. Each element of the
nvoWattage
array of network variables in turn implements the
nvoWattage
member of one