<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/</id><updated>2020-02-27T17:10:37.461000Z</updated><subtitle>Recent posts to Enable more than one COM port in raspberry for more modbus channels with USB</subtitle><entry><title>Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/?limit=25#637c" rel="alternate"/><published>2020-02-27T17:10:37.461000Z</published><updated>2020-02-27T17:10:37.461000Z</updated><author><name>esih</name><uri>https://forge.codesys.com/u/esih/</uri></author><id>https://forge.codesys.com74913f7b540ba219dc76de417b06ac436e7fd17d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nevermind, i found a solution in another topic  l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;start=30" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=6247&amp;amp;start=30&lt;/a&gt; l &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/?limit=25#2367" rel="alternate"/><published>2020-02-27T17:10:36.487000Z</published><updated>2020-02-27T17:10:36.487000Z</updated><author><name>esih</name><uri>https://forge.codesys.com/u/esih/</uri></author><id>https://forge.codesys.com6b7e0d2e04d11b763e54036a164973328c929d71</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Having the same issue as OP ... Any ideas?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/?limit=25#3bda" rel="alternate"/><published>2020-02-27T17:10:33.755000Z</published><updated>2020-02-27T17:10:33.755000Z</updated><author><name>francoinf</name><uri>https://forge.codesys.com/u/francoinf/</uri></author><id>https://forge.codesys.com81108a2df909824fba90adcd352f7152e975d920</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;NOTE: I use CODESYS v3.5 SP15&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/?limit=25#6202" rel="alternate"/><published>2020-02-27T17:10:32.763000Z</published><updated>2020-02-27T17:10:32.763000Z</updated><author><name>francoinf</name><uri>https://forge.codesys.com/u/francoinf/</uri></author><id>https://forge.codesys.com90969fac3ad62e2f9017af0a223596611980753f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;br/&gt;
thanks for the reply. Only the COM1 port works if in the file /etc/CODESYSControl.cfg (and not in the file /etc/CODESYSControl_User.cfg) I write:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile=/dev/ttyUSB&lt;br/&gt;
portnum := COM.SysCom.SYS_COMPORT1;&lt;/p&gt;
&lt;p&gt;What I wrote (which does not work) is, in the file /etc/CODESYSControl_User.cfg the following code:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile.1=/dev/ttyUSB0&lt;br/&gt;
Linux.Devicefile.2=/dev/ttyUSB1&lt;/p&gt;
&lt;p&gt;with the aim of enabling the COM1 port in the USB1 port of the raspberry, and the COM2 port in the USB2 port of the raspberry (I suppose USB0 is the first USB port, USB1 the second, USB2 the third and USB3 the fourth of the raspberry).&lt;br/&gt;
I tried to write the same code as above also in the file /etc/CODESYSControl.cfg and nothing.&lt;br/&gt;
What can be the cause of the malfunction?&lt;br/&gt;
Thanks,&lt;br/&gt;
Francesco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/?limit=25#8df5" rel="alternate"/><published>2020-02-27T17:10:31.773000Z</published><updated>2020-02-27T17:10:31.773000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comba289cfcc00150d6d76d166f495fa8d84487cd49</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
since 3.5SP15 it is possible that way:&lt;/p&gt;
&lt;p&gt;set this in /etc/CODESYSControl_User.cfg&lt;br/&gt;
Example&lt;br/&gt;
&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile.1=/dev/ttyS0&lt;br/&gt;
Linux.Devicefile.4=/dev/ttyUSB0 &lt;/p&gt;
&lt;p&gt;so Com1 is ttyS0 Com4 is ttyUSB0&lt;/p&gt;
&lt;p&gt;in versions &amp;lt;SP15 it was needed to set symlinks / or use UDEV to sort them into the same the device under Linux.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Enable more than one COM port in raspberry for more modbus channels with USB</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/104bfb7392/?limit=25#6eb3" rel="alternate"/><published>2020-02-27T17:10:28.928000Z</published><updated>2020-02-27T17:10:28.928000Z</updated><author><name>francoinf</name><uri>https://forge.codesys.com/u/francoinf/</uri></author><id>https://forge.codesys.comec453c2997658d88f9df45b91bd195d087ab8bcf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
what I want to do in a project is to communicate with modbus devices through more than one channel, to be connected to the raspberry's USB ports. Some devices will connect them to the first channel, others to the second, others to the third, etc.&lt;br/&gt;
I know the procedure to enable only one channel, writing the following code in the file "&lt;strong&gt;/ect/CODESYSControl.cfg&lt;/strong&gt;":&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;/span&gt;Linux.Devicefile = / dev / ttyUSBportnum: = COM.SysCom.SYS_COMPORT1;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;in this way, I enable the COM 1 port, via USB, to communicate with my modbus devices (and everything works correctly).&lt;/p&gt;
&lt;p&gt;If, on the other hand, you want to enable more than one COM port (for example the COM 1 and COM 2 ports simultaneously), what should I write in the &lt;strong&gt;CODESYSControl.cfg&lt;/strong&gt; file?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>