Hello Martin,
The connection to the Modbus Server (old PLC) has already been checked with the use of the Modbus Poll tool. However, the old PLC is currently not connected to the client (PLCnext) because I'm trying to verify the programming of the PLCnext through a Modbus tool in my PC. Currently the only connection made is between the PLCnext and my personal laptop, which has to act as the Modbus Server to test the Client FB in the PLCnext.
I have good news. I tried with several Modbus tools and finally got it working. I saw in another post of yours that Modbus Poll can't act as a Modbus Server so I guess that might be the reason it didn't work. Now I'm using a tool called EasyModbusTCP Server Simulator (
https://sourceforge.net/projects/easymodbustcpserver/) and the connection has been established with no problems.
I have just one question left regarding the use of Modbus. Since I'm programming both sides of the communication, is it necessary for me to differentiate between Coils, Discrete Inputs, etc.? I thought that it may be possible for me to just send the array of WORDs from the old PLC (Server) and receive that array in the same order in the client (PLCnext) without having to worry about Coil Register Offset or anything like that. I say that specially because as you can see in the image together with this post, although I modify the content of the adresses, the only that sent to the PLCnext after the client asks for it are zeros.
Thank you very much again!
Regards
Guzmán