Question about CIP Generic and UDP

Omnicode

Member
Join Date
Jun 2009
Location
Knoxville
Posts
7
Hello, I am using a 1756-EN2T and tryin to communicate with a device that accepts ASCII string over ehternet usin UDP.

Do packets sent using CIP Generic of socket type "2 - UDP" look like a normal UDP packet i would send from software on a PC?

CreateSocket and WriteSocket all execute without error but I get no response from my device.
 
If your device expects a string of ASCII characters it will not understand the CIP protocol.

UDP, like TCP, is only a transport layer, the chain of bytes that is sent and received is defined by the protocol used, and obviously both sides should use the same protocol.

This is independent of whether the UDP packet is sent from a PC or a PLC.

In your case you should probably compose and send the ASCII characters expected by the protocol of that device
 
If your device expects a string of ASCII characters it will not understand the CIP protocol.

UDP, like TCP, is only a transport layer, the chain of bytes that is sent and received is defined by the protocol used, and obviously both sides should use the same protocol.

This is independent of whether the UDP packet is sent from a PC or a PLC.

In your case you should probably compose and send the ASCII characters expected by the protocol of that device
Thank you. This is what I suspected. I now have to figure out how to send an ascii string to my device from the plc over Ethernet.
 
The CIP Generic is a CIP message between the logix processor and the EN2T module.


See for example the WriteSocket chapter of:
https://literature.rockwellautomation.com/idc/groups/literature/documents/at/enet-at002_-en-p.pdf


Does the resulting UDP packet look exactly the same as a regular UDP packet? yes.


You would need to open a socket with OpenConnection, in order to listen for a response via ReadSocket.


Looks like there's some sample applications on the knowledgebase, as lined to in the user manual.
 
The CIP Generic is a CIP message between the logix processor and the EN2T module.


See for example the WriteSocket chapter of:
https://literature.rockwellautomation.com/idc/groups/literature/documents/at/enet-at002_-en-p.pdf


Does the resulting UDP packet look exactly the same as a regular UDP packet? yes.


You would need to open a socket with OpenConnection, in order to listen for a response via ReadSocket.


Looks like there's some sample applications on the knowledgebase, as lined to in the user manual.
Thanks. I have that manual memorized by this point. Short of trying to intercept the packets comming from the EN2T and looking at them, Im at a loss to troubleshoot.
 
You can tell exactly what your sending on the EN2T by using the internet explorer interface. Just type in the IP of the EN2T and view the Diagnostics. I think there is a place where it shows what is being sent to your device.
 
Intercept makes sense then, and use wireshark.
Thanks for the input, all.

So I got online with my laptop with Wireshark and set it up to pose as the receiving device. UDP packets sent from test software on my work computer were received fine. I triggered MSG from plc and received none.

Turns out...in the week of programming the other aspects of the project, I had set my MSG tags up and configured them to use a different EN2T than the one facing outward.

I went and reconfigured my MSG tags with the new path and all works as planned now.

Thanks much!
 
Last edited:

Similar Topics

hi , I need to sorry for my bad English first. I'm newbie at plc programming ,I had been asked about E/IP protocol information for some system...
Replies
3
Views
383
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
170
Good morning! Let me start by saying, I am still learning about this type of HMI programming. I recently watched a video about recipes and how it...
Replies
0
Views
73
I have some logic that I have written within a 5380 series controller that tracks the time an event is started, while the event is running an RTO...
Replies
2
Views
93
I have an HMI 2711R - T4T Series B, and I want to know which PLCs, besides Micro 820, can communicate with it.
Replies
2
Views
95
Back
Top Bottom