<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How do you change the 'read offset' of a Modbus channel on the fly?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b64d1757e2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b64d1757e2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b64d1757e2/</id><updated>2021-04-14T21:31:07.206000Z</updated><subtitle>Recent posts to How do you change the 'read offset' of a Modbus channel on the fly?</subtitle><entry><title>How do you change the 'read offset' of a Modbus channel on the fly?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b64d1757e2/?limit=25#6615" rel="alternate"/><published>2021-04-14T21:31:07.206000Z</published><updated>2021-04-14T21:31:07.206000Z</updated><author><name>dengsberg</name><uri>https://forge.codesys.com/u/dengsberg/</uri></author><id>https://forge.codesys.come2af974d00e5f151c5d5987a75607b66a1fd31c4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Blewl,&lt;br/&gt;
Did you end up with a workable solution?  I am using the Modbus_TCP_Slave by adding it to the device tree under the Modbus_TCP_Master.  I need to allow the user to change the slave device Offset setting through the HMI.  It seems that value is not accessible in runtime.&lt;/p&gt;
&lt;p&gt;I'm not really sure I understand the response from dFx in using a ModbusTCP Slave FB.  I'm still a beginner, and also mostly just familiar structured text.  Any more info on that would be very helpful.&lt;br/&gt;
Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do you change the 'read offset' of a Modbus channel on the fly?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b64d1757e2/?limit=25#c2a7" rel="alternate"/><published>2020-02-27T13:53:56.119000Z</published><updated>2020-02-27T13:53:56.119000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com0fc5ab1c724334af69293a004a08e21b3d205a79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Blewl,&lt;/p&gt;
&lt;p&gt;as far as I know, you can't use your scanner. Instead use a ModbusTCPSlave FB, or build it from CAA.NetBaseServices.&lt;br/&gt;
For schneider PLC, they provide SE_Communication lib with include a TCPSlave FB.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
dFx&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do you change the 'read offset' of a Modbus channel on the fly?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b64d1757e2/?limit=25#e183" rel="alternate"/><published>2020-02-27T13:53:55.952000Z</published><updated>2020-02-27T13:53:55.952000Z</updated><author><name>blewl</name><uri>https://forge.codesys.com/u/blewl/</uri></author><id>https://forge.codesys.comaf88467b9ae8514473f232e72988142eabbf9bff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am setting up a test rig to test Modbus TCP.  The user can enter in one of 250 parameters to either read or write.  I don't want to make 500 channels for reading and writing the parameters, when I can make 2 and change the offset value.  How do I do this, do I need some sort of pointer or global variable?&lt;/p&gt;
&lt;p&gt;Currently the offset is 0 for both, see attached.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Untitled.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4155"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>