Tia Openness Control logo

Tia Openness Control

Community
huahaizo
tia-openness-control

Build, review, and run Siemens TIA Portal Openness automations that let any AI-assisted workflow control TIA Portal projects through the official Siemens.Engineering .NET API. Supports TIA Portal V15 through V21, including automatic installed-version detection. Use when the user asks to automate BoTu/TIA Portal operations, generate C# or PowerShell wrappers for Openness, open/create/modify/compile/export/import/archive TIA projects, inspect PLC/HMI/hardware objects, or design a safe AI-to-TIA command layer.

Overview

Publisherhuahaizo
Repositorytia-portal-openness-ai
Skill nametia-openness-control
Stars
81
Forks
11
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by huahaizo on GitHub. Read the source before you install it.

Installation

Install the Tia Openness Control AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/huahaizo/tia-portal-openness-ai/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huahaizo/tia-portal-openness-ai.git \
  .claude/skills/tia-openness-control
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tia Openness Control in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tia Openness Control on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tia Openness Control is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

TIA Openness Control

Mission

Use TIA Portal Openness as the execution boundary: any AI proposes structured actions, generated .NET code performs them through Siemens.Engineering, and every destructive or plant-impacting operation is explicit, logged, and reviewable.

Workflow

  1. Identify the project path and exact operation. Detect the installed TIA Portal version automatically when the user does not specify one.
  2. Confirm prerequisites: Windows host, TIA Portal V15 through V21 installed, user in the Siemens TIA Openness Windows group, Openness enabled, project backed up, and matching PublicAPI path. For first-time setup, instruct the user to add the Windows account to that group with administrator rights, then sign out and back in.
  3. Choose execution mode: WithUserInterface for exploratory/debug work, WithoutUserInterface for repeatable batch work.
  4. Generate or modify a C# .NET controller. Use scripts/new-openness-controller.ps1 to scaffold a starter controller when useful.
  5. Keep AI commands declarative, such as JSON/YAML action plans, and map them through a whitelist. Do not execute arbitrary prompt text as code.
  6. Run read-only or dry-run behavior first; then write only the requested target objects.
  7. Capture stdout, stderr, exit code, active project path, and log file path for every run.
  8. Verify results by reading the project back through Openness. Do not claim success from exit code, file timestamp, or "no exception" alone.
  9. Save or archive the project and report changed objects, warnings, and compile diagnostics.

Universal AI Interface

Keep this skill usable by any AI agent or automation runner:

  • Describe actions as plain JSON/YAML command documents.
  • Generate ordinary PowerShell, C#, .csproj, and CLI commands.
  • Avoid product-specific hidden state, proprietary prompt features, or assumptions about a single AI runtime.
  • Make every generated controller runnable by a human from a terminal.
  • Return machine-readable results when possible so another AI can continue from logs.

Example command document:

json
{
  "tiaVersion": "auto",
  "projectPath": "D:/Projects/Line1.ap20",
  "mode": "WithUserInterface",
  "dryRun": true,
  "actions": [
    { "type": "ListDevices" }
  ]
}

Version Support

Support TIA Portal V15, V15.1, V16, V17, V18, V19, V20, and V21.

When scaffolding a controller, prefer automatic detection:

powershell
powershell -ExecutionPolicy Bypass -File .\scripts\new-openness-controller.ps1 -OutputPath . -ProjectName TiaOpennessController

The script scans C:\Program Files\Siemens\Automation\Portal V*\PublicAPI\V* and selects the highest supported installed version. Use -TiaVersion V17 or -TiaVersion V15_1 only when the user explicitly wants a specific version.

Safety Rules

  • Never connect to a PLC, download to a device, change online state, or alter production hardware without explicit user approval.
  • Prefer offline project edits and generated source import/export.
  • Before writes, create a .zap archive or duplicate project folder when TIA Portal supports the workflow.
  • Pin Siemens.Engineering.dll to the detected or selected TIA Portal version; do not mix assemblies and runtime versions.
  • Set Siemens Engineering assembly references to Copy Local = false, or load them from PublicAPI at runtime.
  • Treat block names, device names, file paths, credentials, project libraries, and know-how protected content as user data.

First-Time Windows Group Setup

If the current Windows account is not in the Siemens TIA Openness group, tell the user to run an elevated PowerShell session and execute:

powershell
net localgroup "Siemens TIA Openness" "$env:USERNAME" /add

After adding the account, the user should sign out and sign in again, or restart Windows, before running Openness automation.

Common Tasks

  • Open, create, save, close, or archive a project.
  • Enumerate devices, PLC software, blocks, external sources, tag tables, HMI objects, and libraries.
  • Import/export PLC blocks, tag tables, libraries, and hardware descriptions as source/XML files.
  • Generate SCL/LAD/FBD source files, then import them through Openness.
  • Compile software or hardware and summarize diagnostics.
  • Start TIA Portal, use a visible UI session, or attach to an existing Openness process when the local version supports it.

Implementation Patterns

Read references/openness-patterns.md when generating C# code, planning an AI command schema, or troubleshooting assembly loading/version problems.

Critical assembly-loading rule: keep Main as a clean bootstrap that does not reference any Siemens.Engineering types. Register AssemblyResolve, preload Siemens.Engineering.dll, then call the real Openness logic in a separate [MethodImpl(MethodImplOptions.NoInlining)] method or class. If Main directly uses TiaPortal, TiaPortalMode, Project, or an Options property typed as TiaPortalMode, .NET Framework can throw FileNotFoundException before the resolver is registered.

When another AI or user reports FileNotFoundException at Program.Main, replace the generated controller with the current scaffold from scripts/new-openness-controller.ps1 before attempting feature work. Do not keep patching a controller whose Main directly references Siemens types.

For device creation tasks, require a read-back verification step such as ListDevices after saving and reopening the project. If the target order number, device type identifier, or catalog version is unknown for the installed TIA version, inspect/export an existing matching device or ask the user for the exact catalog item instead of guessing.

For Chinese users, read README.md when user-facing guidance is needed.

Use official Siemens documentation for exact version-specific APIs. Useful starting points:

Output Expectations

When helping a user, provide:

  • the exact command or C# project to run,
  • detected TIA Portal version, PublicAPI path, and project path,
  • the list of operations the automation will perform,
  • stdout, stderr, and exit code from the last automation run,
  • validation steps and expected diagnostics,
  • read-back evidence for created or modified objects,
  • any operation that still needs manual confirmation inside TIA Portal.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tia Openness Control AI skill do?

Build, review, and run Siemens TIA Portal Openness automations that let any AI-assisted workflow control TIA Portal projects through the official Siemens.Engineering .NET API. Supports TIA Portal V15 through V21, including automatic installed-version detection. Use when the user asks to automate BoTu/TIA Portal operations, generate C# or PowerShell wrappers for Openness, open/create/modify/compile/export/import/archive TIA projects, inspect PLC/HMI/hardware objects, or design a safe AI-to-TIA command layer.

Why use Tia Openness Control on TypingMind?

Because you install it once and use it with any model. Tia Openness Control is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tia Openness Control in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/huahaizo/tia-portal-openness-ai/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tia Openness Control?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tia Openness Control?

As many as you like. As long as a model supports skills, you can use Tia Openness Control with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tia Openness Control AI skill free?

It is published on GitHub by huahaizo. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇