FB_Rec_Generic

FB_Rec_Generic 1:

This function block receives all data that were received via EnOcean. This block can be used for all kinds of EnOcean telegrams.

The user must interpret the data himself. The manufacturer’s documentation for the sending EnOcean device is necessary for this.

VAR_INPUT

str_KL6581 : STR_KL6581;
byNode     : BYTE;
dw_ID      : DWORD;

str_KL6581: Is linked with the data structure of block FB_KL6581() (see STR_KL6581).

byNode: 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: EnOcean ID to be received.

VAR_OUTPUT

ar_Value   : ARRAY [0..3] OF BYTE;
by_Node    : BYTE;
by_STATE   : BYTE;
bReceive   : BOOL := TRUE;
EnOceanTyp : E_EnOcean_Org;

ar_Value: 4-byte EnOcean data.

by_Node: Node number of the KL6583 that has received the EnOcean telegram.

by_STATE: EnOcean STATUS field.

bReceive: On receiving an EnOcean telegram this value is set to FALSE for one cycle.

EnOceanTyp: EnOcean ORG field (see E_EnOcean_Org).

Requirements

Development environment

required TC3 PLC library

TwinCAT v3.1.4020.14

Tc2_EnOcean from v3.3.5.0