<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Assinging ttyUSB5 to COM port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/bcedd14f1a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/bcedd14f1a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/bcedd14f1a/</id><updated>2020-02-27T16:09:45.632000Z</updated><subtitle>Recent posts to Assinging ttyUSB5 to COM port</subtitle><entry><title>Assinging ttyUSB5 to COM port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/bcedd14f1a/?limit=25#150c" rel="alternate"/><published>2020-02-27T16:09:45.632000Z</published><updated>2020-02-27T16:09:45.632000Z</updated><author><name>dvdende</name><uri>https://forge.codesys.com/u/dvdende/</uri></author><id>https://forge.codesys.come3f15cc1e7b18ab35ce462f4ce649249ae2d1232</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My Raspberry Pi has several USB modules (modem and FTDI for NMEA sensor). Next to this I like to use an additional FTDI RS-485 converter for the USB port. With this converter I like to have ModBus RTU communication. The converter is recognized and working. I tried in Codesys to setup the communication but I always get a RESPONSE_TIMEOUT at byModBusError in Codesys. I think the wrong ttyUSB port is assigned to the COM1 port.&lt;/p&gt;
&lt;p&gt;Is there a way to assign ttyUSB5 to COM1 port?&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Found the solution by myself. Place extra lines in the CodesysControl.cfg with the COM ports&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;br/&gt;
portnum := COM.SysCom.SYS_COMPORT2;&lt;/p&gt;
&lt;p&gt;In Codesys you can use the assigned port.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>