Guide · Updated
How do I analyse an inherited TIA Portal project fast?
Export the project once to SIMATIC ML, scan the export into TIATool’s offline cache, then ask your AI assistant questions. Who writes or reads a tag, what a block calls, which blocks nothing calls, full-text search, diffs, audits and documentation then answer from the cache in seconds, with TIA Portal closed.
Export, scan, query
Export once
Openness opens the project without the TIA Portal window and writes one SIMATIC ML file per block, tag table, type, watch table and external source. The export only reads: the project is not compiled, and blocks TIA Portal considers inconsistent are skipped and listed. Plan about 40 to 90 seconds, more for a large project.
PowerShell (for a V21 project: tiax-v21 export) tiax export "C:\TIA\Line3\Line3.ap19" "C:\TIA\Line3\exports"Tools: export_project
Scan into the cache
The scan turns the export into a
.tiaxcache beside it: an inventory with a fidelity roll-up, a compact index and a full record per block. No TIA Portal is involved, and a repeat scan reuses unchanged files.PowerShell tiax scan "C:\TIA\Line3\exports"Tools: refresh_scan
Ask
From here on TIA Portal can stay closed. Ask your assistant in plain words, or query from the command line.
PowerShell tiax query writes Conveyor_01_Running --tiax "C:\TIA\Line3\.tiax"Ask your assistant: Who writes Conveyor_01_Running, and in which network?
Tools: who_writes_tag
In your AI client the whole pipeline is one request: “Export C:\TIA\Line3\Line3.ap19, scan it, and tell me who writes Conveyor_01_Running.”
The first questions to ask
What is in it, and how much is readable?
- MCP tool
project_stats- Command line
tiax query stats
Who writes this tag?
- MCP tool
who_writes_tag- Command line
tiax query writes <symbol>
Who reads it?
- MCP tool
who_reads_tag- Command line
tiax query reads <symbol>
What does this block call?
- MCP tool
what_block_calls- Command line
tiax query calls <block>
Who calls this block?
- MCP tool
who_calls- Command line
tiax query callers <block>
Which blocks does no OB reach?
- MCP tool
unreachable_blocks- Command line
tiax query unreachable
Where is a name used, in PLC and HMI?
- MCP tool
search_project- Command line
tiax query search <text>
Where does a PLC tag appear on the HMI?
- MCP tool
where_is_tag_used_on_hmi- Command line
tiax query hmi-uses <symbol>
| Question | MCP tool | Command line |
|---|---|---|
| What is in it, and how much is readable? | project_stats | tiax query stats |
| Who writes this tag? | who_writes_tag | tiax query writes <symbol> |
| Who reads it? | who_reads_tag | tiax query reads <symbol> |
| What does this block call? | what_block_calls | tiax query calls <block> |
| Who calls this block? | who_calls | tiax query callers <block> |
| Which blocks does no OB reach? | unreachable_blocks | tiax query unreachable |
| Where is a name used, in PLC and HMI? | search_project | tiax query search <text> |
| Where does a PLC tag appear on the HMI? | where_is_tag_used_on_hmi | tiax query hmi-uses <symbol> |
Start every session with project_stats: its fidelity roll-up says how much of the project is actually readable before you rely on an answer. The call graph comes from the call information in the export, not from matching names.
Read the logic, block by block
get_block returns one block in full: the interface tree, each network as SCL, its calls and its read/write edges. SCL and STL come through as source text. LAD and FBD are reconstructed from the wire graph, so check the fidelity field before you treat a rendering as source; a network that could not be rendered completely is flagged lossy.
Ask your assistant: Explain FB_Conveyor in plain words: inputs, outputs, and what happens on a fault.
Tools: get_block
Ask your assistant: Which blocks does Main call, and which blocks are never called?
Tools: what_block_calls · unreachable_blocks
Let the assistant explain a block, then confirm any interlock in the LAD or FBD editor of TIA Portal.
Audit, compare and document
- Audit:
audit_projectlists multiple writers, members declared but never written or written but never read, unwired FB inputs, POKE, PEEK and BLKMOV with literal offsets, retain in volatile DBs, external HMI tags with no PLC match and lossy renderings. Each finding points at a block and network, andfinding_verdictrecords your verdict across re-audits. - Diff:
project_diffcompares two scans, for example the last release against today: blocks and HMI artifacts added, removed and changed, with interface, network, call and tag changes. - Docs:
export_docswrites the block catalogue, interface tables, calls and called-by, tag tables with addresses and the HMI screen inventory as Markdown, print-ready HTML or PDF.
tiax report builds explorer.html, one self-contained file with search, block browser, call graph and tag tracking, plus a Markdown set with Mermaid diagrams for hand-over:
tiax report --tiax "C:\TIA\Line3\.tiax" --out "C:\TIA\Line3\report" --openA question the fixed tools do not cover goes to cache_query: JavaScript over the cache, still offline. This one lists every FB that writes more than 20 symbols:
tia.edges({ type: 'FB' })
.filter(b => b.writes.length > 20)
.map(b => ({ name: b.name, writes: b.writes.length }))What the cache cannot see
- It is a snapshot. Answers say when the cache is older than the exports; export and scan again after changes in TIA Portal.
- STL and GRAPH bodies record no read/write edges, so who-writes answers do not include them.
- HMI-to-PLC links are matched by name, because the export does not carry the link: treat those hits as leads, not wiring.
- Know-how-protected blocks, ProDiag and some system blocks cannot be exported; the export lists them in its failure ledger.
- Version and path: the project must match an installed Openness version, V19 or V21, and TIATool never upgrades it. Keep the project folder path at 143 characters or fewer, for example
C:\.TIA\ Line3
Frequently asked questions
Does TIA Portal have to be running?
No. The export needs TIA Portal installed, and Openness opens the project without the TIA Portal window. Scan, queries, diff, audit and docs then run with TIA Portal closed. If the project is open in TIA Portal, export_project with attach=true reads through that window instead.
Will exporting change the project?
No. The export only reads by default; the project is not compiled. Only compile=true compiles first, and that modifies the project, so use it on a copy if the delivered project must stay byte-identical.
How long does the analysis take?
The export takes about 40 to 90 seconds, more for a large project. The scan takes seconds, and every question after that answers from the local cache.
Can it read LAD, FBD, STL and GRAPH?
LAD and FBD come back as SCL renderings, flagged when lossy; SCL and STL come through as source text. STL and GRAPH bodies record no read/write edges, so who-writes answers do not include them.
Can I hand the analysis to a colleague without TIATool?
Yes. export_docs writes Markdown, print-ready HTML or PDF, and tiax report builds explorer.html, one self-contained file: double-click to open, no server, no internet.
Does the analysis leave my PC?
The exports, cache and reports stay next to your project, and TIATool sends no telemetry. What your AI assistant reads through the tools goes to its provider under that provider’s terms; with a local model nothing leaves the PC.
More guides
- Claude and TIA PortalHow do I use Claude with Siemens TIA Portal?
- AI-written SCLCan AI write SCL for S7-1500 safely?
- MCP server for TIA PortalWhat is an MCP server for TIA Portal?
- Cursor and VS CodeCan I use Cursor or VS Code with TIA Portal?
- Openness and AIHow does AI automate TIA Portal Openness?
Reference
- Get started: install, connect your AI app and run a first session
- MCP tool reference: every tool with its arguments, effect and status
- Capability matrix: what is proven, with evidence and limits
- FAQ: install, licensing, data and TIA Portal versions
- Install in three steps
- Pricing: monthly or yearly, every tool included
- Security and data flow: who sees what, and the threat model
- How TIATool compares with other ways to use AI in TIA Portal
Try it on your own project.
All 75 tools and every update, running on your engineering PC. After the trial a seat is €99.99 a month or €999.99 a year, one PC per seat.
Every plan starts with a 3-day free trial. A card is required at checkout; cancel in your account before the trial ends and nothing is charged.