EIB_2OCTET_UNSIGN_SEND_EX

EIB_2OCTET_UNSIGN_SEND_EX 1:

This function block sends a 2-byte Unsign EIB value to the set group address. An IEC61131-3 UINT value is available as input value. The data can be sent in Manual, Polling or OnChange depending on the set mode (iMode).

VAR_INPUT

bStart         : BOOL;
iMode          : INT;
CyclePolling   : TIME := t#500ms;
MinSendTime    : TIME := t#1s;
Group_Address  : EIB_GROUP_ADDR;
uiData         : UINT;
str_Rec        : EIB_REC;
bEnableReadReq : BOOL;

bStart: Activates the function block, so that the function block starts to work depending on the set mode (see iMode).

iMode:
0 - With a positive edge at bStart, an EIB telegram is sent. If the output bBusy is FALSE again, the command is processed.
1 - Polling mode: If bStart is TRUE, EIB telegrams are sent at intervals of CyclePolling.
2 - OnChange mode: If bStart is TRUE, an EIB telegram is automatically sent when the data changes. MinSendTime can be used to parameterize the minimum interval between two EIB messages, in order to avoid excessive EIB network load.
3 - OnChangePolling mode: If bStart is TRUE, EIB telegrams are sent at intervals of CyclePolling or automatically when the data changes. The minimum interval between two EIB messages is set with MinSendTime.

CyclePolling: Polling time for iMode = 1 (Polling mode). The minimum time is 200 ms.

MinSendTime: Minimum interval time, which has to elapse before a telegram is sent in OnChange mode. The minimum time is 200 ms.

Group_Address: Group address to which the data is sent (see EIB_GROUP_ADDR).

uiData: The data value in UINT; it is automatically converted into an EIB 2OCTET UNSIGN value.

str_Rec: The data structure with which the KL6301() function block must be linked (see EIB_REC).

bEnableReadReq: Enables the execution of read commands.

VAR_OUTPUT

bBusy          : BOOL;
bError         : BOOL;
iErrorID       : EIB_ERROR_CODE;

bBusy: The function block is active. Wait for new functions, until bBusy is FALSE again.

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.