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.
Inputs
VAR_INPUT
bStart : BOOL;
iMode : INT;
CyclePolling : TIME := t#100ms;
DATA : ARRAY [1..14] OF BYTE;
EIB_Data_Len : USINT := 1;
PRIORITY : EIB_PRIORITY := EIB_PRIORITY_LOW;
MinSendTime : TIME := t#1s;
Group_Address : EIB_GROUP_ADDR;
str_Rec : EIB_REC;
bReadCommand : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | If the mode is set to 0, an EIB telegram with positive edge is sent to bStart. |
iMode | INT | 0 - Manual (Fig. 1) |
CyclePolling | TIME | If mode 1 is selected, an EIB telegram is sent at the set time, even if the data values have not changed. |
DATA | ARRAY OF BYTE | EIB data values. |
EIB_Data_Len | USINT | Length of EIB data, |
PRIORITY | EIB priority, Low, High, Alarm. | |
MinSendTime | TIME | If mode 2 is selected, data are only transferred in the event of a change. MinSendTime defines the minimum time between two EIB telegrams. |
Group_Address | Group address to which the data are sent. This group address must be entered in the filters! | |
str_Rec | The data structure with which the function block KL6301() must be linked. | |
bReadCommand | BOOL | A response can be sent to an EIB READ COMMAND. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iErrorID : EIB_ERROR_CODE;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | The function block is active. Wait for new functions, until bBusy is FALSE again. |
bError | BOOL | This output goes TRUE as soon as an error occurs. This error is described via the iErrorID variable. |
iErrorID | This output outputs an error code in the event of an error. bError goes TRUE at the same time. |
Transfer mode
Mode 0 manual
Figure 1
Mode 1 Polling
Figure 2
Mode 2 OnChange
Abbildung 3
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_EIB from 3.3.4.0 |