Cannot connect to a Modbus TCP server from AXC F 2152 with Function block library, "Modbus_TCP_11"

image.pngxReady „false“ with diag C410, Connect timeout. TLS_SOCKET / UDP_SOCKET cannot connect for tTimeout.
Any suggestions how to go further?

I could not connect because I had to, also, put in the IP (in) of the PLC and the port (502 in to the PLC).
After that I got a message that I was using a wrong function (I was using FC3) and had to use FC4 instead.
Next problem was „wrong reading address“ and instead of using 30001/40001 I had to use just address 1.
Now I had to figure out how to see the data. After a lot of thinking and reading I could understand how to read an array. First word is the variable „arrRegValue[1]“ and I new that it was an 16-bit INT x 10 so I just converted it to INT and then to REAL (I could not convert directly from WORD to REAL) and at last multiplied it with 0.1 to have one decimal.
image.pngNext problem is to convert the three conversions to one FB?
…then how to use the datalogger function or maybe „Node-RED“ to a database?
…Make an HMI
…put in a few more clients for other Modbus servers
Please give some advise or help. :slight_smile:

I understand that you are now working with someone from your local Phoenix Contact office on this topic.