Hilscher Community Forum
Getting data from AllenBradley PLC - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: General Infos (https://forum.hilscher.com/forum-28.html)
+--- Forum: Projects (https://forum.hilscher.com/forum-41.html)
+--- Thread: Getting data from AllenBradley PLC (/thread-562.html)



Getting data from AllenBradley PLC - MarcoMedina - February-26th-2020

Well,  my situation is this:

Im working with some PLC's but the most are Allen Bradley, so I was wondering if with the netPI , I will be able to be logging data from the PLC's and sending them to a private DB (SQL SERVER)

I was thinking to run a OPC Server/client, I dont know which one is the correct to be loggin the PLC Data

Im willing to hear another options, thanks team.

If this is possible, I will be getting more that 10 nepPi devices to implement it on my area.


RE: Getting data from AllenBradley PLC - Armin@netPI - February-26th-2020

Well please tell me which type of OPC is in use, OPC DA or the new version OPC UA?


RE: Getting data from AllenBradley PLC - MarcoMedina - February-26th-2020

(February-26th-2020, 07:37 AM)Armin@netPI Wrote: Well please tell me which type of OPC is in use, OPC DA or the new version OPC UA?
Well.. thats the problem there is not yet an OPC, thats why I was thinking to RUN the opc Server with netAPI to avoid the pc.


Because to stablished before the tags, items and groups I need a pc to host the opc right? or I have a wrong idea about OPC? so if  Im wrong how will the correct way to do it?


RE: Getting data from AllenBradley PLC - Armin@netPI - February-26th-2020

I know an immediate answer for Siemens PLCs but for Allen Bradley PLCs I don’t know to be honest. With Siemens there is an official programming protocol available that is used by the Windoes based programming software. This protocol is named RFC1006. And for this protocol a Node-RED node is available. Here is the link: https://www.npmjs.com/package/node-red-contrib-s7comm.
But unfortunately I do not know if a similar programming protocol exists for Allen Bradley PLCs and maybe a node similar to the one above. And then the answer would be easy to use such a node in a Node-RED environment and use it.
To come back to OPC: if the Allen Bradley PLC supports OPC US as a server - which I don’t know if it does - the I would recommend to install an OPC UA client node in Node-RED and to gather data from the PLC with it. Node-RED is the most easiest IoT tool to handle many many different Ethernet based protocols.
Thx
Armin