Getdppropertyaspointstatus(ucptstatus) – Echelon i.LON SmartServer 2.0 User Manual
Page 228

214
Appendix A - Programmer’s Reference
SYNTAX
const timespec GetDpPropertyAsTimeSpec(FPM::Dp::dataUCPTlastupdate)
This method returns the UCPTlastupdate configuration property of the data point in the
following format: YYYY-MM-DDTHH:MM:SSZ. The UCPTlastupdate configuration property
is a timestamp in UTC (Coordinated Universal Time) indicating the last time the data point
configuration was updated.
EXAMPLE
timespec nviSetPoint_lastUpdateTime;
nviSetPoint_lastUpdateTime =
nviSetPoint.GetDpPropertyAsTimeSpec(FPM::Dp::dataUCPTlastUpdate);
printf ("SetPoint last update = %d\n",
nviSetPoint_lastUpdateTime);
Note: Using this data point property method extensively may significantly impact the performance
of the SmartServer; therefore, it is recommended that you use it sparingly.
GetDpPropertyAsPointStatus(UCPTstatus)
You can use the GetDpPropertyAsPointStatus(UCPTstatus) method in the
Work()
and OnTimer()routines of an FPM application to read the current status of a data point.
SYNTAX
FPM::Dp::PointStatus
GetDpPropertyAsPointStatus(FPM::Dp::dataUCPTstatus)
This method returns the UCPTstatus configuration property of the data point. The UCPTstatus
configuration property is an enumeration defined by enum PointStatus in the
FPM_Variable.h file. It indicates the current status of the data point. This property is updated in
real time by the SmartServer’s internal data server. The enumerated values of this property are as
follows:
AL_INVALID
=-1
AL_NO_CONDITION
=
0
AL_ALM_CONDITION
=
1
AL_TOT_SVC_ALM_1
=
2
AL_TOT_SVC_ALM_2
=
3
AL_TOT_SVC_ALM_3
= 4
AL_LOW_LMT_CLR_1 =
5
AL_LOW_LMT_CLR_2 =
6
AL_HIGH_LMT_CLR_ =
7
AL_HIGH_LMT_CLR_2 =
8
AL_LOW_LMT_ALM_1
=
9
AL_LOW_LMT_ALM_2
=10
AL_HIGH_LMT_ALM_1 =11
AL_HIGH_LMT_ALM_2
=12
AL_FIR_ALM
=13
AL_FIR_PRE_ALM
=14
AL_FIR_TRBL
=15
AL_FIR_SUPV
=16
AL_FIR_TEST_ALM
=17
AL_FIR_TEST_PRE_ALM
=18
AL_FIR_ENVCOMP_MAX
=19