Premium Only Content
Using Python To Read PLC Data With Visual Studio By Importing Pycomm3
Reading Controllogix data from the plc has now moved into a much simpler form with Python 3 by importing Pycomm3 or PyLogix.
Before Windows disabled the DDE (Dynamic Data Exchange), we could right simple DDE code to read & write data with the plc processor.
DDE was deemed a security risk so using excel for this task is no longer a good resource moving forward so this is where Python is the tool of choice. Which is the exact reason why I spent time learning to use python & from digging into things like Github, I found two simple imports to use.
Pycomm3 or PyLogix
Here is a link to PyComm3:
Doc: https://docs.pycomm3.dev/en/latest/
GitHub: https://github.com/ottowayi/pycomm3
With the growth of open source code, things may be a lot better in the coming future than I show in this video, what I am trying to show in this video is a simple way to communicate by another resource.
Use cases are all different so as I find good use cases then I may show more videos on this, with that said if this video is received well & everyone wants to know more.
The examples in this video are simple & are meant to be to give a clear understanding of a tool we can use. The resources provided have much greater information if you are interested.
I have no affiliation with Github nor the person who developed Pucomm3 or Pylogix, I just think these are helpful tools that we all have an opportunity to use & grow from.
0:00 Quick Intro
1:05 Importing Pycomm3 in Visual Studio
1:55 Python 3 code to read PLC data via IP address
3:10 Testing the Python code to read PLC data
3:35 Other elements of Pycomm3
5:30 Using Pylogix in Visual Studio
5:50 Importing Pylogix
6:20 Writing the Pylogix code example
7:50 Creating a new tag in our PLC for testing
9:45 Testing the Pylogix read
14:05 Recommended videos for you
I hope it helped.
Thank you for watching the video.
Learn, Implement, Succeed
If you are interested in getting serious about your knowledge & learning how to better your career then check out our training center.
Visit:
https://www.allen-bradley-plc-training.com/
Other social media:
LinkedIn: https://www.linkedin.com/in/shane-welcher-sr/
Facebook: https://www.facebook.com/OnlinePLCSupport
#Python #Pylogix #Pycomm3 #Studio5000
-
3:59
Shane Welcher
1 year agoStudio 5000 Download Failed - Communications Timed Out
41 -
1:00:03
Candace Show Podcast
5 hours agoWOAH! Daily Wire CEO Shares HARSH Feelings About Brett Cooper | Candace Ep 138
109K151 -
LIVE
Edge of Wonder
3 hours agoStrange Egg UFO Found in Antarctica: Real or AI Images?
417 watching -
LIVE
Dr Disrespect
9 hours ago🔴LIVE - DR DISRESPECT - TRIPLE THREAT CHALLENGE - NOBODY STOPS US
1,818 watching -
54:59
LFA TV
8 hours agoWhy Do Migrant Criminals Love Obama So Much? | TRUMPET DAILY 1.24.25 7pm
4.02K4 -
LIVE
2 MIKES LIVE
2 hours ago2 MIKES LIVE #171 Open Mike Friday!
437 watching -
LIVE
Quite Frankly
7 hours ago"Fugitives No More, JFK Declass, Stargate vs MAHA" ft Matt & J Gulinello 1/24/25
1,243 watching -
23:15
The Based Mother
2 hours agoPRONOUNS ON MY NAMETAG? NOPE! How I responded when these folks tried to shove this down my throat.
3.61K2 -
1:54:45
Twins Pod
6 hours agoMAGA P***star is HATED By Conservatives AND Leftists... | Twins Pod - Episode 49 - Brandi Love
49.7K46 -
15:45
inspirePlay
3 hours ago $0.13 earnedLong Drive Showdown: Martin Borgmeier vs. 3 of the World’s Longest Female Golfers at 8,000+ Yards!
6.48K3