Pylogix Python - AB PLC Projects

Hello PLCTalk Folks,

I have discovered the Pylogix library and would like to know if anyone else has completed any projects using this library. If so, I would like to know what the project consisted of and how it helped. I am a systems integrator and am curious about ways I can use this to help the team.
 
I have a number of tools I've made around the office. We recently updated the way we show I/O on our HMI's. What we display is now STRING's in the PLC, so we pull the values to be displayed from the L5X file and write the strings to the PLC. Another tool I made assists in capturing screenshots of our HMI for manuals. The PLC is aware of what screen the HMI is on, so we run the application on the development computer, then walk through the screens and screenshots are taken automatically.

When we have situations where we have to interface with other systems, that testing gets done in the field. Sometimes I'll write something to simulate the interface so that we can test as much as possible without the real thing.
 
Dmroeder as the maintainer of Pylogix is going to be one of the best people to listen to about it. He is also active in the community and is often willing to help out.

At my current company I have used Pylogix for a handful of one off scripts that don't really stick around, but we also have it running some custom software at a customer site that generates Certificates of Compliance for delivery drivers when they pick up a load of product. It's been running for several years now.
 
I've never used pylogix. I did develop an ethernet/ip driver in C# years ago for my own use. These direct drivers are great and you can do a lot with them. I use the term direct driver because there is no opc server I mainly used it in windows services for large manufacturing plants. They handled recipe downloads, production data uploads, conveyor tracking, high speed sortation, palletizing etc. You can build a very comprehensive MES system with these things. When you can exchange data with a PLC using python, C#, VB, etc, you can do virtually anything with it. I've said it many times, a database is a PLCs best friend. They make a powerful combo. These drivers are perfect for that.
 
Hello PLCTalk Folks,

I have discovered the Pylogix library and would like to know if anyone else has completed any projects using this library. If so, I would like to know what the project consisted of and how it helped. I am a systems integrator and am curious about ways I can use this to help the team.
I used it to change a setting in all instances of a given IO... downloaded the variable list, and ran through all variables and if the type matched, it would write to the specific member.

I have seen someone on chatGPT allucinations stating that a large chemical manufacturing plant could be automated fully by using PyLogix instead of OPC... the guy even wrote an academic paper but when told to implement it, bottled it and disappeared. LOL

It's a tool, and an amazing one at that, but relying on dmroeder to keep it alive past the wims of Rockwell isn't fair for him or the company having to live with it.
 
I used it to change a setting in all instances of a given IO... downloaded the variable list, and ran through all variables and if the type matched, it would write to the specific member.

I have seen someone on chatGPT allucinations stating that a large chemical manufacturing plant could be automated fully by using PyLogix instead of OPC... the guy even wrote an academic paper but when told to implement it, bottled it and disappeared. LOL

It's a tool, and an amazing one at that, but relying on dmroeder to keep it alive past the wims of Rockwell isn't fair for him or the company having to live with it.
The OPC server has to use a driver also.
 
The OPC server has to use a driver also.
I'm fully aware of that too.

The paper was essentially written by AI on how to automate a plant with the lowest possible cost and the guy peppered in some notes to make it relevant to this site along with pricing that he knew nothing about.

I can't remember now what was the visualization technology that he was recommending but it was something out of support and he missed out important stuff like an historian, Cyber Security (he effectively said to put everything in the same network without firewalls to the business to "flatten the ISA-95 structure", SQL database and. more importantly a robust batch recipe system that could account for the fact that most vessels in that plant are shared.

When questioned on costs he ended up admitting that he made it all up and when I said that I'd be exceedingly happy to create a development environment for him to create a demo of this solution he sort of noped out and said that he only wrote the paper but someone else had to implement it.

The funny part is that if he knew his **** he could well have made a compeling argument for some technologies that I'd actually support a PoC if it didn't involve my own stretched resources... I'm not against AI writing code blocks either, but he clearly didn't understand much and was blagging his way with this site manager.

This is a guy well on his way to an MBA too... LOL
 
I'm fully aware of that too.

The paper was essentially written by AI on how to automate a plant with the lowest possible cost and the guy peppered in some notes to make it relevant to this site along with pricing that he knew nothing about.

I can't remember now what was the visualization technology that he was recommending but it was something out of support and he missed out important stuff like an historian, Cyber Security (he effectively said to put everything in the same network without firewalls to the business to "flatten the ISA-95 structure", SQL database and. more importantly a robust batch recipe system that could account for the fact that most vessels in that plant are shared.

When questioned on costs he ended up admitting that he made it all up and when I said that I'd be exceedingly happy to create a development environment for him to create a demo of this solution he sort of noped out and said that he only wrote the paper but someone else had to implement it.

The funny part is that if he knew his **** he could well have made a compeling argument for some technologies that I'd actually support a PoC if it didn't involve my own stretched resources... I'm not against AI writing code blocks either, but he clearly didn't understand much and was blagging his way with this site manager.

This is a guy well on his way to an MBA too... LOL
Sounds like a future Monitors Direct article.
 

Similar Topics

PLC is 5069-L310ERS2 HMI is 2711P-T10C21D8S Pylogix 1.0.3 Python 3.11 So I've got an issue using Pylogix to write to a string. If I create a test...
2
Replies
840
Views
Pylogix - Multi_Write Issue I am following the 'Multi_Write' example with Pylogix, but I encounter an unknown error 255 when attempting to write...
8
Replies
1,819
Views
Hello -- I downloaded (pip install pylogix) Pylogix so I could connect with the 5380 Compactguard Logix. I am also running Visual Studio 2022. I...
13
Replies
2,930
Views
Hey everyone, I am looking for a tool to parse PLC data and I believe pylogix may be the best approach. I am very new with python but can see its...
1
Replies
1,937
Views
Can I not access locally defined UDT data? Scope.. Task>Prog1>Parameters and Local Tags(Test1 = real)(UTD.Test2 = real) #To access the local...
10
Replies
3,152
Views
Top