Sending and Receiving
Sending data
Data is sent from the standard task. The example program included sends data by way of the serial PC interface to a printer.
![Sending and Receiving 1:](Images/gif/11388511499__Web.gif)
Possible errors
More than one character may be transmitted during one PLC cycle, provided they can be accepted by the send buffer. If the send buffer overflows, the busy output of the send block will remain TRUE after it has been called. In that case the last character is not sent, and the block must be called again with the same input data in the next PLC cycle. How full a buffer is can be determined at any time (e.g., TxBuffer.Count or TxBuffer.FreeByte).
Data reception
The example program receives a bar code from a scanner that is connected to a serial bus terminal.
![Sending and Receiving 2:](Images/gif/11388513163__Web.gif)