ST_TcPfw_SupplyParam
This structure describes the parameters and runtime data of a supply unit.
Syntax
TYPE ST_TcPfw_SupplyParam :
(* last modification: 28.05.2008 *)
STRUCT
(*
see cnv_SupplyParam_TcPfw for format definition
*)
(*
temperature controller pwm setup
*)
fPwmCycleTime : LREAL; (* will be updated to all temperature zones in supply group *)
fPwmMinOnTime : LREAL; (* will be updated to all temperature zones in supply group *)
fPwmMaxOnTime : LREAL; (* will be updated to all temperature zones in supply group *)
fPwmMaxOnC : LREAL;
fPwmMaxRampLoad : LREAL; (* in kW, will be updated to all temperature zones in supply group *)
fActSupplyLoad : LREAL;
fActSupplyCurrent: LREAL;
fSupplyLoad : LREAL;
fSupplyMatch : LREAL;
nPwmFactorC : INT:=1; (* will be updated to all temperature zones in supply group *)
(*
internal
*)
fUsedLoad : LREAL;
fUsedLoad_H : LREAL;
fUsedLoad_C : LREAL;
tpwmtimer : LREAL:=0.0;
SaveDelay : DINT:=-1;
FileErrId : DINT;
refresh_H : BOOL;
Unsaved : BOOL;
bSavingParams : BOOL:=FALSE; (* *)
bLoadParams : BOOL:=FALSE; (* *)
FileErr : BOOL:=FALSE; (* *)
END_STRUCT
END_TYPE
Parameter
Name | Type | Description |
---|---|---|
fPwmCycleTime | LREAL | The cycle time (in seconds) of the PWM signal generator. |
fPwmMinOnTime | LREAL | The minimum switch-on component of the PWM signal. Range 0.1 to 1.0 |
fPwmMaxOnTime | LREAL | The maximum switch-on time from the PWM signal. Range 0.1 to 1.0 |
fPwmMaxOnC | LREAL | The maximum switch-on time of the cooling output from the PWM signal. If zero, the fPwmMaxOnTime is used. Range 0.1 to 1.0 |
fPwmMaxRampLoad | LREAL | reserved |
fActSupplyLoad | LREAL | If a power measurement is performed, the current power can be read here. |
fActSupplyCurrent | LREAL | If a power measurement is performed, the current currently measured can be read here. |
fSupplyLoad | LREAL | The predicted total power of the supply line. |
fSupplyMatch | LREAL | The ratio of fActSupplyLoad to fSupplyLoad. |
nPwmFactorC | INT | The multiplier for the cooling PWM cycle time. Tpwm_cool := Tpwm_heat * nPwmFactorC. |
fUsedLoad | LREAL | reserved |
fUsedLoad_H | LREAL | reserved |
fUsedLoad_C | LREAL | reserved |
tpwmtimer | LREAL | Counter for the PWM cycles of the heating control. |
SaveDelay | DINT | Memory delay in µs. After a time written to this variable by the application, the saving is triggered. (If the value is zero, the system is saved; if it is -1, the system is at rest; if the value is greater than zero, the system is saved after the time has elapsed) |
FileErrId | DINT | In case of storage/loading of the zone, a coded information is provided here. However, only if saving and loading are performed via the machine and product parameters. |
refresh_H | BOOL | Trigger signals for heating and cooling PWM cycles. |
Unsaved | BOOL | Signals the application that parameters have changed from the library. |
bSavingParams | BOOL | Signals to the application that data are being saved. |
bLoadParams | BOOL | This flag triggers the saving of the parameters. |
FileErr | BOOL | In case of storage/charging of the zone, it is displayed here if the storage or charging process has failed. |
The controller output is usually provided to the heating tape as a PWM signal. It is possible to provide a separate PWM configuration for each phase of a supply line.