Sign in to follow this  
Followers 0
_Pavel_

Delta AS332 UDP socket

1 post in this topic

Hello everybody,
could please someone give an idea

I want to communicate to AS332 via UDP. I have tried and it works, but the problem is: to create an UDP socket i have to set-up first, statically (!!??), the comms partner IP address
But: i don't know the partner's IP address. There could be different partners. I want the PLC to obtain the partners IP address from the partner's query just to answer.
And I don't understand, why the socket is connected to the alien's IP address, it must be connected to the own IP address, because the first task of an UDP socket is to "listen", isn't it? 

So my questions are:

- how to receive a packet from any partner via UDP, not setting-up the partner's IP first?
- can I use dynamic destination IP address for the "SSEND" instruction?
- can I have access to the whole L3 or L2 data packet, where I can obtain the client's IP address from?

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0