ApplyCalibration
The method can be used at runtime to complete or cancel the triggered calibration process ( CalibrateRefHigh()/CalibrateRefLow()).
Syntax
METHOD ApplyCalibration : BOOL
VAR_INPUT
bAccept : BOOL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bAccept | BOOL | If TRUE, the CalibrateRefHigh()/CalibrateRefLow() results are accepted. Otherwise discarded. |
Sample
(*Declaration without configuration*)
fbScaling : FB_WG_Scaling();
(* accept calibration *)
IF bAcceptCalibration THEN
fbScaling.ApplyCalibration(bAccept := TRUE);
bAcceptCalibration := FALSE;
END_IF
(* discard calibration *)
IF bDiscardCalibration THEN
fbScaling.ApplyCalibration(bAccept := FALSE);
bDiscardCalibration:= FALSE;
END_IF
Return value
Name | Type | Description |
---|---|---|
ApplyCalibration | BOOL | TRUE if the method was executed successfully. |