<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CODESYS 3.5 SP12 - Modbus TCP client in ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/23bff0c31a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/23bff0c31a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/23bff0c31a/</id><updated>2021-10-08T08:20:59.779000Z</updated><subtitle>Recent posts to CODESYS 3.5 SP12 - Modbus TCP client in ST</subtitle><entry><title>CODESYS 3.5 SP12 - Modbus TCP client in ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/23bff0c31a/?limit=25#8632" rel="alternate"/><published>2021-10-08T08:20:59.779000Z</published><updated>2021-10-08T08:20:59.779000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com63009d2102c43be40a93d4e6f4b2b9a481b9d6bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The ModbusFB library was written precisely because it is not possible to get your ModbusTCPSlave to connect - this only works when added to the device tree.&lt;br/&gt;
I would first try to open a project archive of your PLC in SP17 Patch 1 and get the ModbusFB library to work.  So old runtime device description + compiler version 3.5.17.10 + IDE SP17 Patch 1.  If it doesn't work, ask your PLC manufacturer to support you to use that library.&lt;br/&gt;
If that doesn't work, use a different PLC for your Modbus TCP Master purposes.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CODESYS 3.5 SP12 - Modbus TCP client in ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/23bff0c31a/?limit=25#58ba" rel="alternate"/><published>2021-10-08T07:03:29.624000Z</published><updated>2021-10-08T07:03:29.624000Z</updated><author><name>marco-b</name><uri>https://forge.codesys.com/u/marco-b/</uri></author><id>https://forge.codesys.com0f26ac3f5076e1dfb27ca7dc919fa978f976f93b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello folks, I'm trying to create a Modbus TCP client directly from code, but I'm having some issues...&lt;/p&gt;
&lt;p&gt;to do this I imported the library &lt;em&gt;IoDrvModbusTCP&lt;/em&gt;, and both a &lt;em&gt;ModbusRequest&lt;/em&gt; instance and a &lt;em&gt;ModbusTCPSlave&lt;/em&gt; instance. I set the &lt;em&gt;ModbusTCPSlave&lt;/em&gt; configuration using the &lt;em&gt;UpdateCommunicationSettings&lt;/em&gt; method, but can't get it to connect. I followed the instructions at this link:&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_mod_lib_modbustcpslave;product=core_modbus_configuration_editor;version=3.5.12.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_mod_lib_modbustcpslave;product=core_modbus_configuration_editor;version=3.5.12.0&lt;/a&gt;&lt;br/&gt;
where it tells to use the property xEnable, which doesn't exist.&lt;/p&gt;
&lt;p&gt;I attached an image that shows that when I create &lt;em&gt;ModbusTCPSlave&lt;/em&gt; instance via code, it doesn't connect, but when I create a Slave in my device tree, it connects and works.&lt;/p&gt;
&lt;p&gt;Unfortunately I can't update to SP17 and use the &lt;em&gt;ModbusFB&lt;/em&gt; function block due to manufacturer constraints,&lt;/p&gt;
&lt;p&gt;Does anyone of you know how to get my &lt;em&gt;ModbusTCPSlave&lt;/em&gt; to connect?😕&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>