plcviz
PLC code visualization tool - generate SVG diagrams from L5X files.
Example Output
Features
- Structure graphs: Program → Routine containment hierarchy
- Call graphs: JSR (Jump to Subroutine) relationships between routines
- Combined graphs: Structure + call edges together
- Multiple export types: Controller, Program, and AOI exports
Installation
Usage
# Generate structure graph (default)
# Generate call graph
# Generate combined graph (structure + calls)
# Include AOIs in the graph
# Generate example graph (no L5X file needed)
Graph Types
| Type | Description |
|---|---|
structure |
Containment hierarchy (Programs → Routines) |
call |
JSR calls between routines |
dataflow |
Tag read/write relationships (example only) |
combined |
Structure + call edges |
Supported L5X Export Types
- Controller: Full project exports (multiple programs)
- Program: Single program exports
- AddOnInstructionDefinition: AOI exports with internal routines
License
MIT