str_KL6581
Internal structure.
This structure is used to link the 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
by_Status: Status.
by_Node: Node number of the KL6583 that has received the EnOcean telegram.
by_ORG: EnOcean telegram type.
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.
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT v3.1.4020.14 | Tc2_EnOcean from v3.3.5.0 |