AnalogInputPointObserver (FB)¶
FUNCTION_BLOCK FINAL AnalogInputPointObserver EXTENDS PointObserver IMPLEMENTS IAnalogInputPointObserver
DNP3 Master datapoint observer for a datapoint of DNP3 object group 30 “analog inputs”.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
itfMasterIMasterConnect to a Master.
xEnableBOOLEnable the PointObserver.
pointNumberUINTDatapoint number.
Output
xErrorBOOLAn error occured.
eErrorIDThe specific error.
modifiedBOOLData received since last call.
sequenceNumberUDINTSequence number of received data.
Input
valueTypeAnyNumberType.TYPE_REAL
The value type must be chosen.
valuePointerPOINTER TO BYTE
0
The POINTER TO value representation of output variable value can be used if needed.
enableClipBOOLFALSE
Allow to clip the received value to numerical range determined by valueType. If set to FALSE, an error is signaled, if value received from Outstation is out of range which can be represented by output variable value.
Output
valueValue received from Outstation. Type must be chosen by setting input valueType. The AnyNumber POINTER TO value representation can be used if needed, to do so configure input valuePointer accordingly.
flagsUSINT- Flags received from Outstation. Flag values are OR’d
- combinations of the following:
- DNPDEFS_DBAS_FLAG_ON_LINE - the point has been read
successfully
- DNPDEFS_DBAS_FLAG_RESTART - the field device that originated the
data object has been restarted. This device may be the deviced reporting this data object.
- DNPDEFS_DBAS_FLAG_COMM_LOST - the device reporting this data object
has lost communication with the originator of the data object
- DNPDEFS_DBAS_FLAG_REMOTE_FORCED - the state of the binary object
has been forced to its current state at the originating device
- DNPDEFS_DBAS_FLAG_LOCAL_FORCED - the state of the binary object
has been forced to its current state at the device reporting this data object
- DNPDEFS_DBAS_FLAG_OVER_RANGE - the digitized signal or calculation
is greater than the type specified in TMWTYPES_ANALOG_VALUE. If the SCL determines that the value returned cannot fit in the type specified by the object variation read it will set this OVER_RANGE bit.
- DNPDEFS_DBAS_FLAG_REFERENCE_CHK - the reference signal used to
digitize the signal is not stable, and the resulting digitized value may not be correct.
hasTimeStampBOOLUpdate received from Outstation has a valid time stamp.
timeStampLDATE_AND_TIMETime stamp reported - valid if hasTimeStamp = TRUE, invalid otherwise.
Properties:
Enabled, inherited from PointObserver
IsModified, inherited from PointObserver
Key, inherited from PointObserver
Typ, inherited from PointObserver
Methods:
ConnectToMaster, inherited from PointObserver
DisconnectFromMaster, inherited from PointObserver
Equals, inherited from PointObserver
GetError, inherited from PointObserver
GetErrorId, inherited from PointObserver
GetSequenceNumber, inherited from PointObserver
IEC_TMWDTIMETimeStampToLogString, inherited from PointObserver
IEC_TMWDTIME_TO_LDT, inherited from PointObserver
LogError, inherited from PointObserver
LogInfo, inherited from PointObserver
LogPointObserver, inherited from PointObserver
PointerToTimeStampToString, inherited from PointObserver
SetError, inherited from PointObserver
TimeStampToLogString, inherited from PointObserver
ToString, inherited from PointObserver