×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

UDP Commands to/from a CompactLogix Controller

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?

RE: UDP Commands to/from a CompactLogix Controller

Looking at that document, there seems to be some parameters listed in page 131, though I admit it's a bit vague.  It looks like you need to do at least 3 MSG transactions with the web server card just to send one UDP message (CreateSocket, OpenConnection, Write).  I would assume that once the socket and connection are open, you could continue sending the write commands as long as the connection never dies.

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://www.prosoft-technology.com/prosoft/products/for_rockwell_automation/platform/controllogix/mvi56_gec

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

(OP)
FYI -

Got it.

Sample application + sample ladder code (Logix 5000) found in TechNote #32962.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources