FB_EnOcean_Search

This function block displays all EnOcean® IDs that it has received and enters them in a receive array (ar_ID). Up to 256 EnOcean® devices can be recognized. Alternatively the function block can also be created separately for each KL6583. This can be used to recognize whether an EnOcean® device is being received by several KL6583s.
Inputs
VAR_INPUT
bStart : BOOL;
str_KL6581 : STR_KL6581;
byNode : BYTE;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | If TRUE the function block is enabled, if FALSE it is disabled. |
str_KL6581 | Is connected to the data structure of the function block FB_KL6581(). | |
byNode | BYTE | Filter - if the value is zero, the EnOcean® telegrams from all KL6583s are received. If a value of 1 to 8 is entered, only the data from the corresponding KL6583 are received. |
Outputs
VAR_OUTPUT
bReceive : BOOL := TRUE;
iDevices : INT;
ar_ID : ARRAY [0..255] OF DWORD;
END_VAR
Name | Type | Description |
---|---|---|
bReceive | BOOL | On receiving an EnOcean® telegram this value is set to FALSE for one cycle. |
iDevices | INT | Number of EnOcean® devices found. |
ar_ID | ARRAY OF DWORD | EnOcean® IDs that were found. |
Prerequisites
Development environment | PLC library to include |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_EnOcean from v3.3.5.0 |