TectTempSimu (FB)

FUNCTION_BLOCK TectTempSimu EXTENDS AbbLConC3

Function block TectTempSimu simulates a temperature zone e.g. for simulation of the behavior during commissioning. It needs DutyCycle output from TectTempControl function block and gives ActTemp output as simulated zone temperature

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

DutyCycle

INT

0

2: PWM duty cycle for a temperature zone. Range: -100 to 100.

Maximum

REAL

0

3: Maximum temperature allowed for the simulation.

Minimum

REAL

0

4: Minimum temperature allowed for the simulation

TiCycles

INT

2000

5: Internal control parameter for simulation.It has similar value as Tu from structure TectInternalStatusType.

T1Cycles

INT

20

6: Internal control parameter for simulation.It has similar value as Tg from structure TectInternalStatusType.

PidInterval

TIME

TIME#2s0ms

7: Interval of internal simulation control.Do the setting same way as for input PidInterval from the TectTempControl FB.

Output

ErrorID

ERROR_ID

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

ActTemp

REAL

0

4: Simulated actual temperature

Methods:

E_ResetAction

D_AbortAction

A_StartAction

C_CleaningAction

B_CyclicAction

Structure: