EIB_DATE_SEND_EX

This function block sends a 3-byte EIB value to the set group address. Three IEC61131-3 word variables are available as input values. The data can be sent in Manual, Polling or OnChange depending on the set mode (iMode).
Inputs
VAR_INPUT
bStart : BOOL;
iMode : INT;
CyclePolling : TIME := t#500ms;
MinSendTime : TIME := t#1s;
Group_Address : EIB_GROUP_ADDR;
wDay : WORD;
wMonth : WORD;
wYear : WORD;
str_Rec : EIB_REC;
bEnableReadReq : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | The function block is activated by a positive edge at this input. |
iMode | INT | 0 - With a positive edge at bStart, an EIB telegram is sent. If the output bBusy is FALSE again, the command is processed. |
CyclePolling | TIME | Polling time for iMode = 1 (polling mode). The minimum time is 200 ms. |
MinSendTime | TIME | 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 are sent. This group address must be entered in the filters! | |
wDay | WORD | Value range 1...31. |
wMonth | WORD | Value range 1...12. |
wYear | WORD | Value range 0...99. If a value greater 2000 entered, 2000 is automatically subtracted. For the year 2005, for example, only the 5 is transferred to the EIB node. |
str_Rec | The data structure with which the function block KL6301() must be linked. | |
bEnableReadReq | BOOL | Enables the execution of read commands. |
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. |
Requirements
Development environment | PLC library to include |
---|---|
TwinCAT from v3.1.4024.57 | Tc2_EIB from v3.4.3.0 |