FB_Send_RPS_SwitchAuto
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. After expiration of tSwitchDelay the signal “pushbutton” released will be sent.
VAR_INPUT
bStart : BOOL;
bData : BOOL;
by_Node : BYTE;
t_SwitchDelay : TIME := t#100ms;
nRockerID : INT;
nEnOceanID : BYTE;
str_KL6581 : STR_KL6581;
bStart: A rising edge sends the data.
bData: Value to be transmitted.
by_Node: Address of the EnOcean transmitter and receiver KL6583-0000 to which the telegram is to be sent (valid values: 1 to 8).
t_SwitchDelay: How long the button has to be pressed.
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).