EIB_ALL_DATA_TYPES_SEND
This function block sends a freely selectable EIB value to the set group address. An IEC61131-3 byte ARRAY variable is available as input value. The data are sent depending on the set mode.
VAR_INPUT
bStart : BOOL;
iMode : INT;
Group_Address : EIB_GROUP_ADDR;
DATA : ARRAY [1..14] OF OF BYTE;
EIB_Data_Len : USINT := 1;
PRIORITY : EIB_PRIORITY := EIB_PRIORITY_LOW;
CyclePolling : TIME := t#100ms;
MinSendTime : TIME := t#1s;
str_Rec : EIB_REC;
bReadCommand : BOOL;
bStart: If the mode is set to 0, an EIB telegram with rising edge is sent to bStart .
iMode:
0 - manual (Fig. 1)
1 - polling (Fig. 2)
2 - OnChange (Fig. 3)
Group_Address: Group address to which the data are sent (see EIB_GROUP_ADDR).
DATA: EIB data value.
EIB_Data_Len: Length of EIB data,
EIB values >=) 1 byte: use length +1,
EIB values < 1 byte: use length = 1
PRIORITY: EIB priority, low, high, alarm.
CyclePolling: Polling time for the polling mode. The minimum time is 200ms.
MinSendTime: Interval time that has to be last at minimum until another telegram is changed in OnChange mode. The minimum time is 200ms.
str_Rec: The data structure with which the KL6301() function block must be linked (see EIB_REC).
bReadCommand: An response to a EIB READ COMMAND can be sent.
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iErrorID : EIB_ERROR_CODE;
bBusy: If the bit is set, the block is still active. As long as the bBusy bit is set, no new data can be transferred!
bError: The bError output becomes TRUE as soon as an error occurs. The error is described via the variable iErrorID.
iErrorID: The output issues an error code when an error occurs (see EIB_ERROR_CODE). Simultaneously bError is TRUE.
Transfer mode
Mode 0 manual

Figure 1
Mode 1 Polling

Figure 2
Mode 2 OnChange

Figure 3