UDP Commands to/from a CompactLogix Controller
UDP Commands to/from a CompactLogix Controller
(OP)
Does anyone have experience using an MSG instruction to send and receive messages by way of UDP? In the document "enet-um527_-en-p.pdf" (a google search will locate it for you) I am lead to believe that it is possible, though the document does not outline Source Element parameters. They say to use a user-defined type for it....but what parameters do you pass? I am trying to send and receive these messages between the PLC and a PC.
With UDP messages on a PC, all I need are the IP address, a port, and the message. What other parameters does the PLC need?
With UDP messages on a PC, all I need are the IP address, a port, and the message. What other parameters does the PLC need?





RE: UDP Commands to/from a CompactLogix Controller
The MSG commands have some examples of how to configure them, including the user defined types:
- CreateSocket - page 141
- OpenConnection - page 143
- Write - page 151
Does that get you any closer? I don't have an EWEB module here to test with, so I can't try it.
As an alternative:
I have had to communicate with a PC over ethernet from a ControlLogix before and was successful with a 3rd party card from Prosoft called the MVI56-GEC. Here's the product page: http:/
However, that application used TCP/IP, not UDP. I don't believe that product will support UDP.
Scott Whitlock
PLC Programming Articles: http://contactandcoil.com/
RE: UDP Commands to/from a CompactLogix Controller
Got it.
Sample application + sample ladder code (Logix 5000) found in TechNote #32962.