API REST Nativa

L'API REST che TIA Portal meritava.

TIA Portal non ha un'API REST nativa. T-IA Connect colma questo vuoto esponendo tutte le funzionalità tramite endpoint HTTP standard. Integra TIA Portal in qualsiasi stack tecnologico.

Perché REST ?

HTTP è lo standard universale

REST è il protocollo API più utilizzato al mondo. Ogni linguaggio, framework e strumento lo supporta nativamente.

Universale

Python, JavaScript, Java, Go, Rust... Qualsiasi linguaggio può effettuare chiamate HTTP. Nessun SDK proprietario.

Stateless

Ogni richiesta è indipendente. Ideale per scaling, load balancing e architetture a microservizi.

Cacheable

Le risposte possono essere messe in cache. Performance ottimali per letture frequenti.

Standard

Verbi HTTP (GET, POST, PUT, DELETE), codici di stato, header... Tutto è standardizzato e documentato.

Endpoint

API completa per TIA Portal

T-IA Connect espone decine di endpoint che coprono tutte le funzionalità di TIA Portal.

Progetti

Crea, apri, salva, archivia e compila progetti TIA Portal.

GET /projects, POST /projects, PUT /projects/:id/compile

Blocchi

Gestisci i blocchi FC, FB, OB, DB. Import/export SCL, LAD, FBD.

GET /blocks, POST /blocks, GET /blocks/:id/source

Tag

Crea, leggi, modifica le tabelle delle variabili (Tag) e variabili PLC.

GET /tags, POST /tags, PUT /tags/:id

Dispositivi

Elenca le CPU, i moduli, le reti. Configurazione hardware.

GET /devices, GET /devices/:id/modules

Online

Download, upload, confronto online/offline, vai online.

POST /devices/:id/download, POST /devices/:id/upload

HMI

Pagine, tag, allarmi per pannelli Siemens e Unified.

GET /hmi/screens, POST /hmi/tags
Esempio

Semplice come una chiamata HTTP

Creare un blocco FC in SCL with T-IA Connect.

cURL
# Create a new FC block
curl -X POST http://localhost:5000/api/blocks \
  -H "Content-Type: application/json" \
  -d '{
    "name": "FC_CalculateSpeed",
    "type": "FC",
    "language": "SCL",
    "comment": "Motor speed calculation"
  }'

# Response
{
  "id": "fc-12345",
  "name": "FC_CalculateSpeed",
  "type": "FC",
  "number": 42,
  "language": "SCL",
  "created": "2026-01-25T10:30:00Z"
}
Integrazioni

Si integra con i tuoi strumenti

Pipeline CI/CD

Jenkins, GitLab CI, GitHub Actions, Azure DevOps... Automatizza i tuoi build in TIA Portal.

Script & Automazione

Python, PowerShell, Bash... Automatizza i tuoi task ripetitivi in poche righe.

Applicazioni aziendali

MES, ERP, SCADA... Integra TIA Portal nel tuo ecosistema industriale.

Monitoring & Log

Elasticsearch, Grafana, Datadog... Monitora le tue operazioni in TIA Portal.

Scopri l'API REST per TIA Portal

Prova tutti gli endpoint nella nostra documentazione interattiva Swagger.