<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus RTU - Dynamics channels</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/edf66ae06d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/edf66ae06d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/edf66ae06d/</id><updated>2020-02-27T13:47:52.438000Z</updated><subtitle>Recent posts to Modbus RTU - Dynamics channels</subtitle><entry><title>Modbus RTU - Dynamics channels</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/edf66ae06d/?limit=25#7f0b" rel="alternate"/><published>2020-02-27T13:47:52.438000Z</published><updated>2020-02-27T13:47:52.438000Z</updated><author><name>remilefebvre</name><uri>https://forge.codesys.com/u/remilefebvre/</uri></author><id>https://forge.codesys.com64674f0e346fe0b9a636feee38578d6b7713f716</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would like to create a Modbus RTU Channel dynamically, without graphical Modbus Configurator.&lt;br/&gt;
I created 'Modbus_COM' / 'Modbus_Master_COM_Port' / 'Modbus_Slave_COM_Port' in my codesys project, but channels are defined in a configuration file, so they will be created in the program.&lt;br/&gt;
If it's possible, how can I do that ?&lt;/p&gt;
&lt;p&gt;If not, I also tried ModbusRequest function, but it doesn't work (MB_ErrorCodes = 255).&lt;br/&gt;
Have someone an example of this kind of project, and explanations of how function is used ?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Rémi&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>