pylogix is a Python library for reading and writing Rockwell Automation Logix-based PLCs (ControlLogix, CompactLogix, MicroLogix, etc.) over Ethernet/IP. Current version is 1.1.5, released occasionally with bug fixes and minor enhancements.
pip install pylogixVerified import paths — ran on the pinned version, not inferred.
Basic read operation: initialize PLC, set IP, read a tag, and print the value.
Set comm.IPAddress immediately before calling Read/Write, or use 'with PLC() as comm:' which resets on exit.
Verify tag name in the PLC’s tag database; use the full path including program scope if needed.
Update to use 'from pylogix import PLC' and instantiate PLC() object, then call .Read() and .Write().
Use 'from pylogix import PLC' and then call plc.Read() instead.
Verify IP address, ensure PLC is on the same subnet, and check firewall settings. If using a ControlLogix, set comm.ProcessorSlot if not 0.
Use the exact tag path including program scope (e.g., 'Program:MainProgram.MyTag') and confirm case sensitivity.
No dependency data recorded yet.