FB_EnOceanReceive

FB_EnOceanReceive 1:

The function-block FB_EnOceanReceive() is a receiving-unit, which collects the sent data of EnOcean-transmitters and then puts the gathered information into a structure called stEnOceanReceivedData. The structure is then analysed with the function-blocks FB_EnOceanPTM100() and FB_EnOceanSTM100(). Programming-examples are given in the documentation of these two units.

VAR_INPUT

bEnable            : BOOL := FALSE;

bEnable: A positive signal at this input sets the function-block to the active-state. With a negative signal at the bEnable input the unit is without function and all outputs will be set to 0 or FALSE.

VAR_OUTPUT

bError                 : BOOL := FALSE;
nErrorId               : UDINT := 0;
stEnOceanReceivedData  : ST_EnOceanReceivedData;

bError: If the function-block is in an error-state, this output will be set to TRUE. This error is described by the variable nErrorId.

nErrorId: Type of error (see Errorcodes).

stEnOceanReceivedData: Into this structure the received data is written (see ST_EnOceanReceivedData).

VAR_IN_OUT

stEnOceanInData        : ST_EnOceanInData;
stEnOceanOutData       : ST_EnOceanOutData;

stEnOceanInData: Is linked in System Manager to the input addresses of the EnOcean bus terminal KL6021-0023 (see ST_EnOceanInData).

stEnOceanOutData: Is linked in System Manager to the output addresses of the EnOcean bus terminal KL6021-0023 (see ST_EnOceanOutData).