<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/</id><updated>2022-03-28T19:33:56.089000Z</updated><subtitle>Recent posts to More COM port in Linux Codesys</subtitle><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#06a7" rel="alternate"/><published>2022-03-28T19:33:56.089000Z</published><updated>2022-03-28T19:33:56.089000Z</updated><author><name>damian177</name><uri>https://forge.codesys.com/u/damian177/</uri></author><id>https://forge.codesys.com2b72c7690f6adde45b7601d2976b0900a0e89cf1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The above solution works great. I test it now&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#0666" rel="alternate"/><published>2022-03-28T19:09:53.329000Z</published><updated>2022-03-28T19:09:53.329000Z</updated><author><name>somlioy</name><uri>https://forge.codesys.com/u/somlioy/</uri></author><id>https://forge.codesys.comd0454ea20868a0cedeac39175aefd4e0ecbf7f2a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes  udev is the way to go. wether config rule works you must test on the device. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#b5a9" rel="alternate"/><published>2022-03-28T19:02:49.123000Z</published><updated>2022-03-28T19:02:49.123000Z</updated><author><name>damian177</name><uri>https://forge.codesys.com/u/damian177/</uri></author><id>https://forge.codesys.com26b0061025e75df3cbc223843890b84a8f9a12f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What do we think about this solution.&lt;/p&gt;
&lt;p&gt;I should create file :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;/etc/udev/rules.d/70-persistent-serial.rules &lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and put in it:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"add|change"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"tty"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;KERNEL&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"ttyUSB0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;\&lt;/span&gt;
  &lt;span class="n"&gt;ATTRS&lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="n"&gt;manufacturer&lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"FTDI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ATTRS&lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="nb"&gt;serial&lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"AK08GAMY"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;\&lt;/span&gt;
  &lt;span class="n"&gt;SYMLINK&lt;/span&gt;&lt;span class="o"&gt;+=&lt;/span&gt;&lt;span class="ss"&gt;"serial2"&lt;/span&gt;



&lt;span class="n"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"add|change"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"tty"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;KERNEL&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"ttyUSB1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;\&lt;/span&gt;
  &lt;span class="n"&gt;ATTRS&lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="n"&gt;manufacturer&lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"FTDI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ATTRS&lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="nb"&gt;serial&lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="ss"&gt;"AK08G985"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;\&lt;/span&gt;
  &lt;span class="n"&gt;SYMLINK&lt;/span&gt;&lt;span class="o"&gt;+=&lt;/span&gt;&lt;span class="ss"&gt;"serial3"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#c756/1bff" rel="alternate"/><published>2022-03-28T18:11:45.493000Z</published><updated>2022-03-28T18:11:45.493000Z</updated><author><name>damian177</name><uri>https://forge.codesys.com/u/damian177/</uri></author><id>https://forge.codesys.com5331e55da731824c17bf7093be583ccf201c243d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/somlioy/"&gt;@somlioy&lt;/a&gt; do you have any solution to symbolic link after reboot system ?&lt;br/&gt;
I have finished my application with dev/ttyUSB0 i dev/ttyUSB1, but I still creating symbolic link - manually after reboot system. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#d388" rel="alternate"/><published>2022-03-19T18:39:08.015000Z</published><updated>2022-03-19T18:39:08.015000Z</updated><author><name>damian177</name><uri>https://forge.codesys.com/u/damian177/</uri></author><id>https://forge.codesys.com6f3e43bf7c73c0df9bf6e73b89fe7dc1ad046b95</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Solution with  symbolic link works,until I restart my system.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#c756" rel="alternate"/><published>2022-03-19T14:59:53.828000Z</published><updated>2022-03-19T14:59:53.828000Z</updated><author><name>damian177</name><uri>https://forge.codesys.com/u/damian177/</uri></author><id>https://forge.codesys.com99d181164d897bc6aba65217777aae08e095325d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt; I should remove this lines :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysCom]&lt;/span&gt;
&lt;span class="na"&gt;Linux.Devicefile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/dev/serial&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;from  /etc/CODESYSControl.cfg  file ?&lt;/p&gt;
&lt;p&gt;I do this and add &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysCom]&lt;/span&gt;
&lt;span class="na"&gt;Linux.Devicefile.1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/dev/serial0&lt;/span&gt;
&lt;span class="na"&gt;Linux.Devicefile.2&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/dev/serial1&lt;/span&gt;
&lt;span class="na"&gt;Linux.Devicefile.3&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/dev/ttyUSB0&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;in empty /etc/CODESYSControl_Users.cfg file , but it doesn't work.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#4810" rel="alternate"/><published>2022-03-16T09:38:02.138000Z</published><updated>2022-03-16T09:38:02.138000Z</updated><author><name>somlioy</name><uri>https://forge.codesys.com/u/somlioy/</uri></author><id>https://forge.codesys.comd14b1fc28d1502d5ed39bebf879813e051e665fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could also do symbolic link from /dev/ttyUSB0/1 to /dev/serial&lt;/p&gt;
&lt;p&gt;sudo ln -s /dev/ttyUSB0 /dev/serial2&lt;br/&gt;
sudo ln -s /dev/ttyUSB1 /dev/serial3&lt;/p&gt;
&lt;p&gt;Presuming you keep original .cfg file with Linux.Devicefile=/dev/serial, ttyUSB0/1 will then be available as COM3 and COM4.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#7494" rel="alternate"/><published>2022-03-15T09:36:40.860000Z</published><updated>2022-03-15T09:36:40.860000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com242bed3c419a32f850c98b7a60e7930ad9d1b8e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;/etc/CODESYSControl_Users.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt; &lt;br/&gt;
Linux.Devicefile.1=/dev/serial1 &lt;br/&gt;
Linux.Devicefile.2=/dev/serial2&lt;br/&gt;
Linux.Devicefile.3=/dev/ttyUSB0&lt;br/&gt;
Linux.Devicefile.4=/dev/ttyUSB1&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>More COM port in Linux Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fca29b5dbd/?limit=25#cd09" rel="alternate"/><published>2022-03-15T08:47:12.474000Z</published><updated>2022-03-15T08:47:12.474000Z</updated><author><name>damian177</name><uri>https://forge.codesys.com/u/damian177/</uri></author><id>https://forge.codesys.comf465fcea4a01c1b1ee6902501f1ea879e0a4b4d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using linux panel PC CPi-A102WR with Codesys. I using two embeded serial ports by  Edit the CODESYS configuration file&lt;/p&gt;
&lt;p&gt;sudo nano /etc/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile=/dev/serial&lt;/p&gt;
&lt;p&gt;And I have&lt;br/&gt;
COM1 -  COM0(physical)&lt;br/&gt;
COM2 -  COM1(physical)&lt;/p&gt;
&lt;p&gt;Now I need more COM port, so I use USB to RS232 nad in the linux I have device : dev/ttyUSB0.&lt;/p&gt;
&lt;p&gt;What I should modify in /etc/CODESYSControl.cfg file to using my device ttyUSBO like  COM3 in codesys ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>