<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Compile error when adding ModBus slave device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1c1219245a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1c1219245a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1c1219245a/</id><updated>2022-10-18T00:35:25.266000Z</updated><subtitle>Recent posts to Compile error when adding ModBus slave device</subtitle><entry><title>Compile error when adding ModBus slave device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1c1219245a/?limit=25#957a" rel="alternate"/><published>2022-10-18T00:35:25.266000Z</published><updated>2022-10-18T00:35:25.266000Z</updated><author><name>drazse</name><uri>https://forge.codesys.com/u/drazse/</uri></author><id>https://forge.codesys.coma8ee5f4d5897a2b1fbc5a2a7a98ed8ee2b12f410</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I need to create a ModBus communication with a C# application, however, when I add the ModBus slave device, I get several errors.&lt;/p&gt;
&lt;p&gt;I'm using CODESYS V3.5 SP7 Patch 2 pbf and a CECC-D plc:&lt;br/&gt;
Name: CECC-D&lt;br/&gt;
Vendor: Festo AG &amp;amp; Co. KG&lt;br/&gt;
Groups: PLCs&lt;br/&gt;
Type: 4096&lt;br/&gt;
ID: 103D 9C43&lt;br/&gt;
Version: 3.5.4.0&lt;br/&gt;
Model Number: 574415&lt;br/&gt;
Description: Festo CODESYS Embedded Controller Compact, Digital&lt;/p&gt;
&lt;p&gt;I tried to update the firmware of the plc also, but it cannot go higher than 1.4.x. The errors I get, when I try to log on to the plc after adding the slave device:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[ERROR]&lt;/span&gt;         iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle &lt;span&gt;[IoDrvModbusTCPSlave]&lt;/span&gt;: C0035:  Program name, function or function block instance expected instead of 'm_ModbusServer.ConfigureDataModel'&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle &lt;span&gt;[IoDrvModbusTCPSlave]&lt;/span&gt;: C0004:  'ConfigureDataModel' is no component of 'MODBUSSERVER'&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle &lt;span&gt;[IoDrvModbusTCPSlave]&lt;/span&gt;: C0018:  'm_ModbusServer.busCycleType' is no valid assignment target&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle &lt;span&gt;[IoDrvModbusTCPSlave]&lt;/span&gt;: C0004:  'busCycleType' is no component of 'MODBUSSERVER'&lt;br/&gt;
                Compile complete -- 4 errors, 12 warnings&lt;br/&gt;
                Build complete -- 4 errors, 12 warnings : no download possible!&lt;/p&gt;
&lt;p&gt;I tried to change the versions of the libraries, however, I cannot downgrade the IoDrvModbusTCPSlave library, as I only have the 3.5.5.0 version avaliable. I even tried to add the slave device as a lower version like 3.5.2.0, however, when I added it, the library wasn't added (most likely because I don't have it locally). Can I somehow download lower versions of this library? Or is there a better solution for the communication of a CECC-D PLC and a C# application?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>