<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/</id><updated>2023-02-28T19:07:01.953000Z</updated><subtitle>Recent posts to Problem with MODBUS RTU Serial Port</subtitle><entry><title>Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/?limit=25#a290" rel="alternate"/><published>2023-02-28T19:07:01.953000Z</published><updated>2023-02-28T19:07:01.953000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7305b3597e1ae7740329a567be6c52d507eb48a9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Example for doing this ( I assume you have connected a USB serial device for this example)&lt;/p&gt;
&lt;p&gt;etc/CODESYSControl_Users.cfg&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;SysCom&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;
&lt;span class="n"&gt;Linux&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Devicefile&lt;/span&gt;&lt;span class="mf"&gt;.1&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ttyUSB0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;
&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/?limit=25#0c61/34a5/24e0/fb4f" rel="alternate"/><published>2023-02-27T12:32:49.564000Z</published><updated>2023-02-27T12:32:49.564000Z</updated><author><name>bossjosh21</name><uri>https://forge.codesys.com/u/bossjosh21/</uri></author><id>https://forge.codesys.comc3861ea3f88fc4bf00c1c18f0a5cbe5f7057dab7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello sir I have the same problem with codesys how do you manage to troubleshoot the problem. And what is that Syscom configuration are you saying. Hopefully you see my message. Im using Revolution Pi RevPi Connects.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/?limit=25#0c61/34a5/24e0" rel="alternate"/><published>2022-04-07T15:38:30.803000Z</published><updated>2022-04-07T15:38:30.803000Z</updated><author><name>ltrinta</name><uri>https://forge.codesys.com/u/ltrinta/</uri></author><id>https://forge.codesys.com7ece3c50cdab4adf46003ed03fba3235d4311a77</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello there.&lt;/p&gt;
&lt;p&gt;I fixed the problem removing all SysCom configuration at /etc/CODESYSControl.cfg and removing the "portnum := COM.SysCom.SYS_COMPORT1;" at /etc/CODESYSControl_User.cfg remaining just "&lt;span&gt;[SysCom]&lt;/span&gt;Linux.Devicefile=/dev/ttyS" at /etc/CODESYSControl_User.cfg&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Leonardo&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/?limit=25#0c61/34a5" rel="alternate"/><published>2022-04-07T11:20:30.948000Z</published><updated>2022-04-07T11:20:30.948000Z</updated><author><name>ltrinta</name><uri>https://forge.codesys.com/u/ltrinta/</uri></author><id>https://forge.codesys.com2a6ad7ed9734ca4f7ff7a1eacb6898bba796fdd1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello there&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;I checked it. With simple python code I can communicate normally. But with Codesys no. I found it strange because despite green circle the SerialPort Status are "not running" like not was open. So I think it might be related with some configuration of serial on Codesys files but I make all of I found to make and not works. &lt;/p&gt;
&lt;p&gt;do you have any more ideas?&lt;/p&gt;
&lt;p&gt;regards,&lt;br/&gt;
Leonardo&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/?limit=25#0c61" rel="alternate"/><published>2022-04-07T07:18:46.086000Z</published><updated>2022-04-07T07:18:46.086000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.combdab465cafd208d7e6679970882493ec121b9c07</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;green curcle at comport indicates that comopen works - so check wiring/baudrate to the slave&lt;br/&gt;
you could even add  'Modbus_Master_com_Port'to the watchlist ( the name of the instance in the device tree) to get more diagnostic info&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with MODBUS RTU Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1274a8b44a/?limit=25#e506" rel="alternate"/><published>2022-04-06T20:50:50.489000Z</published><updated>2022-04-06T20:50:50.489000Z</updated><author><name>ltrinta</name><uri>https://forge.codesys.com/u/ltrinta/</uri></author><id>https://forge.codesys.com1bf1ad7d35dff38c18c95a42ae6ead5e6fc97cea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello there&lt;/p&gt;
&lt;p&gt;I have a problem with Modbus RTU usage. My hardware is a custom board raspberry pi cm4 based and serial works with generic python code but with codesys the SerialPort at Modbus_COM stays "Not running". &lt;/p&gt;
&lt;p&gt;I configured /etc/CODESYSControl.cfg and /etc/CODESYSControl_User.cfg with:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;Linux.Devicefile=/dev/ttyS or &lt;span&gt;[SysCom]&lt;/span&gt;Linux.Devicefile=/dev/ttyAMA&lt;br/&gt;
I added the portnum := COM.SysCom.SYS_COMPORT1; line too. &lt;/p&gt;
&lt;p&gt;but neither of them works.&lt;/p&gt;
&lt;p&gt;The config of Modbus_COM is: &lt;/p&gt;
&lt;p&gt;[-img src=Modbus Config.PNG width=50%: missing =-]&lt;/p&gt;
&lt;p&gt;At tree:&lt;/p&gt;
&lt;p&gt;[-img src=Modbus Tree.PNG width=50%: missing =-]&lt;/p&gt;
&lt;p&gt;The status:&lt;/p&gt;
&lt;p&gt;[-img src=Modbus Status.PNG width=50%: missing =-]&lt;/p&gt;
&lt;p&gt;Can anyone help me? Is urgent.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Leonardo&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>