Lelouch Posted February 1 Report Posted February 1 Hi, i am trying to communicate with my nx102-12 series omron plc and i am using FINS over UDP for this. I am using cpp and trying to use threads to try to read and write simultaneously to my plc. PLC's are not my main expertise but i need to write a code that can communicate in this way if possible. I will be writing to memory area and read from memory area at the same time. Does my plc capable of receiving and responding to multiple udp requests coming from different local ports from same pc ? I will send multiple udp packages and expect for responses in my code. My threads creates their own unique socket with unique local ports and sends their requests but responses gets mixed up sometimes. Thread 1 asks for memory area 2101 and thread 2 asks for memory area 3101. But thread 2 gets the result for memory area 2101 and thread 2 gets nothing. Something similar like that, is it possible that my plc ignores local port i specified while opening the socket? I tried to find out what are the limitations but this is my first time dealing with a plc so i couldn't quite understand :/ If anyone tried something similar before i really could use some help, thanks a lot. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.