| name | siemens-tia-portal-integrator |
| description | Orchestrate data-driven Siemens TIA Portal workflows: read structured data from CSV/Excel files, generate STL/AWL code via the siemens-awl-stl-programmer skill, and apply changes to a live TIA Portal project. Trigger when the user asks to import, generate, sync, or batch-apply PLC blocks, tags, devices, or data blocks from a spreadsheet or CSV source ā or to export existing TIA Portal project data into a file.
|
| metadata | {"version":"1.1"} |
Siemens TIA Portal Integrator Skill
Overview
This skill bridges three layers:
| Layer | Purpose |
|---|
| File I/O | Read/write CSV and Excel source files |
| Code Generation | Produce compilable STL/AWL source via siemens-awl-stl-programmer skill |
| Project Automation | Apply changes to a live TIA Portal project |
Prerequisite: This skill requires TIA Portal automation capability (e.g., TIA Portal Openness API or MCP server). The agent is responsible for discovering and using the appropriate tools for its environment.
Always invoke the siemens-awl-stl-programmer skill when the workflow involves generating or modifying STL/AWL block source. Validate data completely before applying any changes to the project.
Skill Map
siemens-tia-portal-integrator/
ā
āāā SKILL.md ā you are here (index + quick-reference)
ā
āāā references/
ā āāā scripts/ ā Helper scripts for file I/O and validation
ā ā āāā read_csv.md
ā ā āāā read_excel.md
ā ā āāā list_sheets.md
ā ā āāā validate_columns.md
ā ā āāā write_excel_summary.md
ā āāā patterns/ ā Workflow patterns
ā ā āāā import-tags-csv.md ā Pattern A: Import tags from CSV/Excel
ā ā āāā import-devices-excel.md ā Pattern B: Import devices from Excel
ā ā āāā generate-blocks-excel.md ā Pattern C: Generate blocks from Excel spec
ā ā āāā export-blocks-excel.md ā Pattern D: Export blocks to Excel
ā āāā examples/ ā Full conversation examples
ā āāā example-tag-import.md
ā āāā example-device-import.md
ā āāā example-block-generation.md
ā āāā example-block-export.md
Validation Rules
Apply these rules before creating any data in TIA Portal:
Tag names
- Max 24 characters; first character must be a letter or underscore
- Allowed: letters, digits, underscore ā no spaces or special characters
Data types
Bool Byte Word DWord Int DInt Real LReal Time Char String
- Capitalisation is exact ā use these spellings
Logical addresses
- Inputs:
%I<byte>.<bit> or %IW<byte>
- Outputs:
%Q<byte>.<bit> or %QW<byte>
- Memory:
%M<byte>.<bit> or %MW<byte> or %MD<byte>
Order numbers
- Example:
6ES7 516-3AN02-0AB0
- Pattern:
[Family 4 chars][Space][Article]-[SubArticle]-[Variant]
Block names
- Max 24 characters; no special characters except underscore; unique within the device
Workflow Patterns
Choose the pattern that matches the user's request:
General Workflow Checklist
For any import/generate workflow, follow this sequence:
General Best Practices
- Verify session first ā confirm TIA Portal is accessible before any write operation.
- Validate before writing ā run column validation and catalog checks before creating any data.
- Ask on ambiguity ā if a requirement or target (device, sheet, table, mapping, action) is unclear or missing, ask the user before proceeding; do not assume.
- One operation per item ā process items individually; no bulk payloads.
- Save after each batch ā save the project after every successful write batch.
- Compile after block changes ā compile software after uploading block sources.
- Delegate code generation ā never write AWL inline; invoke
siemens-awl-stl-programmer skill.
- Continue on single failures ā collect all failures and report at the end, do not abort early.