Hey PLCtalk!
Just a forewarning, I am entirely new to everything PLC besides a few weeks of watching training vids on youtube, so be gentle with me!
So my boss wants to have me develop some HMI stuff for the Raspberry Pi with a touch screen which sounds great. Catch is that it has to communicate somehow with the Allen-Bradley PLCs we use and be sure everything jives with the existing programs we have written in RSLogix 5000.
I've been researching up on communication protocols and searching these forums like crazy trying to learn as much as possible and gather what options I have here.
I've been looking closely at MODBUS communications, but it's looking like I'd have to buy a new module to incorporate into the existing PLC block setup? Which would make the project kind of clunky since this supposed to be a cost saving project.
Boss mentioned to me that serial comms may be an option, and with my bit of experience in Arduino/RazPi I think I could figure that out. However, I'm assuming it's going to be a bit more adjustment in the RSL/5000 code to get that to send / receive all the data we want to transfer between them. Instead of being able to request objects by name and update data between Pi and PLC.
Another reaaaaally dirty way of doing it that he mentioned might even be to have a digital Input and Output block on the PLC and actually setup a custom I/O between these and the GPIO pins on the Pi. My initial reaction to this; nightmare. I am not nearly experienced enough with either devices to get a working comms interface like this to work. So I'm really hoping there's a standardized protocol to use instead of this latter method.
We do have a DeviceNet block on all PLC systems we use so I considered looking into whether the Pi could be added as a CANbus device. But I haven't looked into it at all yet.
TL;DR:
So what communications protocol would you suggest I use to pass data between the Raspberry Pi and RSLogix 5000 PLCs? I can do the research / legwork to get it working but a starting point would be extreeeemely helpful!!!
Sorry for such a long post, just kind of doing a brain-dump in hopes of some direction from the experts. Thanks for taking the time out to read it!
Just a forewarning, I am entirely new to everything PLC besides a few weeks of watching training vids on youtube, so be gentle with me!
So my boss wants to have me develop some HMI stuff for the Raspberry Pi with a touch screen which sounds great. Catch is that it has to communicate somehow with the Allen-Bradley PLCs we use and be sure everything jives with the existing programs we have written in RSLogix 5000.
I've been researching up on communication protocols and searching these forums like crazy trying to learn as much as possible and gather what options I have here.
I've been looking closely at MODBUS communications, but it's looking like I'd have to buy a new module to incorporate into the existing PLC block setup? Which would make the project kind of clunky since this supposed to be a cost saving project.
Boss mentioned to me that serial comms may be an option, and with my bit of experience in Arduino/RazPi I think I could figure that out. However, I'm assuming it's going to be a bit more adjustment in the RSL/5000 code to get that to send / receive all the data we want to transfer between them. Instead of being able to request objects by name and update data between Pi and PLC.
Another reaaaaally dirty way of doing it that he mentioned might even be to have a digital Input and Output block on the PLC and actually setup a custom I/O between these and the GPIO pins on the Pi. My initial reaction to this; nightmare. I am not nearly experienced enough with either devices to get a working comms interface like this to work. So I'm really hoping there's a standardized protocol to use instead of this latter method.
We do have a DeviceNet block on all PLC systems we use so I considered looking into whether the Pi could be added as a CANbus device. But I haven't looked into it at all yet.
TL;DR:
So what communications protocol would you suggest I use to pass data between the Raspberry Pi and RSLogix 5000 PLCs? I can do the research / legwork to get it working but a starting point would be extreeeemely helpful!!!
Sorry for such a long post, just kind of doing a brain-dump in hopes of some direction from the experts. Thanks for taking the time out to read it!