Modbus RTU over 750-652 in Codesys 2.3

Hi,

It’s my first time operating in Codesys 2.3, but I have done a good amount of Codesys programming, so I’m a little familiar. I haven’t done a lot of RTU, but a lot of Modbus TCP.

I don’t have the PLC in my reach at the moment, but I’m trying to be a little ahead.
We’re adding the 750-652 module to read energy from a flowmeter over RTU. There will only be 1 slave.

I tried the modb_i05 library, but I got away from it because I don’t get what to put in the COM port input etc.

I attached pictures of my current PLC code.

I’m uncertain if this will work.
Any help or clarification on how things work will be greatly appreciated.

Thanks in advance.

Hello,
Here is an old sample program I made, it could help you to understand the basics:
Modb_l05_ModbusMaster_RS485.pro (122.6 KB)