TectTempControl (FB)
FUNCTION_BLOCK TectTempControl EXTENDS ABBLConC3
Function Block TectTempControl is the main control block of temperature control process. An InOut variable TectTempZoneData saves all relevant parameters, settings and values for one temperature zone
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
EnableBOOLFALSE
A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. Execution will continue forever until a falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
AbbLConC3
Output
BusyBOOLFALSE
Operation is running (while output Error is FALSE)
AbbLConC3
ErrorBOOLFALSE
Operation is stopped with error (while output Busy is FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.
AbbLConC3
Input
PidIntervalTIMETIME#2s0ms
2: Interval time for PID and auto tune processing. It needs to be greater than 0s.
PwmPeriodTIMETIME#2s0ms
3: Pulse width modulation output period. It should not be greater than PidInterval.
FahrenheitBOOLFALSE
4: A True at the input Fahrenheit of the Function Block displays the temperature in Fahrenheit, a FALSE displays the temperature in Celsius.
ActTempRawINT1
5: Actual raw temperature value from analogous input sensor.
RawFactorINT10
- 6: Sensor provides the ActTempRaw, this value doesn’t match to the temperature in Celsius.Hence RawFactor is necessary to scale the temperature to Celsius scale. For example: if the ActTempRaw is 200 which indicates 20 degree, then the RawFactor will be 200 / 20 = 10. Range: > 0.
Note
It should not be 0
AdrZoneDataPOINTER TO TectTempZoneDataType
- 7: Input as Pointer to TectTempZoneDataType. This variable can be connected to the output of ADR Block. An input variable TectTempZoneDataType saves all relevant parameters, settings and values for one temperature zone. All function blocks for the zone interact with each other through ZoneData variable.
Note
It should not be 0.
Output
ErrorID3: Error code in case of error in the function block execution
WarningBOOL4: Active warning. Operation is running with warning . This output is TRUE for at least one cycle or until Enable is set to FALSE.
WarningID5: Warning code of active warning
DutyCycleINT0
6: PWM output DutyCycle is displayed in percentage. Positive value indicates heating, negative value indicates cooling.
DoHeatBOOLFALSE
7: Pulse for heating. This variable can be connected to digital output signal.
DoCoolBOOLFALSE
8: Pulse for cooling. This variable can be connected to digital output signal.
HighHighBOOLFALSE
9: HighHigh alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.
HighBOOLFALSE
10: High alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.
LowBOOLFALSE
11: Low alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.
LowLowBOOLFALSE
12: LowLow alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.
Methods:
E_ResetAction
D_AbortAction
C_CleaningAction
B_CyclicAction
A_StartAction
Structure:
TectTempControl.A_StartAction(METH)TectTempControl.B_CyclicAction(METH)TectTempControl.C_CleaningAction(METH)TectTempControl.D_AbortAction(METH)TectTempControl.E_ResetAction(METH)TectTempControl.zActionAlarmHandling(ACT)TectTempControl.zActionOutput(ACT)TectTempControl.zActionSpecialErrors(ACT)TectTempControl.zActionStatemachine(ACT)TectTempControl.zActionTempValues(ACT)