FB_Send_RPS_Switch

FB_Send_RPS_Switch 1:

This module sends EnOcean-telegrams in the EnOcean-pushbutton-format. With a rising edge at bStart, the entered value at bData will be sent. After expiration of tSwitchDelay the signal “pushbutton” released will be sent. In order to simulate an activation of a pushbutton, the module has normally to be started twice: once with bData = TRUE and another time with bData = FALSE. For an easier handling it is possible to use the module FB_Send_RPS_SwitchAuto().

VAR_INPUT

bStart      : BOOL;
by_Node     : BYTE;
bData       : BOOL;
nRockerID   : INT;
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).

bData: Value to be transmitted.

nRockerID: Button number, valid values 0 to 3.

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).