Echelon FTXL User Manual

Page 64

Advertising
background image

52

Creating a Model File

element of the

Meter

array of functional blocks, again starting with

nvoWattage[0]

.

The user-defined

UCPTcoupling

configuration property

nciCoupling

is shared

among all three meters, configuring the meters as three single-phase meters or

as one three-phase meter in this example. There is only a single

nciCoupling

configuration property, and it applies to every element of the array of three

UFPTenergyMeter

functional blocks.

The LonTalk Interface Developer utility creates a network variable table for the

configuration network variables and the persistent

nvoUsage

network variable.

Functional Blocks with Configuration Properties
Implemented in a Configuration File

This example implements a device similar to the one in the previous example,
with these differences:

1. All configuration properties are implemented within a configuration file

instead of as a configuration network variable

2. A

SNVT_address

type network variable is declared to enable access to

these files through the direct memory files feature

3. An

SFPTnodeObject

node object has been added to support the SNVT

address network variable

// config properties for the node object:

SCPTlocation cp_family cpLocation;

// network variables for the node object

network input

SNVT_obj_request nviNodeRequest;

network output polled SNVT_obj_status nvoNodeStatus;

const network output polled SNVT_address nvoFileDirectory;

// node object

fblock SFPTnodeObject {

nviNodeRequest

implements nviRequest;

nvoNodeStatus

implements

nvoStatus;

nvoFileDirectory

implements

nvoFileDirectory;

} NodeObject external_name("NodeObject") fb_properties {

cpLocation

};

// config properties for the Meter

SCPTminSendTime cp_family cpMinSendTime;

SCPTmaxSendTime cp_family cpMaxSendTime;
UCPTcoupling cp_family cpCoupling;

// 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 {

cpMinSendTime,

cpMaxSendTime

};

Advertising