Jump to content

Clement Prelot Ebrignetti

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Clement Prelot Ebrignetti

  1. Hi guys&girls,

     

    Thanks to Joe's advices, I achieve to make my PLC and my C++ code exchanging data's through UDP protocol.

    So I've written my C++ program on VScode through an Ubuntu20.03 VMWare. For those who wanna do it, follow Joe's advices to set your UDP socket on PLC. After this, I write my C++ code that open a socket  and can send and receive data (I've follow this tutorial on UDP C++ programming : https://bousk.developpez.com/cours/reseau-c++/UDP/01-introduction-premiers-pas/).

    On VMWare, I've set my network adaptater on "Bridged" with the option "Replicate physical network connection state" (users on forums say this option should be activate for those who work on a laptop like me) and in Ubuntu I've set my ethernet connection manual in the network settings>>IPV4>>manual>>xxx.xxx.xxx.xxx. When I execute my code, I've just to write my local port, the IP of the UDP on PLC and the port defined in and it works !

     

    Best regards !

×
×
  • Create New...