FB_TempCtrlEnableZone_TcPfw()
One or more function blocks of this type are called from a function block of the application to switch individual zones, zone groups or all zones of the temperature control to the active or passive state.
Syntax
VAR_INPUT
ModuleId: INT:=-1;
ZoneId : INT:=-1;
Enable : BOOL:=TRUE;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
ModuleId | INT | ModuleId of the temperature zones to be controlled. |
ZoneId | INT | ZoneId of the temperature zones to be controlled. |
Enable | BOOL | New state of the temperature zones. |
Behavior of the function block:
- To control a zone in a group, both the ModuleId and the ZoneId must be specified.
- To control all zones in a group, the ModuleId must be specified. The value 0 is used here as ZoneId.
- To control all zones in all groups, use the value 0 for both ModuleId and ZoneId.
In the zone(s) selected in this way, ST_TcPfw_TempCtrl_Itf.Enable is updated with Enable.