RaiseCommandEvent (FB)¶
FUNCTION_BLOCK FINAL RaiseCommandEvent
Raise an event related to a command of the given datapoint.
An instance of RaiseEvent allows to represent an instance of a datapoint of DNP3 object of groups
13 “binary output command event”
42 “analog output command event”
The DNP3 object group of the event to raise results from the DNP3 object group of the given point. For example: an instance of BinaryOutput does relate to DNP3 object group 10 “binary outputs”, and so using RaiseCommandEvent for such an instance of BinaryInput does raise an DNP3 object group 13 “binary output command event”.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecuteBOOLRaise event at rising edge (xExecute FALSE –> TRUE).
pointICommandablePointThe commandable point for which to raise the command event.
statUSINT0
The status from processing the command. For an instance of BinaryOutput use DNPDEFS_CROB_ST_*. For an instance of AnalogOutput use DNPDEFS_CTLSTAT_*. Default is 0 which means either DNPDEFS_CROB_ST_SUCCESS or DNPDEFS_CTLSTAT_SUCCESS.
Output
xDoneBOOLEvent raised successfully.
xErrorBOOLError during raise event.
eErrorSpecific error during raise event.