Hello professionals. I am a beginner, learning the codesys environment while trying to run a certain project. I have been stuck for a week over the launch of the communication on the raspberry pi target. I want plc to talk to the adam advantech 4571 module, which is a TCP server. I can't read the help-online page properly regarding the TCP_Client block. Would anyone have an example of a communication running using TCP client -> server? The available tutorials on YT are on older libraries and that doesn't work for me.
Going through this problem will allow me to make the final decision regarding the purchase of a license for the raspberry pi :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello professionals. I am a beginner, learning the codesys environment while trying to run a certain project. I have been stuck for a week over the launch of the communication on the raspberry pi target. I want plc to talk to the adam advantech 4571 module, which is a TCP server. I can't read the help-online page properly regarding the TCP_Client block. Would anyone have an example of a communication running using TCP client -> server? The available tutorials on YT are on older libraries and that doesn't work for me.
Going through this problem will allow me to make the final decision regarding the purchase of a license for the raspberry pi :-)
more posts ...
https://faq.codesys.com/display/CDSFAQ/TCP%3A+Example+for+Server+and+Client
Hi i-campbell. I saw this many times... Its run, but there is no active connection beetween Rpi_PLC and my laptop (with hercules server)
Has anyone already started TCP Client server communication using the latest library? It has changed quite a lot compared to the available tutorials on YT -> https://www.youtube.com/watch?v=PKgYHP94EVs. And example in https://faq.codesys.com/display/CDSFAQ/TCP%3A+Example+for+Server+and+Client
Some information about latest changes of library what I fond is:
https://help.codesys.com/webapp/var_input_constant;product=LibDevSummary;version=3.5.17.0
from your pi, does this show the port is open?
nmap -Pn -p 50001 192.168.3.101
does another port work, eg 49000?
ok, i will check it tommorow and give feedback.
update/
Yapp, port is close. How to open it. I have to do it inside RPi??
update/
I try to open port 50001 by using ufw command, but it fails, argggg
Last edit: voytekel 2022-03-30