TectHmiMux (FB)
FUNCTION_BLOCK TectHmiMux EXTENDS AbbLConC3
This function block is used to communicate between Hmi and Plc. The function block TectHmiMux helps to reduce the communication effort by reducing the data exchanged between Plc and Hmi. It will also reduce the engineering efforts in configuring the panel projects. This function block can be used to commission CP600 projects or CODESYS visualization tool. When TectHmiMux function block is used in the program, Buffer inout variable must be used for interface between PLC and HMI or visualization.
- 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
GroupIndexBYTE1
2: Index of active Group on HMI, set from HMI. Group Index will be changed while navigating through HMI pages. Default value: 1, Range: > 0.
NumberOfZoneWORD1
3: Number of zones in the system to be operated. Default value: 1, Range: > 0.
MaxGroupSizeBYTE1
4: Size of the largest group in the system. Default value: 1, Range: > 0.
Inout
FirstZoneData5: Monitoring of the first zone data structure of the zone group - TectTempZoneDataType. All zones must be declared one after another without break. It is highly recommended to define an array of TectTempZoneDataType for the whole system.
FirstBuffer6: The first ZoneData of the buffer in the declaration. Buffer exchanges the data between page/screens of HMI with the respective zones.
Output
ErrorID3: Error code in case of error in the function block execution
Methods:
E_ResetAction
Structure: