NBS.TCP_Client problem with set communiacation

voytekel
2022-03-28
2022-03-29
  • voytekel - 2022-03-28

    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 :-)

     
  • voytekel - 2022-03-28

    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)

     
  • i-campbell

    i-campbell - 2022-03-29

    from your pi, does this show the port is open?

    nmap -Pn -p 50001 192.168.3.101 
    
     
  • i-campbell

    i-campbell - 2022-03-29

    does another port work, eg 49000?

     
    πŸ‘
    1
  • voytekel - 2022-03-29

    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

Log in to post a comment.