curl -X POST https://192.168.1.100:5001/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '"username":"operator","password":"secret"' \
  -k   # ignore self-signed certificate for testing

Response:

"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

The classic WinCC (V7) traditionally lacked a native REST API. However, users often bridge this gap using:

For this article, the primary focus will be on WinCC OA and WinCC Professional (TIA Portal V17+) , as they represent the future.

During FAT (Factory Acceptance Test), a Python script uses the REST API to inject values into WinCC, simulate faults, and verify HMI reactions—all without touching the operator panel.


This is the most mature implementation. WinCC OA is a high-end, open, and scalable SCADA system often used in railways, power grids, and building automation. It includes a fully documented HTTP/HTTPS REST API as a core component.

The WinCC REST API is not a gimmick; it is a strategic enabler for Industry 4.0. By leveraging standard HTTP and JSON, your Siemens SCADA system can seamlessly feed data into cloud platforms (AWS, Azure, Google Cloud), modern databases (InfluxDB, TimescaleDB), and web frameworks (React, Vue, Angular).

Key Takeaways:

Whether you are building a custom analytics dashboard, integrating with SAP, or simply giving your shift supervisors a mobile view of the line, the WinCC REST API empowers you to break the proprietary chains of legacy automation.

Next Steps:

The era of locked-in SCADA data is ending. With the WinCC REST API, your data is finally free to flow where it adds the most value.

To retrieve a "dp" (datapoint) value: GET http://wincc-oa-server:80/dp_values?dp=MySystem.AI1&dp=MySystem.AI2

The response:

[
  "dp": "MySystem.AI1", "value": 76.3, "timestamp": "2025-03-09T13:45:21Z",
  "dp": "MySystem.AI2", "value": 45.0, "timestamp": "2025-03-09T13:45:21Z"
]
2.5K
0
Оставьте комментарий! Напишите, что думаете по поводу статьи.x