FB_Send_4BS

FB_Send_4BS 1:

This function block sends data via EnOcean. The ORG field is set permanently to 7.

VAR_INPUT

bStart       : BOOL;
by_Node      : BYTE;
pt_SendData  : DWORD;
nEnOceanID   : BYTE;
str_KL6581   : STR_KL6581;

bStart: A rising edge sends the data.

by_Node: Address of the EnOcean transmitter and receiver KL6583-0000 to which the telegram is to be sent (valid values: 1 to 8).

pt_SendData: Pointer to the data which are to be sent; the pointer address is determined with ADR. The pointer must point to a 4-byte variable.

nEnOceanID: Virtual EnOcean ID; a value of 0 to 127 is added to the real EnOcean ID (valid values: 0 to 127).

str_KL6581: Data structure that is connected to the FB_KL6581() function block (see STR_KL6581).

VAR_OUTPUT

bBusy        : BOOL;
bError       : BOOL;
iErrorID     : E_KL6581_Err;

bBusy: Block is is busy, no new data can be sent at the moment.

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

iErrorID: Type of error (see E_KL6581_Err).