FB_TempCtrlState_TcPfw()
This function block determines a set of state information of a zone.
Syntax
VAR_INPUT
ModuleId:INT:=-1;
ZoneId:INT:=-1;
END_VAR
VAR_OUTPUT
Disabled : BOOL;
Enabled : BOOL;
OnStandBy : BOOL;
Error : BOOL;
Tuning : BOOL;
Alarm_LL : BOOL;
Alarm_L : BOOL;
Alarm_H : BOOL;
Alarm_HH : BOOL;
Alarm_AL : BOOL;
Alarm_AH : BOOL;
ExtruderBlock : BOOL;
Alarm_NoResponse : BOOL;
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. |
Outputs
Name | Type | Description |
---|---|---|
Disabled | BOOL | TRUE if the zone is not enabled. |
Enabled | BOOL | TRUE if the zone is enabled. |
OnStandBy | BOOL | TRUE if the zone is enabled and switched to lowering. |
Error | BOOL | TRUE if the zone is in an error state. |
Tuning | BOOL | TRUE if the automatic tuning function of the zone is active. |
Alarm_LL | BOOL | TRUE if the actual temperature of the zone falls below the outer negative tolerance threshold. |
Alarm_L | BOOL | TRUE if the actual temperature of the zone falls below the inner negative tolerance threshold. |
Alarm_H | BOOL | TRUE if the actual temperature of the zone falls below the inner positive tolerance threshold. |
Alarm_HH | BOOL | TRUE if the actual temperature of the zone exceeds the outer positive tolerance threshold. |
Alarm_AL | BOOL | TRUE if the actual temperature of the zone falls below the negative absolute alarm threshold. |
Alarm_AH | BOOL | TRUE if the actual temperature of the zone exceeds the positive absolute alarm threshold. |
ExtruderBlock | BOOL | TRUE if the actual temperature of the zone falls below the negative absolute alarm threshold and this causes the extruder to shut down. |
Alarm_NoResponse | BOOL | TRUE if the actual temperature of the zone does not show an appropriate response to the heating power. Possible cause is, for example, an incorrectly mounted sensor or a defect in the heater that cannot be detected by other means. |
Behavior of the function block:
In each cycle, the function block updates the state of one or more zones. Here, the behavior is determined in detail by the call:
- If the function block is called with unknown ModuleId>0 and/or an unknown ZoneId>0 or if aaaPfwTempToHmi[..].InUse=FALSE all outputs are FALSE.
- If ModuleId<>0 and ZoneId=0, the states of all zones of the module are ORed.
- If ModuleId<>0 and ZoneId<>0, the state of the selected zone is reported.