FB_FcMainBody_TcPfw()

FB_FcMainBody_TcPfw() 1:

This function block must be called by the application after the TempCtrl_FB_TempCtrlMainBody_TcPfw. The function block organizes the intermittent switching on of the cooling independently of the controller output.

Syntax

VAR_INPUT
    Activate:     BOOL;
END_VAR
VAR_IN_OUT
    TempToHmi : ST_TcPfw_TempToHmi_Itf;
    TempCtrl  : ST_TcPfw_TempCtrl_Itf;
    TempOut   : ST_TcPfw_TempCtrlOutput;
    Mparam    : ST_TcPfw_TempMparamFromHmi_Itf;
END_VAR
VAR_OUTPUT
    Error   : BOOL;
    ErrorID : BOOL; (* not used yet *)
END_VAR

FB_FcMainBody_TcPfw() 2: Inputs

Name

Type

Description

Activate

BOOL

Only with a TRUE the forced cooling is really output.

FB_FcMainBody_TcPfw() 3: Inputs/outputs

Name

Type

Description

TempToHmi

ST_TcPfw_TempToHmi_Itf

A reference to the data on the HMI of the zone must be provided here.

TempCtrl

ST_TcPfw_TempCtrl_Itf

A reference to the runtime data of the zone must be provided here.

TempOut

ST_TcPfw_TempCtrlOutput

A reference to the output interface of the zone must be provided here.

Mparam

ST_TcPfw_TempMparamFromHmi_Itf

A reference to the machine parameters of the zone must be provided here.

FB_FcMainBody_TcPfw() 4: Outputs

Name

Type

Description

Error

BOOL

Indicates when something is misconfigured.

ErrorID

BOOL

Not used.

Behavior of the function block:

A prerequisite for proper functioning is that the zone is "InUse" and has cooling. Furthermore, fc_Enable must be enabled in the machine parameters of this zone and realistic times must have been set for the cooling time fc_OnTime and the pause time fpwmOffTime.

If the fpwmOffTime has expired, cooling becomes active for the time fc_OnTime minus the cooling power already output.