TectSystem (FB)
FUNCTION_BLOCK TectSystem EXTENDS ABBLCONC3
Function block TectSystem can be used to configure and monitor all groups and zones in the temperature control system. Status of the groups and zones in the system can be monitored. Using the structure TectSystemDataType different operations for all groups/zones can also be configured
- 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
SystemNameSTRING(20)2: Configuration of system name. The name does not exceed 20 characters.
NumberOfZoneWORD1
3: Total number of zones in the system. Default value: 1, Range: > 0.
NumberOfGroupBYTE1
4: Number of groups to be operated in the system. Default value: 1, Range: > 0.
AdrSystemInfoPOINTER TO TectZoneInfoType
- 5: It will point to the structure TectZoneInfoType.
Note
All zones must be declared one after another without break. It is highly recommended to define an array of TectZoneInfoType for one group of the whole system, Maximum size of the array should be total number of zones in the system.
Inout
FirstZoneData- 6: The first Zone Data. Monitoring of the first zone data structure of the zone group, TectTempZoneDataType.
Note
All zones must be declared one after another without break. It is highly recommended to define array of TectTempZoneDataType for the whole system.
FirstGroupData- 7: The first Group Data. FirstGroupData of the system in the declaration.
Note
All groups must be declared one after another without break TectGroupDataType. It is highly recommended to define an array of TectGroupDataType for one system.
SystemData8: The System Data. Declaration of data which is common to the complete system TectGroupDataType.
Output
ErrorID2: Error code in case of error in the function block execution
SystemStatus3: The status of the system including its zones and groups is updated to the enumeration TECT_CONTROL_STATE_MACHINE_ENUM.
Methods:
E_ResetAction
D_AbortAction
C_CleaningAction
B_CyclicAction
A_StartAction
Structure: