: Read and write both Runtime values (tags) and configuration data.
response = requests.post( write_url, auth=(username, password), json=payload, verify=False )
WinCC Unified is built from the ground up on modern web technologies (HTML5, SVG, JavaScript). Its REST API is native, deeply integrated, and designed for cloud connectivity. wincc rest api
wincc_host = "https://192.168.1.100" # IP of the WinCC Unified Server api_base = "/WinCCUnified/TagValue" tag_name = "Setpoint_Temperature" username = "API_User" password = "SecurePassword123"
Modern Automation and Industrial IoT: A Deep Dive into the WinCC REST API : Read and write both Runtime values (tags)
| Aspect | Recommendation | |--------|----------------| | | Always use HTTPS with a valid certificate (avoid self-signed in production). | | Authentication | Prefer token-based over basic auth; implement short token expiry. | | Network | Place WinCC server in a protected OT network; use a reverse proxy or VPN for external access. | | Permissions | Grant minimum necessary rights to REST API users (e.g., read-only if possible). | | Audit | Enable WinCC audit trail to log API writes. | | Rate limiting | WinCC does not enforce by default – implement at client or firewall level to avoid overload. |
The era of locked-in SCADA data is ending. With REST APIs, your WinCC system becomes a first-class citizen in the connected enterprise. wincc_host = "https://192
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
, WinCC now automatically fetches local humidity data from an external API every hour to adjust the bottle labeling glue’s temperature. The Result
if (response.IsSuccessful)
# Configuration url = "https://wincc-server:443/api/v1/tags/Pump_Setpoint" user = "WinCCOperator" password = "SecurePassword123"