tia-pythonlisted
Install: claude install-skill Czarnak/totally-integrated-claude
# TIA Scripting Python – Skill
Library: `siemens_tia_scripting` (v1.1.0)
Requires: Python 3.12.x, TIA Portal V15.1+, TIA Portal Openness V15.1+
---
## Installation
Do not use `pip install siemens_tia_scripting` or `pip install siemens-tia-scripting`
from PyPI. Download TIA Scripting Python from Siemens Industry Online Support,
unzip it, then choose one Siemens-supported setup path:
- **File import:** set the `TIA_SCRIPTING` environment variable to the extracted
`binaries` directory and append it to `sys.path`.
- **Wheel install:** navigate to the extracted `binaries` directory and install
the matching wheel file, for example:
```powershell
cd C:\Path\To\Your\TIA_Scripting_Python\binaries
py -3.12 -m pip install .\siemens_tia_scripting-x.x.x-cp312-cp312-win_amd64.whl
```
Replace `x.x.x` with the version in the downloaded wheel filename.
---
## Setup Boilerplate
```python
import os
import sys
# Option A – environment variable (file import method)
sys.path.append(os.getenv('TIA_SCRIPTING'))
import siemens_tia_scripting as ts
# Option B – installed as pip package
import siemens_tia_scripting as ts
```
---
## Object Hierarchy
```
siemens_tia_scripting (Global functions)
└── Portal
└── Project
├── Plc
│ ├── ProgramBlock / SystemBlock
│ ├── PlcTagTable → PlcTag / UserConstant
│ ├── UserDataType
│ ├── ExternalSource
│ ├── ForceTable / WatchTable
│ ├── TechnologyObject
│ ├── Software