FB_TempCtrlMainBody_TcPfw_TC3()

FB_TempCtrlMainBody_TcPfw_TC3() 1:

This function block must be called cyclically in the application. It organizes internally the complete temperature control.

Syntax

VAR_INPUT
    iParamLoadCheck:I_ParamLoadCheck;
    ConfigEnable           : BOOL;
    tCycle                 : LREAL;
    Looptest_Enable        : BOOL;
    Callback_Enable        : BOOL;
    Simu_Enable            : BOOL:=FALSE;
    Simu_DisCharge         : BOOL:=FALSE;
    Scope_TempCtrlVariables: FB_Scope_TempCtrlVariables;
END_VAR

FB_TempCtrlMainBody_TcPfw_TC3() 2: Inputs

Name

Type

Description

iParamLoadCheck

I_ParamLoadCheck

Optional interface for (external) storage of temperature zones.

ConfigEnable

BOOL

If TRUE, the configuration is valid

tCycle

LREAL

Cycle time

Looptest_Enable

BOOL

A current measurement is performed.

Callback_Enable

BOOL

Checks once (by calling FB_TempCtrlCallback_TcPfw()) the type of the linked terminal and parameterizes it according to the specified sensor type.

Simu_Enable

BOOL

Used for internal simulation purposes.

Simu_DisCharge

BOOL

Used for internal simulation purposes.

Scope_TempCtrlVariables

FB_Scope_TempCtrlVariables

Display of the individual temperature zones and their internal variables.

Behavior of the function block:

With each call the function block checks the global variable bPfw_UseTempControl. If this variable is TRUE and ConfigEnable indicates a valid configuration, the function block becomes active:

FB_TempCtrlMainBody_TcPfw_TC3() 3:

At the end of the cycle aaaTempFault_Reset is automatically deleted.

FB_TempCtrlMainBody_TcPfw_TC3() 4:

If Callback_Enable is not set, no function block of type FB_TempCtrlCallback_TcPfw() is called. In this case, the application must ensure that the I/O electronics match the sensor type.