FB_Rec_RPS_Switch

FB_Rec_RPS_Switch 1:

This function block receives data from a switch that were received via EnOcean. The block outputs the data in a data structure.

ORG Field 5

VAR_INPUT

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

str_KL6581: Data structure that is connected to the FB_KL6581() function block (see STR_KL6581).

byNode: Filter - if the value is zero the EnOcean telegrams from all EnOcean transmitter and receiver KL6583-0000 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

str_EnOceanSwitch  : STR_EnOceanSwitch;
by_Node            : BYTE;
bReceive           : BOOL := TRUE;

str_EnOceanSwitch: Data from the switch (see STR_EnOceanSwitch).

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

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