CommandablePoint (FB)¶
FUNCTION_BLOCK ABSTRACT CommandablePoint EXTENDS PointWithFlags IMPLEMENTS ICommandablePoint
Base object for all DNP3 datapoints which are commandable
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
DescriptionSTRINGDescription of the datapoint - this is a configuration, changes are ignored after Outstation was enabled.
NumberDINT-1
Point number - this is a configuration, changes are ignored after Outstation was enabled.. The point number can be configured if needed to either:
start with Point number > 0
have gaps in Point numbers
If set to -1 (the default) the OutstationDataModel (more precisely the related “Group”) takes care to set the Point number internally:
starting at 0, if first Point number is not set explicitly.
increment by 1
In case you set Point number explicitly please keep it consistent:
Point numbers need to be >= 0
Point numbers need to be ascending
EventClassUSINTConstants.TMWDEFS_CLASS_MASK_ONE
The initial event class - this is a configuration, changes are ignored after Outstation was enabled. Operational event class may be changed by a master.
EventModePointEventMode.EVENT_MODE_SOE
The event mode - this is a configuration, changes are ignored after Outstation was enabled. Only used if the sampling rate is set within the outstation configuration.
tScanPeriodTIMETIME#0ms
Scan period for datapoint. If tScanPeriod is set to T#0MS, the Group related tScanPeriod or the OutstationDataModel.tScanPeriod is used.
udiLogOptionsUDINTOutstationLoggingOptions.None
LoggingOptions can be combined using OR.
Output
xErrorBOOLAn error occured.
eErrorIDThe specific error.
Input
flagsBYTEConstants.DNPDEFS_DBAS_FLAG_ON_LINE
Flags used by the point. Can be changed in case a point goes offline or any other error. If set to 0, the variation without flags will be used by DNP3
EnableCommandBOOLFALSE
Enable / disable commanding (from DNP3 master) - this is a configuration, changes are ignored after Outstation was enabled.
CmdEventClassUSINTConstants.TMWDEFS_CLASS_MASK_ONE
The initial command event class - this is a configuration, changes are ignored after Outstation was enabled. Operational command event class may be changed by a master.
CmdEventModePointEventMode.EVENT_MODE_SOE
The command event mode - this is a configuration, changes are ignored after Outstation was enabled. Only used if the sampling rate is set within the outstation configuration.
rejectCommandBOOLFALSE
Reject master commands, only relevant, if EnableCommand is set to TRUE.
eCommandRejectReasonCommandRejectReason.Local
Let the master know, for which reason a command was rejected (xEnableCommand = FALSE).
resetCommandBOOLFALSE
Reset an active master command and use local command value again at rising edge (FALSE –> TRUE). At / after reset, the local command value is used as a resultingValue until next master command.
Output
commandActiveBOOLA master command was accepted and is active right now. The command value issued with the master command is used as a resultingValue until a command reset happens - see resetCommand.
Properties:
Methods:
GetDescriptionString, inherited from Point
IdentificationToString, inherited from Point
ToString, inherited from PointWithFlags
Structure: