FB_EnOceanReceive
![FB_EnOceanReceive 1:](Images/gif/173335179__en-US__Web.gif)
The function block FB_EnOceanReceive() is a receive block, which makes the telegrams sent by the EnOcean modules available in the structure stEnOceanReceivedData. This structure can then be analyzed with further blocks. The documentation for this blocks also includes sample programs, which illustrate the operating principle.
Inputs
VAR_INPUT
bEnable : BOOL := FALSE;
END_VAR
Name | Type | Description |
---|---|---|
bEnable | BOOL | A positive signal at this input activates the function block. A negative signal at the input disables the function block functionality. |
Inputs/outputs
VAR_IN_OUT
stEnOceanInData : ST_EnOceanInData;
stEnOceanOutData : ST_EnOceanOutData;
END_VAR
Name | Type | Description |
---|---|---|
stEnOceanInData | Is linked to the input addresses of the KL6021-0023 in the System Manager. | |
stEnOceanOutData | Is linked to the output addresses of the KL6021-0023 in the System Manager. |
Outputs
VAR_OUTPUT
bError : BOOL := FALSE;
nErrorId : UDINT := 0;
stEnOceanReceivedData : ST_EnOceanReceivedData;
END_VAR
Name | Type | Description |
---|---|---|
bError | BOOL | This output goes TRUE as soon as an error occurs. This error is described via the variable nErrorID. |
nErrorId | UDINT | Describes the type of error. |
stEnOceanReceivedData | The received data is stored in this structure. |
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT v3.1.4020.14 | Tc2_EnOcean from v3.3.5.0 |