drazse - 2022-10-18

Hi!

I need to create a ModBus communication with a C# application, however, when I add the ModBus slave device, I get several errors.

I'm using CODESYS V3.5 SP7 Patch 2 pbf and a CECC-D plc:
Name: CECC-D
Vendor: Festo AG & Co. KG
Groups: PLCs
Type: 4096
ID: 103D 9C43
Version: 3.5.4.0
Model Number: 574415
Description: Festo CODESYS Embedded Controller Compact, Digital

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:

[ERROR] iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle [IoDrvModbusTCPSlave]: C0035: Program name, function or function block instance expected instead of 'm_ModbusServer.ConfigureDataModel'
[ERROR] iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle [IoDrvModbusTCPSlave]: C0004: 'ConfigureDataModel' is no component of 'MODBUSSERVER'
[ERROR] iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle [IoDrvModbusTCPSlave]: C0018: 'm_ModbusServer.busCycleType' is no valid assignment target
[ERROR] iodrvmodbustcpslave, 3.5.5.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle [IoDrvModbusTCPSlave]: C0004: 'busCycleType' is no component of 'MODBUSSERVER'
Compile complete -- 4 errors, 12 warnings
Build complete -- 4 errors, 12 warnings : no download possible!

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?