SendString

SendString sends a character string to the interface that corresponds to the input variable TxBuffer (of type ComBuffer).
![]() | Alternative SendString has a standard length of 80 characters. For some applications a longer string is desirable. In this case the function block SendString255 can be used. The only difference is a string length of 255 characters compared to SendString. |
Inputs
VAR_INPUT
SendString : STRING;
END_VARName | Type | Description |
|---|---|---|
SendString | STRING | The character string to be sent. |
Inputs/outputs
VAR_IN_OUT
TxBuffer : ComBuffer;
END_VARName | Type | Description |
|---|---|---|
TxBuffer | Send data buffer that corresponds to the interface used. |
Outputs
VAR_OUTPUT
Busy : BOOL;
Error : ComError_t;
END_VARName | Type | Description |
|---|---|---|
Busy | BOOL | For as long as the output The output Busy does not become TRUE, if the data could already be sent with the first call.
|
Error | If a fault occurs, |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4012 | PC or CX (x86, x64, Arm®) | Tc2_SerialCom |
