EIB_ALL_DATA_TYPES_SEND

EIB_ALL_DATA_TYPES_SEND 1:

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

EIB_ALL_DATA_TYPES_SEND 2:

Figure 1

Mode 1 Polling

EIB_ALL_DATA_TYPES_SEND 3:

Figure 2

Mode 2 OnChange

EIB_ALL_DATA_TYPES_SEND 4:

Figure 3