FB_Send_RPS_SwitchAuto
This block sends EnOcean telegrams in the format of a button. The value of bData is sent with a positive edge of bStart. The signal "Release button" is sent once the time t_SwitchDelay has elapsed.
Inputs
VAR_INPUT
bStart : BOOL;
bData : BOOL;
by_Node : BYTE;
t_SwitchDelay : TIME := T#100ms;
nRockerID : INT;
nEnOceanID : BYTE;
str_KL6581 : STR_KL6581;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | Positive edge sends the data. |
bData | BOOL | Value to be transmitted. |
by_Node | BYTE | Address of the KL6583 module to which the telegram is to be sent (valid values: 1...8). |
t_SwitchDelay | TIME | How long the push button has to be pressed. |
nRockerID | INT | Push button number, valid values 0...3. |
nEnOceanID | BYTE | Virtual EnOcean ID. A value of 0...127 is added to the real EnOcean ID (valid values: 0...127). |
str_KL6581 | Is connected to the data structure of the function block FB_KL6581(). |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iErrorID : E_KL6581_Err;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | The function block is active. No new data can be sent yet. |
bError | BOOL | This output goes TRUE as soon as an error occurs. This error is described via the iErrorID variable. |
iErrorID | Describes the type of error. |
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT v3.1.4020.14 | Tc2_EnOcean from v3.3.5.0 |