Using Modbus Master and ModbusEthernet_04.lib at the same time

Hi, on Wago 750-890 & Codesys 2.3, I met the following issue:

I needed specific config to make 750-… a modbus tcp server on its reserved I/O memory range, so I sw off the internal Modbus Server on 502 port and used ModbusEthernet_04.lib - this works fine.

But after configuring internal PLC config Modbus Master (I needed to access slaves too), it turned out a conflict between the function names in this library and Modbus Master generated code

Any ways to fix the issue? Or using the ETH_MB_MASTER from this library is the only solution?

Thanks,

in Project > Option, you have the menu Build then if you click on Exclude Object, you can select specific object to be excluded from the compilation process:


You can manually select the object that bother you, check the “exclude” at the bottom and the object should become green