KL6301

This function block deals with the KL6301 EIB Bus Terminal communication. It is used for configuring the KL6301 and for starting the data exchange with the EIB network.
![]() | Restrictions
|
Inputs
VAR_INPUT
bActivate : BOOL;
idx : INT := 1;
EIB_PHYS_ADDR : EIB_PHYS_ADDR;
EIB_GROUP_FILTER : ARRAY [1..8] OF EIB_GROUP_FILTER;
iMode : INT;
tTimeout : TIME := T#5s;
END_VAR
Name | Type | Description |
---|---|---|
bActivate | BOOL | Activates the function block that configures the KL6301 and then activates the data exchange. If FALSE, any tasks that are still running will be completed and the data exchange will be terminated. If the outputs bActive and bReady are then FALSE, the function block can be reactivated. |
idx | INT | If more than one bus terminal per PLC program is used, each KL6301 must have a unique idx number. Valid values from 1...64. |
EIB_PHYS_ADDR | Physical EIB address. The default address is 1.2.3. This address must be unique in the EIB network! | |
EIB_GROUP_FILTER | ARRAY OF EIB_GROUP_FILTER | Group address filter. A maximum of 8 filters are possible. |
iMode | INT | 0 - For firmware B0 and higher - 4 filters with 64 entries each |
tTimeout | TIME | Time allowed for a transmit function block to transmit an EIB telegram before a timeout is signaled. |
Inputs/outputs
VAR_IN_OUT
KL6301_IN : ARRAY [1..24] OF BYTE;
KL6301_OUT : ARRAY [1..24] OF BYTE;
END_VAR
Name | Type | Description |
---|---|---|
KL6301_IN |
ARRAY OF BYTE |
Is linked with the KL6301 input addresses. |
KL6301_OUT |
ARRAY OF BYTE |
Is linked with the KL6301 output addresses. |
Outputs
VAR_OUTPUT
bActive : BOOL;
bReady : BOOL;
bError : BOOL;
iErrorId : EIB_Error_Code;
str_Data_Rec : EIB_REC;
END_VAR
Name | Type | Description |
---|---|---|
bActive | BOOL | The function block was activated. |
bReady | BOOL | The function block is ready for sending and receiving data. |
bError | BOOL | This output goes TRUE as soon as an error occurs. This error is described via the iErrorId variable. |
iErrorId | iErrorId: The output issues an error code in the event of an error. bError goes TRUE at the same time. | |
str_Data_Rec | Connected with the send and receive function blocks. |
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_EIB from 3.3.4.0 |