
wblandon (Customer) asked a question.
P2CDS-622 Codesys NetBaseServes PingRequest function block do not work
I'm trying to make a ping to check if the PLC is connected with an specific IP address and I'm using PingRequest function block from the library NetBaseServices.
When I use the function block on a ControlWin V3x64 device it works without any problem but when i use it on the P2CDS-622 it always shows a IP_NOT_REACHEABLE error. I do manual ping to the IP address and it is really connected.
Someone have had this issue?
I would like to know if there is any another alternative way to check for a connection to an IP address from Codesys proven on the P2CDS-622?
The P2CDS-622 has 3 networking ports, the 2 top and bottom are configurable and the usb is used for online programming.
Not sure how the PingRequest FB determines which of these to use which may be why it's not reaching the ip.
Try it again with the usb disconnected.
You shouldn't have to do a ping from PLC to PLC if the ip's are static. What are you looking to do?
Also if you have not seen, this may be of assistance: https://docs.codesys-p2cds622.com/en/latest/Communications/ethernet.html
I have just one Ethernet port connected, the other Ethernet and the USB ports are not connected.
I need to use the PingRequest function block because I'm trying an experimental MQTT Sparkplug function blocks which require to check if the IP address where they are pointing to are reachable before to execute properly.
It seems the NBS library don't work with the P2CDS-622. I did a workaround using function blocks from the TCP library and I succeeded.
Thank you for your detailed feedback. We will look into the "NetBaseSrv" Library and try to duplicate/resolve.
Apologize for the back and forth on this, but it has been confirmed that the P2CDS-622 will not support the "PingRequest" function. An Unsupported Feature note will be made on the website.
Thanks for your confirmation. It would be helpful if you can check if in general the NBS library is supported or not by the P2CDS-622 or if it is just specific function blocks.