usuallyconfused
Member
I have a 1756EWEB card that will communicate with a PC (using the WinSock 6.0 control). I need to set it up using UDP. I can create the socket, and connect, which is visible through the browser pages on the card.
But whenever I issue the WriteSocket cmd via a MSG I get a parameter error in module configuration. No extended error code.
Can someone tell me where to put the ip address in the source element for this command. So I can stop using the connect.
Or what parameter is not set right?
Below is the data type config for the source tag. It's a carbon copy of the example in the manual.
Timeout DINT
ToAddr SockAddr
Family INT
Port INT
Addr DINT
Buffer STR_150
LEN DINT
DATA SINT[150]
But whenever I issue the WriteSocket cmd via a MSG I get a parameter error in module configuration. No extended error code.
Can someone tell me where to put the ip address in the source element for this command. So I can stop using the connect.
Or what parameter is not set right?
Below is the data type config for the source tag. It's a carbon copy of the example in the manual.
Timeout DINT
ToAddr SockAddr
Family INT
Port INT
Addr DINT
Buffer STR_150
LEN DINT
DATA SINT[150]