FB_Send_RPS_Switch
This block sends EnOcean telegrams in the format of a button. The value of bData is sent with a positive edge of bStart. In order to simulate a keystroke, the block usually has to be started twice, once with bData = TRUE, once with bData = FALSE. For simpler handling the block FB_Send_RPS_SwitchAuto() can be used.
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 KL6583 module to which the telegram is to be sent (valid values: 1...8).
bData: Value to be transferred.
nRockerID: Button number, valid values 0 to 3.
nEnOceanID: Virtual EnOcean ID. A value of 0…127 is added to the real EnOcean ID (valid values: 0...127).
str_KL6581: Is linked with the data structure of block FB_KL6581() (see STR_KL6581).
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iErrorID : E_KL6581_Err;
bBusy: The block is active. No new data can be sent at this stage.
bError: this output goes TRUE as soon as an error occurs. This error is described via the iErrorId variable.
iErrorID: Describes the error type (see E_KL6581_Err).
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT v3.1.4020.14 | Tc2_EnOcean from v3.3.5.0 |