FB_Rec_Generic

This function block receives all data that were received via EnOcean®. This function block can be used for all types of EnOcean® telegrams.
The user must interpret the data himself. This requires the documentation of the manufacturer of the transmitting EnOcean® device.
Inputs
VAR_INPUT
str_KL6581 : STR_KL6581;
byNode : BYTE;
dw_ID : DWORD;
END_VAR
Name | Type | Description |
---|---|---|
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. |
dw_ID | DWORD | EnOcean® ID to be received. |
Outputs
VAR_OUTPUT
ar_Value : ARRAY [0..3] OF BYTE;
by_Node : BYTE;
by_STATE : BYTE;
bReceive : BOOL := TRUE;
EnOceanTyp : E_EnOcean_Org;
END_VAR
Name | Type | Description |
---|---|---|
ar_Value | ARRAY OF BYTE | EnOcean® data 4 bytes. |
by_Node | BYTE | Node number of the KL6583 that has received the EnOcean® telegram. |
by_STATE | BYTE | EnOcean® STATE Field. |
bReceive | BOOL | On receiving an EnOcean® telegram this value is set to FALSE for one cycle. |
EnOceanTyp | EnOcean® ORG Field. |
Prerequisites
Development environment | PLC library to include |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_EnOcean from v3.3.5.0 |