How jvalenzuela/l5x works
l5x is a Python interface for reading and modifying RSLogix .L5X project files without requiring callers to manipulate raw XML. The main workflow is to construct a Project from a file, access controller, program, module, or tag data through Python objects, then write the modified project. Its domain surface includes typed tags (including arrays, structures, aliases, consumed tags, and message tags), controller communication settings, programs, and I/O modules. The excerpts show project parsing/writing, module access, tag access, and XML helpers; other tag details are documented in the README.
Main entry points: project.py Project API · tag.py Tag properties · dom.py XML helpers · module.py Module access
Components 15
Project files
- Project API
l5x/project.py - XML project tree
l5x/project.py
Project scopes
- Controller settings
l5x/project.py - Program scopes
l5x/project.py - Module access
l5x/module.py - Tag scopes
l5x/tag.py
Tag data
- Tag properties
l5x/tag.py - Scalar tags
l5x/tag.py - Structures
l5x/tag.py - Array tags
l5x/tag.py - Special tags
l5x/tag.py
XML support
- XML helpers
l5x/dom.py
Other components
- Python caller
- L5X input
- L5X output
Connections 17
- Python caller → Project API: opens project
README.rst - L5X input → Project API: reads file
README.rst - Project API → XML project tree: parses and serializes
l5x/project.py - Project API → Controller settings: creates
l5x/project.py - Project API → Program scopes: creates
l5x/project.py - Project API → Module access: creates
l5x/project.py - Project API → L5X output: writes project
README.rst - Controller settings → Tag scopes: exposes tags
README.rst - Program scopes → Tag scopes: exposes tags
README.rst - Tag scopes → Tag properties: returns tag
l5x/tag.py - Tag properties → Scalar tags: dispatches data
l5x/tag.py - Tag properties → Structures: dispatches data
l5x/tag.py - Tag properties → Array tags: supports indexing
README.rst - Tag properties → Special tags: supports variants
README.rst - Tag scopes → XML helpers: uses element maps
l5x/tag.py - Tag properties → XML helpers: uses XML helpers
l5x/tag.py - Module access → XML helpers: uses element maps
l5x/module.py