Clement Prelot Ebrignetti
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Clement Prelot Ebrignetti
-
-
Hi Joe,
thanks for the advice. I prefer use this protocol because I transfer few datas as vector of int16 and I need the minimum of latency (it's for a live monitoring on a robot).
I will do a feed back
-
Hello guys&girls,
I'm new to Unitronics PLC programming and I'm facing some problems. I'm working with a USC-B5-T24 which needs to receive through UDP protocol some datas from a C++ program.
I hadn't find in the unitronics examples programs doing this. Can someone give me the guidelines to set my PLC to receive datas from my C++ program ?
Thanks in advance !
UDP communication between USC-B5-T24 & C++ program (.exe console)
in UniLogic Software
Posted
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 !