FB_TempCtrlMainBody_TcPfw()

FB_TempCtrlMainBody_TcPfw() 1:

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

Syntax

VAR_INPUT
ConfigEnable   : BOOL;
tCycle         : LREAL;
Looptest_Enable: BOOL;
Callback_Enable: BOOL;
Simu_Enable    : BOOL:=FALSE;
Simu_DisCharge : BOOL:=FALSE;
END_VAR

FB_TempCtrlMainBody_TcPfw() 2: Inputs

Name

Type

Description

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

LREAL

Used for internal simulation purposes.

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() 3:

At the end of the cycle aaaTempFault_Reset is automatically deleted.

FB_TempCtrlMainBody_TcPfw() 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.