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

Enable

BOOL

FALSE

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

Busy

BOOL

FALSE

Operation is running (while output Error is FALSE)

AbbLConC3

Error

BOOL

FALSE

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

PidInterval

TIME

TIME#2s0ms

2: Interval time for PID and auto tune processing. It needs to be greater than 0s.

PwmPeriod

TIME

TIME#2s0ms

3: Pulse width modulation output period. It should not be greater than PidInterval.

Fahrenheit

BOOL

FALSE

4: A True at the input Fahrenheit of the Function Block displays the temperature in Fahrenheit, a FALSE displays the temperature in Celsius.

ActTempRaw

INT

1

5: Actual raw temperature value from analogous input sensor.

RawFactor

INT

10

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

AdrZoneData

POINTER 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

ErrorID

ERROR_ID

3: Error code in case of error in the function block execution

Warning

BOOL

4: Active warning. Operation is running with warning . This output is TRUE for at least one cycle or until Enable is set to FALSE.

WarningID

WARNING_ID

5: Warning code of active warning

DutyCycle

INT

0

6: PWM output DutyCycle is displayed in percentage. Positive value indicates heating, negative value indicates cooling.

DoHeat

BOOL

FALSE

7: Pulse for heating. This variable can be connected to digital output signal.

DoCool

BOOL

FALSE

8: Pulse for cooling. This variable can be connected to digital output signal.

HighHigh

BOOL

FALSE

9: HighHigh alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.

High

BOOL

FALSE

10: High alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.

Low

BOOL

FALSE

11: Low alarm active. The limit value is declared in the data type tsMachineSet of TectTempZoneDataType.

LowLow

BOOL

FALSE

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: