<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Serial communication flow control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dda81d4e40/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dda81d4e40/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/dda81d4e40/</id><updated>2020-02-27T13:47:40.842000Z</updated><subtitle>Recent posts to Serial communication flow control</subtitle><entry><title>Serial communication flow control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dda81d4e40/?limit=25#cda2" rel="alternate"/><published>2020-02-27T13:47:40.842000Z</published><updated>2020-02-27T13:47:40.842000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com2a842d86f608a3d0883fabf5b968b10d3c428fdd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What I would like to be able to do is just like with Beckhoff's COMlibV2 where I can monitor the count in the ComBuffer. "TxComBuffer.Count" holds the number of bytes left to send out. So I can wait untill this is 0 and then send more bytes.&lt;/p&gt;
&lt;p&gt;Is there a way to do something like this in Codesys?&lt;br/&gt;
I would love to do my project in Codesys but if I cannot find a way to do this, I will probably have to do it in Beckhoff's TwinCAT PLC.&lt;/p&gt;
&lt;p&gt;Please tell me there is a way to do it in Codesys.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication flow control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dda81d4e40/?limit=25#0468" rel="alternate"/><published>2020-02-27T13:47:40.807000Z</published><updated>2020-02-27T13:47:40.807000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com3b70bca5e4944c970679245fab56006c81f73ba1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here's a little more information.&lt;/p&gt;
&lt;p&gt;What I am trying to do is to stop sending bytes before getting the WRITE_INCOMPLETE error.&lt;br/&gt;
Is there a way to know how full is the serial port buffer so I could stop sending bytes before getting the error?&lt;br/&gt;
I am not talking about the device I am communicating with, I am talking about the serial port I am using to send bytes.&lt;/p&gt;
&lt;p&gt;Another problem I have is that when I get the WRITE_INCOMPLETE error, I can't use the serial port anymore.&lt;br/&gt;
Even if I close the port and open it again, the port seems to be frozen. The only way I can use it again is by downloading the program.&lt;br/&gt;
Is there a way to reset the port? What should I do in order to start communication again?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication flow control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dda81d4e40/?limit=25#24a1" rel="alternate"/><published>2020-02-27T13:47:40.772000Z</published><updated>2020-02-27T13:47:40.772000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com91b54929c2923600574a03d8d54d9afc004b1203</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I would need more information on how to use the flow control features of the serial port communication.&lt;/p&gt;
&lt;p&gt;I have an application where I need to send a lot of stuff on a serial port as fast as possible. So I need to have a way to know that the serial port buffer is almost full and stop sending bytes and then resume sending bytes when the buffer is almost empty.&lt;/p&gt;
&lt;p&gt;I guess I need to use CTS handshaking or something like that. Can somebody help me on that.&lt;/p&gt;
&lt;p&gt;I am using a B&amp;amp;B Electronics USB to Serial converter to do this.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>