Siemens PLC API

Automate your Siemens PLCs.

T-IA Connect exposes a complete REST API to control your TIA Portal projects and S7-1200/1500 PLCs. Program creation, tag management, download/upload to PLC.

Supported PLCs

Compatible with the entire S7 range

T-IA Connect works with all Siemens programmable controllers accessible via TIA Portal.

S7-1200

Compact controllers for small and medium machines. CPU 1211C, 1212C, 1214C, 1215C, 1217C.

S7-1500

High-performance controllers for complex applications. CPU 1511, 1513, 1515, 1516, 1517, 1518.

S7-1500 Safety

Safety controllers F-CPU for SIL applications. F-block and Safety program management.

ET 200SP

Distributed IO systems with integrated CPU. Configuration and programming via API.

Features

Everything you can automate

T-IA Connect exposes all TIA Portal features for PLC programming and management.

Program Blocks

Create, modify, export OB, FC, FB, DB. Support SCL, LAD, FBD. Version management.

Tag Tables

Create and manage API variables. CSV import/export, search, bulk modification.

Hardware Configuration

List modules, configure IO addresses, manage Profinet/Profibus networks.

Download/Upload

Download program to PLC. Upload from PLC. Online/offline comparison.

Compilation

Compile project, check errors, generate diagnostics before download.

Go Online

Establish online connection with PLC for monitoring and diagnostics.

Workflow

Example automated workflow

A complete example of creating and deploying a PLC program via the API.

Bash / cURL
# 1. Open TIA Portal project
curl -X POST http://localhost:5000/api/projects/open \
  -d '{"path": "C:/Projects/Machine01.ap18"}'

# 2. Create a new FC block
curl -X POST http://localhost:5000/api/blocks \
  -d '{"name": "FC_MotorControl", "type": "FC", "language": "SCL"}'

# 3. Add tags
curl -X POST http://localhost:5000/api/tags \
  -d '{"name": "Motor_Speed", "dataType": "Int", "address": "MW100"}'

# 4. Compile project
curl -X POST http://localhost:5000/api/projects/compile

# 5. Download to PLC
curl -X POST http://localhost:5000/api/devices/PLC_1/download
Use Cases

Industrial Applications

Code Generation

Automatically generate PLC blocks from templates or machine configuration data.

Industrial CI/CD

Integrate PLC compilation and deployment into your DevOps pipelines.

Commissioning

Automate controller configuration and parameterization during commissioning.

Maintenance

Backup scripts, version comparison, mass deployment of updates.

Ready to automate your Siemens PLCs?

Discover how T-IA Connect can transform your PLC programming workflow.