<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/</id><updated>2020-02-27T16:59:22.286000Z</updated><subtitle>Recent posts to RPI4 with CH341</subtitle><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#2f28" rel="alternate"/><published>2020-02-27T16:59:22.286000Z</published><updated>2020-02-27T16:59:22.286000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.com8e62f42d9a42a6f8507d97908cb504c500ee3bc1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I've changed the simulator and this works&lt;br/&gt;
Thanks for the answers.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#38b6" rel="alternate"/><published>2020-02-27T16:59:21.342000Z</published><updated>2020-02-27T16:59:21.342000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.com0651077c6e46cf8f96f7660cb8b00398f7407acb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi and thanks Edwin for the kindness in answering me,&lt;br/&gt;
now without the symbol; I managed to do what you see in the attached image, but values that are indecipherable appear, if I change a value, something happens in the registers but the indecipherable values change.&lt;br/&gt;
Thank you for your kindness&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Immagine2.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4919"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#44df" rel="alternate"/><published>2020-02-27T16:59:18.536000Z</published><updated>2020-02-27T16:59:18.536000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.comb63314ad16cb8dc85b9d79a3e30aa858e8083728</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
Without ; as you see in the attachment, it remains with the red triangle, it connects only if I put it and it becomes a green triangle&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: SenzaPuntoEVirgola.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4918"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#204c" rel="alternate"/><published>2020-02-27T16:59:17.588000Z</published><updated>2020-02-27T16:59:17.588000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comd39c7d1f8a378731f9e0280453bf2cfc3d35d5f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
you need to change the baudrate here:&lt;/p&gt;
&lt;p&gt;remove the ';'  infront of: Linux.Devicefile=/dev/ttyUSB&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Baudrate.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4917"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#2254" rel="alternate"/><published>2020-02-27T16:59:16.660000Z</published><updated>2020-02-27T16:59:16.660000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.com5f182e0470b011cc954fe82e9fbf5ce6defb5fae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin and thanks for the help,&lt;br/&gt;
in the attached file I see that the baudrate is set to 115200, on all the examples the tests are with 9600, do I have to change the speed on the file?&lt;br/&gt;
Do you think the screen I have attached to you is correct and do I have to set the slaves to 115200?&lt;br/&gt;
I ask because I made a thousand changes on the slave and also on the software to try communication from the PC but does not want to leave and honestly I do not know what else to try.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: sudo nano etcCODESYSControl_User_cfg .jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4916"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#1fc4" rel="alternate"/><published>2020-02-27T16:59:14.049000Z</published><updated>2020-02-27T16:59:14.049000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7696c1baed2c52343853d634ea45113839370201</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
you just need:&lt;br/&gt;
in &lt;strong&gt;/etc/CODESYSControl_User.cfg&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile=/dev/ttyUSB&lt;/p&gt;
&lt;p&gt;nothing else...   if this section is in /etc/CODESYSControl.cfg this will be lost on every runtime update... so the correct place to have is /etc/CODESYSControl_User.cfg.&lt;/p&gt;
&lt;p&gt;According the watch window.&lt;br/&gt;
"Undefined" means there is no real or proper response from the slave..!&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#cc68" rel="alternate"/><published>2020-02-27T16:59:13.120000Z</published><updated>2020-02-27T16:59:13.120000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.com5c399a0b55ac587654238060f525a807ad34a30b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin, I thank you for your kindness in answering me,&lt;br/&gt;
I have attached to you what happens in the WATCH table, but I ask you, these lines:&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;I have to add them up&lt;br/&gt;
sudo nano /etc/CODESYSControl.cfg&lt;br/&gt;
or&lt;br/&gt;
sudo nano /etc/CODESYSControl_User.cfg&lt;br/&gt;
I have to put it&lt;br/&gt;
portnum: = COM.SysCom.SYS_COMPORT1;&lt;br/&gt;
on CODESYSControl_User.cfg and not on CODESYSControl.cfg&lt;br/&gt;
and the speed that I find on etc / CODESYSControl_User.cfg I have to leave to 115200 even if in the forum they speak of 9600?&lt;br/&gt;
I ask you all these questions because I have now moved them but the communication does not start.&lt;br/&gt;
I state that sending a string from Hercules with Putty the string is received so it must be a problem in the settings.&lt;br/&gt;
Thanks for your kindness.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: WatchModbus.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4915"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#3437" rel="alternate"/><published>2020-02-27T16:59:10.490000Z</published><updated>2020-02-27T16:59:10.490000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com1d8abe59989bc2e8ac04c1f187667e8ae14c9b2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
setting is ok,&lt;br/&gt;
and from first screenshot I would say comports works.&lt;br/&gt;
I would suggest to add the name of the serial modbus device to a watch window to have more information what happens...&lt;br/&gt;
(add Modbus_Slave_Com_port to the watch window and undfold it to see more infommation/diag there)&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusDiag.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4912"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#16e7" rel="alternate"/><published>2020-02-27T16:59:09.537000Z</published><updated>2020-02-27T16:59:09.537000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.come69a30923b41a59dcd7d586a412cd53abbda4cd7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello and thanks for the reply,&lt;br/&gt;
I tried without spaces but still nothing, I tried to modify sudo nano /etc/CODESYSControl_User.cfg as in the attached file putting ttyUSB instead of  ttyS and adding&lt;br/&gt;
portname: = COM.SysCom.SYS_COMPORT1&lt;br/&gt;
but still nothing, I have to maybe sudo nano /etc/CODESYSControl.cfg?&lt;br/&gt;
I also set the speed to 115200 by default.&lt;br/&gt;
I have to put ttyUSB in sudo nano /CODESYSControl_User.cfg&lt;br/&gt;
so without etc?&lt;br/&gt;
If someone kindly helps me or maybe Edwin can help me?&lt;br/&gt;
Thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: sudo nano etcCODESYSControl_User_cfg .jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4911"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI4 with CH341</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/02ac9ff6a1/?limit=25#7b81" rel="alternate"/><published>2020-02-27T16:59:06.908000Z</published><updated>2020-02-27T16:59:06.908000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6fc6a237519270a482d393b828013a8a6df59629</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;without these spaces it might work  ( and it should be 3.5SP15 at least  -&amp;gt;version)&lt;br/&gt;
&lt;strong&gt;&lt;span&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;/span&gt;Linux.Devicefile=/dev/ttyUS&lt;/strong&gt;B&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>