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
|
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;
bActivate: Activates the block that configures the KL6301 and then activates the data exchange.
idx: If more than one Bus Terminal per PLC program is used, each KL6301 must have a unique idx number. Valid values 1...64.
EIB_PHYS_ADDR: Physical EIB address (see EIB_PHYS_ADDR). The default address is 1.2.3. This address must be unique in the EIB network!
EIB_GROUP_FILTER: Group address filter (see EIB_GROUP_FILTER). A maximum of 8 filters are possible.
iMode:
0 - for firmware B0 and higher - 4 Filter, each with 64 entries
1 - for firmware B1 and higher - 8 Filter, each with 32 entries
2 - for firmware B3 and higher - 8 Filter, each with 32 entries inverted
100 - for firmware B1 and higher - monitor function, all group address telegrams can be received. The telegrams are not acknowledged (no ACK is being sent). At monitor operation transmission is not possible.
tTimeout: Time that a send function block has to transmit an EIB telegram until a timeout is signaled.
VAR_OUTPUT
bActive : BOOL;
bReady : BOOL;
bError : BOOL;
iErrorId : EIB_Error_Code;
str_Data_Rec : EIB_REC;
bActive: The function block has been activated.
bReady: The function block is ready for sending and receiving data.
bError: The output becomes TRUE as soon as an error occurs. This error is described via the iErrorId variable.
iErrorId: An error code is available at this output in the event of an error (see EIB_ERROR_CODE). bError goes TRUE at the same time.
str_Data_Rec: Data structure that is connected to the send and receive blocks (see EIB_REC).
VAR_IN_OUT
KL6301_IN : ARRAY [1..24] OF BYTE;
KL6301_OUT : ARRAY [1..24] OF BYTE;
KL6301_IN: Linked with the KL6301 input addresses.
KL6301_OUT: Linked with the KL6301 output addresses.