Setdpproperty(persist), Setdpproperty(pollrate), Setdpproperty(unit) – Echelon i.LON SmartServer 2.0 User Manual
Page 231: Ufpt local variables

i.LON SmartServer 2.0 Programming Tools User’s Guide
217
EXAMPLE
F1.SetDpProperty(FPM::Dp::cfgUCPTdefOutput, 100);
SetDpProperty(persist)
You can use the SetDpProperty(persist) method in the Initialize()routine of an
FPM driver to set whether a data point is persistent (a constant).
SYNTAX
void SetDpProperty(FPM::Dp::cfgUCPTpersist, bool bValue)
The bValue parameter specifies whether the data point is persistent. Specify true to make the
data point a constant. Specify false to enable the value of the data point to be updated.
EXAMPLE
F1.SetDpProperty(FPM::Dp::cfgUCPTdefOutput, true);
SetDpProperty(pollRate)
You can use the SetDpProperty(pollRate)method in the Initialize()routine of an
FPM driver to set how often the data point is polled.
SYNTAX
void SetDpProperty(FPM::Dp::cfgUCPTpersist, int nValue)
The nValue parameter specifies the frequency in which a data point is polled (in milliseconds).
EXAMPLE
Line1.SetDpProperty(FPM::Dp::cfgUCPTpollRate, 900);
SetDpProperty(unit)
You can use the SetDpProperty(unit)method in the Initialize()routine of an FPM
driver to specify the unit string used by the data point.
SYNTAX
void SetDpProperty(FPM::Dp::cfgUCPTunit, const char* const pszValue)
The char parameter specifies the unit string to be used by the data point.
EXAMPLE
F1.SetDpProperty(FPM::Dp::cfgUCPTunit, “state”);
UFPT Local Variables
You can use the DECLARE_FB_INSTANCE_LOCAL() macro to use additional data point variables
that apply to specific functional block instances. For example, you can declare a UFPT local variable
that stores how often the Work() routine has been called by specific functional block instance or you
can declare a UFPT local variable that stores the file name of a functional block instance.
SYNTAX
DECLARE_FB_INSTANCE_LOCAL(dataType,
variableName)
EXAMPLE
// <= section datapoint variable declarations
DECLARE_FB_INSTANCE_LOCAL(int, callCount);