str_KL6581

Internal structure.

This structure is used to link the function block FB_KL6581() with the send/receive blocks.

TYPE STR_KL6581 :
STRUCT
  by_Status : BYTE;
  by_Node   : BYTE;
  by_ORG    : BYTE;
  ar_DB     : ARRAY[0..3] OF BYTE;
  _Dummy    : BYTE;
  dw_ID     : DWORD;
  ptData    : PVOID;
  iErrorId  : E_KL6581_Err;
  by_STATE  : BYTE;
  bError    : BOOL;
  idx       : USINT;
END_STRUCT
END_TYPE

Name

Description

by_Status

State

by_Node

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

by_ORG

Type of EnOcean® telegram

ar_DB

Data bytes

_Dummy

Placeholder, no other purpose.

dw_ID

Transmitter ID

ptData

Pointer

iErrorId

Describes the error type (see E_KL6581_Err).

by_STATE

State

bError

This output goes TRUE as soon as an error occurs. This error is described via the iErrorId variable.

idx

Index

Prerequisites

Development environment

PLC library to include

TwinCAT from v3.1.4020.14

Tc2_EnOcean from v3.3.5.0