FB_Send_Generic

This function block sends data via EnOcean®. The type and the data contents are arbitrary. All types of EnOcean® data telegrams can be sent with this function block.
    
 Inputs
VAR_INPUT
  bStart      : BOOL;
  by_Node     : BYTE;
  by_ORG      : E_EnOcean_Org;
  pt_SendData : DWORD;
  by_STATE    : BYTE;
  nEnOceanID  : BYTE;
  str_KL6581  : STR_KL6581;
END_VARName  | Type  | Description  | 
|---|---|---|
bStart  | BOOL  | Positive edge sends the data.  | 
by_Node  | BYTE  | Address of the KL6583 module to which the telegram is to be sent (valid values: 1...8).  | 
by_ORG  | ORG Field of the EnOcean® telegram  | |
pt_SendData  | DWORD  | Pointer to the data to be sent. ADR is used to determine the pointer address. The pointer must point to 4-byte variable.  | 
by_STATE  | BYTE  | EnOcean®-STATE. Can be changed by the TCM module.  | 
nEnOceanID  | BYTE  | Virtual EnOcean® ID. A value of 0...127 is added to the real EnOcean® ID (valid values: 0...127).  | 
str_KL6581  | Is connected to the data structure of the function block FB_KL6581().  | 
 Outputs
VAR_OUTPUT
  bBusy    : BOOL;
  bError   : BOOL;
  iErrorID : E_KL6581_Err;
END_VARName  | Type  | Description  | 
|---|---|---|
bBusy  | BOOL  | The function block is active. No new data can be sent yet.  | 
bError  | BOOL  | This output goes TRUE as soon as an error occurs. This error is described via the iErrorID variable.  | 
iErrorID  | Describes the type of error.  | 
Prerequisites
Development environment  | PLC library to include  | 
|---|---|
TwinCAT from v3.1.4020.14  | Tc2_EnOcean from v3.3.5.0  |