FB_Rec_RPS_Window_Handle

FB_Rec_RPS_Window_Handle 1:

This function block receives data from a window handle that were received via EnOcean®. The function block outputs the data in a data structure (ORG Field 5).

FB_Rec_RPS_Window_Handle 2: Inputs

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

Name

Type

Description

str_KL6581

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.

FB_Rec_RPS_Window_Handle 3: Outputs

VAR_OUTPUT
  ar_Data  : AR_EnOceanWindow;
  by_Node  : BYTE;
  bReceive : BOOL := TRUE;
END_VAR

Name

Type

Description

ar_Data

AR_EnOceanWindow

Window handle data

by_Node

BYTE

Node number of the KL6583 that has received the EnOcean® telegram.

bReceive

BOOL

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

Prerequisites

Development environment

PLC library to include

TwinCAT from v3.1.4020.14

Tc2_EnOcean from v3.3.5.0