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
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
DutyCycleINT0
2: PWM duty cycle for a temperature zone. Range: -100 to 100.
MaximumREAL0
3: Maximum temperature allowed for the simulation.
MinimumREAL0
4: Minimum temperature allowed for the simulation
TiCyclesINT2000
5: Internal control parameter for simulation.It has similar value as Tu from structure TectInternalStatusType.
T1CyclesINT20
6: Internal control parameter for simulation.It has similar value as Tg from structure TectInternalStatusType.
PidIntervalTIMETIME#2s0ms
7: Interval of internal simulation control.Do the setting same way as for input PidInterval from the TectTempControl FB.
Output
ErrorID3: Error code in case of error in the function block execution
ActTempREAL0
4: Simulated actual temperature
Methods:
E_ResetAction
D_AbortAction
A_StartAction
C_CleaningAction
B_CyclicAction
Structure: