Arduino to CompactLogix Comms

bgtorque

Member
Join Date
Oct 2013
Location
Northampton
Posts
127
I've seen that some people have had success in communicating from an Arduino to a CompactLogix controller via DF1. I am using an L33ER controller that I don't believe has a DF1 port. Is anyone aware of a method for setting up comms through EtherNet/Ip? My application is a simple control interface with about 8-off momentary push buttons to send onto the CompactLogix via the Arduino, plus 3-off 1024 encoders that send a setpoint, and also another 8-off DO from the Arduino to switch on lamps when teh buttons are pressed. I wouldn't be doing any control with the Arduino. I could do what I want with a cheap Micro830 for ~£230 but its just too big to fit in my interface plastic moulding. Currently it's all hardwired and I am looking to get rid of the long lengths of unwieldy cable, hence the push to run everything down an Ethernet cable.

I guess I could look to install a DF1 gateway, like this from Prosoft, but if I have EtherNet it would seem a shame since all other comms are running that way?
http://www.prosoft-technology.com/P...ave-Network-Interface-Module-for-CompactLogix
 
I am not aware of any Ethernet/IP libraries for the Arduino so I think you'd have to start from scratch there which seems like a daunting prospect. However, if you really would like to use ethernet to connect to the Arduino with the CompactLogix there do exist ModbusTCP libraries. Here is an example.
 
Thanks, this certainly sounds interesting. I have an original Pi at home gathering dust, i'm willing to give it a try if you can give me some pointers.
 
I had thouht about something like this as being more 'acceptable' and less hobbiest. I dont have any experience of these guys though, and again requires a ModBus gateway to establish the comms at the PLC.
 
Thanks, this certainly sounds interesting. I have an original Pi at home gathering dust, i'm willing to give it a try if you can give me some pointers.

Here's a project that will allow you to read/write data to your CompactLogix.

https://github.com/dmroeder/pylogix

We can talk details if you want to try this route. Ether here, or you can email or PM me.
 

Similar Topics

I'm trying to write a data in Arduino using MODWR function block .I used the code I got from online for both PLC and Arduino. I made the wiring...
Replies
4
Views
71
I am working on a project that had originally started on a sparkfun redboard artemis. Through some testing I've pushed to utilize a PLC for the...
Replies
9
Views
1,574
Hello, I have been getting more and more requests for Real Time Clock (RTC) sensitive automation from my clients. I know that there is a Modbus...
Replies
13
Views
2,727
https://www.arduino.cc/pro/software-plc-ide Diving in when I get home. With its full IEC language support, object-oriented programming...
Replies
65
Views
19,635
https://www.hackster.io/news/arduino-unveils-the-opta-its-first-micro-plc-for-the-industrial-internet-of-things-d97f1d6b868a...
Replies
32
Views
10,116
Back
Top Bottom