UDP socket communication to PC with ControlLogix and 1756-EN2T

taylor1982

Member
Join Date
Aug 2011
Location
Bavaria
Posts
78
Hello,

I need to establish a UDP socket communication between a ControlLogix L72 PLC and a Linux-PC on the other side with a 1756-EN2T network card.

I have really no idea how to do this. I found nothing suitable in the AB library or knowledgebase.
Can anyone provide a sample program how to handle this?

Thank you so much in advance!

Stefan
 
Thanks for your replies.

Due to this I have a view questions:

- I need to implement a very fast connection so I need to send and receive as fast as possible. How ist the best way to trigger the READ and WRITE message instructions?
- Can READ and WRITE be triggered at the same time?
- How do you usually trigger the instructions? With a fast toggle bit and the negated .DN-Bit before the message instruction?

Thank you!
 
Due to this I have a view questions:

- I need to implement a very fast connection so I need to send and receive as fast as possible. How ist the best way to trigger the READ and WRITE message instructions? I usually use an XIO |\| for the message enabled and then use a timer done bit XIC | | in series that pulses every 50msec or 100msec. The TON instruction would use an XIO |\| for the timer done in front of TON instruction. From my experience, only using the |\| Enable bit will cause the message instruction to hang sometimes. Make sure to use the done bit in series. Sorry, I don't use Rockwell at my current job so I hope the example shows up correct.
Msg.EN Tmr.Dn
|\|---------| |-----------MSG Instruction called Msg

Tmr.Dn
|\|-----------TON Instruction called Tmr

- Can READ and WRITE be triggered at the same time? Yes. The EN2T can hold up to 256 connections if I remember correctly. You can log into the EN2T card by typing in its IP address to see the maximum number of connections. You'll want to monitor this.
- How do you usually trigger the instructions? With a fast toggle bit and the negated .DN-Bit before the message instruction?

Thank you!
 
Unfortunately answers in the post above are incorrect and misleadng
The rules above do not apply to sockets
You cant do socket read and write at the sametime
And performance really depends on the socket serice timeout as Msg reads the buffer and not the actual udp stream
 
Unfortunately this is no option. On the other side is a Linux PC and the customer want to use UDP sockets.

Then change the customer's expectations.

ControlLogix cyclic I/O connections are fast, bi-directional, and use UDP. That sounds good to me.

You will almost certainly not get the performance you want from the raw sockets feature of the 1756 Ethernet modules.
 

Similar Topics

Hi All, I am new in PLC programming. My project is to send the data from PLC (Mitsubishi Q03UDECPU) to PC using Built-in Ethernet port. After...
Replies
0
Views
1,879
I'm using a 1756-ENBT network card to communicate via socket communication (UDP) with a PC. Now the signal runtime until the PC sends a bit, the...
Replies
3
Views
2,129
Hi. Does anyone know how to use the Wago APP socket lilbrary functions for UDP broadcast? I have tried to use the fbUdpPacketClient function to...
Replies
1
Views
2,330
I am attempting to open a UDP socket to list for heartbeat packet from a device. I created a data type with 12 bytes. Type DINT (2 for...
Replies
13
Views
6,720
Hi everybody, Is there anyway to open some specifics Socket on Ethernet (192.168.1.37:21000) with Contrologix 5000 like in Siemens S7. I need to...
Replies
5
Views
2,734
Back
Top Bottom