Reconfigure

The method is called in order to reconfigure the function block during the runtime.

Syntax

METHOD Reconfigure : BOOL
VAR_INPUT
    fSetpoint               : LREAL := 230.0;
    fMinThreshold           : LREAL := 0.9;
    fMinThresholdHysteresis : LREAL := 0.01;
    fMaxThreshold           : LREAL := 1.1;
    fMaxThresholdHysteresis : LREAL := 0.01;
END_VAR

Reconfigure 1: Inputs

Name

Type

Description

fSetpoint

LREAL

Setpoint of the input channels to be monitored

fOffsetVoltage

LREAL

Minimum threshold value.
fSetpoint * fMinThreshold

fGainVoltage

LREAL

Hysteresis of the minimum threshold value.
fSetpoint * (fMinThreshold + fMinThresholdHysteresis)

fOffsetCurrent

LREAL

Maximum threshold value.
fSetpoint * fMaxThreshold

fGainCurrent

LREAL

Hysteresis of the maximum threshold value.
fSetpoint * (fMaxThreshold - fMaxThresholdHysteresis)

Reconfigure 2: Return value

Name

Type

Description

Reconfigure

BOOL

Indicates whether the method was executed successfully. Further information is provided in the Event interface of the function block.