Responding to configuration property value changes, Defining a configuration property array – Echelon FTXL User Manual

Page 46

Advertising
background image

34

Creating a Model File

SFPTnodeObject functional profile, simply add this network variable to

the model file. You do not need to initialize this network variable (any
initial value is ignored – the LonTalk Interface Developer utility

calculates the correct value).

• For FTP, declare at least two mandatory network variables, an input

network variable of type SNVT_file_req, and an output network variable

of type SNVT_file_status. You also need to define a message tag for the
transfer of the data. In addition, you need an input network variable of

type SNVT_file_pos to support random access to the various files. You

must also implement the L

ON

W

ORKS

file transfer protocol within your

application program.

The L

ON

W

ORKS

file transfer protocol and the direct memory files feature are

mutually exclusive; your device cannot implement both.

Responding to Configuration Property
Value Changes

Events are not automatically generated when a configuration property

implemented in a configuration file is updated, but you can declare your

configuration property so that a modification to its value causes the related
functional block to be disabled and re-enabled, or causes the device to be taken

offline and brought back online after the modification, or causes the entire device
to reset. These state changes help to synchronize your application with new

configuration property values.
Your application could monitor changes to the configuration file, and thus detect
changes to a particular configuration property. Such monitoring would be

implemented in the FTP server or direct memory files driver.
However, many applications do not need to know that a configuration property
value has changed. For example, an application that uses a configuration

property to parameterize an algorithm that uses some event as a trigger (such as

a network variable update or a change to an input signal) would not typically
need to know of the change to the configuration property value, but simply

consider the most recent value.

Defining a Configuration Property Array

You can define a configuration property as:

• A single configuration property
• An array of configuration properties
• A configuration property array

A single configuration property either applies to one or more network variables or
functional blocks within the model file for the device, or the configuration

property applies to the entire device.
When you define an array of configuration properties, each element of the array
can apply to one or more network variables or functional blocks within the model

file.

Advertising