FB_BAFAnalogSignalGroupStandard
Function-block for controlling a Standard Analog Signal Group directly out of the PLC-program.
VAR_INPUT
uiId : UINT;
bStartExecution : BOOL;
bStopExecution : BOOL;
uiId: Object id of the instance (see object id).
bStartExecution: Starts the instance of the analog signal group.
bStopExecution: Stops the instance of the analog signal group.
VAR_OUTPUT
uiErrorId : UINT;
iErrorParameter : INT;
eExecutionState : E_BAF_ExecutionState;
udiAmountOfSignals : UDINT;
udiAmountOfFaultySignals : UDINT;
iAverageRawValue : INT;
lrAverageValue : LREAL;
bThresholdSwitch1Value : BOOL;
bThresholdSwitch1RisingEdge : BOOL;
bThresholdSwitch1FallingEdge : BOOL;
bThresholdSwitch2Value : BOOL;
bThresholdSwitch2RisingEdge : BOOL;
bThresholdSwitch2FallingEdge : BOOL;
uiErrorId: Contains the error code of the last executed command (see Error codes).
iErrorParameter : Contains the specific parameter of the error code (see Error codes).
eExecutionState : Contains the actual execution state of the instance of the analog signal group.
udiAmountOfSignals : The amount of all analog signals in this group.
udiAmountOfFaultySignals : The amount of all faulty signals in this group (uiErrorId > 0).
iAverageRawValue: The average value of raw values of all analog signals in this group.
lrAverageValue : The average value of all analog signals in this group.
bThresholdSwitch1Value: Threshold-level 1 is reached.
bThresholdSwitch1RisingEdge: Threshold-level 1 is reached - Rising edge.
bThresholdSwitch1FallingEdge: Threshold-level 1 is reached - Falling edge.
bThresholdSwitch2Value: Threshold-level 2 is reached.
bThresholdSwitch2RisingEdge: Threshold-level 2 is reached - Rising edge.
bThresholdSwitch2FallingEdge: Threshold-level 2 is reached - Falling edge.