<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus RTU Master - how to change slave address from program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7dc18e123/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7dc18e123/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e7dc18e123/</id><updated>2020-02-27T17:15:25.257000Z</updated><subtitle>Recent posts to Modbus RTU Master - how to change slave address from program</subtitle><entry><title>Modbus RTU Master - how to change slave address from program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7dc18e123/?limit=25#81fb" rel="alternate"/><published>2020-02-27T17:15:25.257000Z</published><updated>2020-02-27T17:15:25.257000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc2ecb44749aac25c458e509c079b4931071b2c5b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; georgejaniszewski&lt;/p&gt;
&lt;p&gt;Thank you e.kislov for your assistance.&lt;br/&gt;
George.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU Master - how to change slave address from program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7dc18e123/?limit=25#ec91" rel="alternate"/><published>2020-02-27T17:15:24.278000Z</published><updated>2020-02-27T17:15:24.278000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.comd2c033ce688ec73bb618754fba6e542dca4815b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Enter name of your component (default: Modbus_Slave_COM_Port) in code editor and use '.' operator to see internal variables and methods.&lt;br/&gt;
You can use property SlaveAddress:&lt;/p&gt;
&lt;p&gt;Modbus_Slave_COM_Port.SlaveAddress := &amp;lt;value&amp;gt;;&amp;lt;/value&amp;gt;&lt;/p&gt;
&lt;p&gt;You should to call this code also after reboot of PLC because in this case PLC get again "fixed value from the General tab".&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU Master - how to change slave address from program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7dc18e123/?limit=25#63bb" rel="alternate"/><published>2020-02-27T17:15:21.513000Z</published><updated>2020-02-27T17:15:21.513000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com81e55e7c8a138690616462cd3fb2fe642cf6d1c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; georgejaniszewski&lt;/p&gt;
&lt;p&gt;Hello,&lt;br/&gt;
I need to be able to change the Slave Address of the Modbus Slave COM Port object from within the program at runtime.&lt;br/&gt;
Usually the Slave address would be set as a fixed value in the General tab of the object, but I need to change it dynamically.&lt;br/&gt;
Would you please advise how this can be done.&lt;br/&gt;
Thank you.&lt;br/&gt;
George Janiszewski.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>