<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus: dis- / re-connect cable: modbus does not re-start</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/</id><updated>2020-02-27T14:15:50.361000Z</updated><subtitle>Recent posts to Modbus: dis- / re-connect cable: modbus does not re-start</subtitle><entry><title>Modbus: dis- / re-connect cable: modbus does not re-start</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/?limit=25#aa03" rel="alternate"/><published>2020-02-27T14:15:50.361000Z</published><updated>2020-02-27T14:15:50.361000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com87d79e57c25846fe7990c1736870b7494c48c43e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please contact your supplier for this.&lt;br/&gt;
Jira is only accessable for direct customers (OEMs) of 3S-Smart Software Solutions and Distributors.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus: dis- / re-connect cable: modbus does not re-start</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/?limit=25#b819" rel="alternate"/><published>2020-02-27T14:15:49.235000Z</published><updated>2020-02-27T14:15:49.235000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.come4f456ddea6d400e14c3b8a822c6af9cba252614</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Tim,&lt;br/&gt;
Thank you for your quick answer.&lt;br/&gt;
I'll apply it immediately.&lt;br/&gt;
Do you know where I can find a list of known issues?&lt;br/&gt;
(I do not have access to the CoDeSys jira database.)&lt;br/&gt;
Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus: dis- / re-connect cable: modbus does not re-start</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/?limit=25#1d65" rel="alternate"/><published>2020-02-27T14:15:48.854000Z</published><updated>2020-02-27T14:15:48.854000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com0e020f68e2d0f2db8a644e2a44b7276e576d48d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, this is known.&lt;/p&gt;
&lt;p&gt;In the device tree you can set the name of your slaves (right click =&amp;gt; properties).&lt;br/&gt;
This name is the instance of your Modbus Slave.&lt;/p&gt;
&lt;p&gt;To detect the error and reset the communication you can use e.g. (mbSlave1 is the name of my Modbus slave device):&lt;br/&gt;
IF mbSlave1.xError THEN&lt;br/&gt;
    mbSlave1.xReset := TRUE;&lt;br/&gt;
ELSE&lt;br/&gt;
    mbSlave1.xReset := FALSE;&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;To get the error message you can use&lt;br/&gt;
VAR&lt;br/&gt;
    bySlave1Error: IODRVMODBUS.MB_ErrorCodes;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;bySlave1Error := mbSlave1.byModbusError;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus: dis- / re-connect cable: modbus does not re-start</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fb1b3a88db/?limit=25#8e02" rel="alternate"/><published>2020-02-27T14:15:48.474000Z</published><updated>2020-02-27T14:15:48.474000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com23ca97a59ad55ca1bcc465457cc32534e3977250</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
Recently I used the Modbus master library (CoDeSys V3.5.3.0).&lt;br/&gt;
And I noticed that dis-connecting and re-connecting the serial cable does NOT restart the Modbus protocol.&lt;br/&gt;
Do you have any experience with (re-) starting the Modbus protocol? &lt;br/&gt;
Is there a way to:&lt;br/&gt;
- detect that the Modbus protocol is not running.&lt;br/&gt;
- (re-) start the Modbus protocol manually (by the application).&lt;br/&gt;
Any help is appreciated.&lt;br/&gt;
Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>