Python - Controllogix - Integration

Join Date
Dec 2019
Location
Webster
Posts
4
Hilo everyone.

We use a lot of 1734 hardware.

Routine task is checking port statistics.

This takes awhile and is tedious.

Is it possible to get this data via python?

Also does anyone know of good resources of for working with rs logix using python?

Thanks guys.
 
Duplex, speed, and the media counters.

temp.png
 
I'd think GSV with correct syntax would do it. But since you ask for using Python, why not do an http request and extract the info from the its response. Or you can use open socket to port 80, and use GET / and extract the info
 
You're not going to find any Python scripting of RS 5000 that I know of
I'd think GSV with correct syntax would do it. But since you ask for using Python, why not do an http request and extract the info from the its response. Or you can use open socket to port 80, and use GET / and extract the info
What is GSV?




but yeah just scraping the http page would probably be the easiest.


you could also use https://github.com/pjkundert/cpppo if that stuff is available from the Ethernet CIP interface, But http is probably the better approach.
 
You're not going to find any Python scripting of RS 5000 that I know of

What is GSV?
Dustin (dmroeder) has developed a python script to read a Control/Compact Logix, he's posted it here before. Others exist as well.

You could probably have the PLC read the port statistics by using a GSV instruction and then use Dustin's pylogix (or another such tool) to read it from the PLC. Of course, once you've read it into the PLC, that may not be necessary any more - or else there may be a way to bypass the PLC and do it directly with python as well as BachPhi suggests
 
Thanks guys for taking the time to help me, it's much appreciated.

Web scraping would be easy for me, but was wondering if there's a better way to do it.

I looked through some documents for GSVs and dont see values for port stats.

Are there GSVs for ethernet statistics?
 

Similar Topics

Read and write the Tags direct using pycomm3 and LogixDriver. Just in case anybody wanted to know. Here's a sample: from pycomm3 import...
Replies
0
Views
791
Hello Guys, I want to establish profinet communication between siemens plc and my system using python programming. Which python lib can i use to...
Replies
12
Views
303
Hi! I'm trying to communicate with an old Kinetix 300 drive that is fully functioning. Is there any library I can use to monitor this drive with...
Replies
0
Views
421
Hi! I'm trying to communicate with an old Kinetix 300 drive that is fully functioning. Is there any library I can use to monitor this drive with...
Replies
0
Views
477
I have previously shared this elsewhere, so I apologize if you have already seen it. Here is a basic and quick introduction to Python for PLCs...
Replies
10
Views
2,234
Back
Top Bottom