Skip to content

ReddyControls/-Rockwell-PLC-Downtime-Logger-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

-Rockwell-PLC-Downtime-Logger-using-Python

πŸ“‰ Rockwell PLC Downtime Logger using Python

This project lets you monitor a Machine_stopped tag from a Rockwell CompactLogix or ControlLogix PLC and log each downtime event to a CSV file β€” using Python and the pylogix library.

βœ… No SCADA required
βœ… CSV-based logging
βœ… Works on Python 3.13


πŸš€ Features

  • Connects to a Rockwell PLC (CompactLogix/ControlLogix)
  • Monitors a BOOL tag (Machine_stopped)
  • Logs stop events with timestamp, tag name, and status
  • Runs on any Python 3.13 environment (PyCharm, terminal, etc.)

πŸ“ File List

File Description
monitor_log.py Main script to monitor and log PLC tag
sample_log.csv Sample output of the logging format
README.md This file
LICENSE Open source MIT license

πŸ› οΈ Requirements

  • Python 3.13
  • pylogix (pip install pylogix)
  • Rockwell PLC on the same network
  • BOOL tag named Machine_stopped

πŸ”§ Setup

  1. Install dependencies:
pip install pylogix

About

Log machine downtime events from a Rockwell PLC using Python and pylogix.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages