| Crates.io | plcviz |
| lib.rs | plcviz |
| version | 0.3.3 |
| created_at | 2025-12-04 15:39:39.311277+00 |
| updated_at | 2025-12-16 09:48:46.146615+00 |
| description | PLC code visualization - graphs, dependencies, and documentation |
| homepage | https://github.com/radevgit/plc |
| repository | https://github.com/radevgit/plc |
| max_upload_size | |
| id | 1966626 |
| size | 89,433 |
PLC code visualization tool - generate SVG diagrams from L5X (Rockwell) and PLCopen XML (IEC 61131-3) files.
Download pre-built binaries from GitHub Releases:
Linux:
curl -L https://github.com/radevgit/plc/releases/download/plcviz-v0.3.2/plcviz-v0.3.2-x86_64-linux.tar.gz | tar xz
chmod +x plcviz
sudo mv plcviz /usr/local/bin/
Windows:
# Download from GitHub Releases and extract
# Add to PATH or run from current directory
.\plcviz.exe --version
Requires Rust 1.70+:
cargo install --path .
# Generate structure graph (default)
plcviz project.L5X > structure.svg
plcviz project.xml > structure.svg # PLCopen
# Generate call graph
plcviz -t call project.L5X > calls.svg
# Generate combined graph (structure + calls)
plcviz -t combined project.L5X > combined.svg
# DataType dependency graph (PLCopen only)
plcviz -t dataflow project.xml > datatypes.svg
# Include AOIs in the graph (L5X only)
plcviz -a project.L5X > with_aois.svg
# Generate example graph (no file needed)
plcviz example > example.svg
| Type | L5X Support | PLCopen Support | Description |
|---|---|---|---|
structure |
✅ | ✅ | Containment hierarchy (Programs/POUs) |
call |
✅ | ✅ | Function/FB call relationships |
dataflow |
⚠️ (example) | ✅ | Tag relationships / DataType dependencies |
combined |
✅ | ✅ | Structure + call edges |
plcviz automatically detects the file format:
<project xmlns="http://www.plcopen.org/xml/tc6...">MIT