Skip to content

Wincc Rest Api

that allows external applications to interact with SCADA data using standard HTTP methods and JSON. It serves as a modern bridge between industrial OT (Operational Technology) and IT environments, enabling AI agents, web dashboards, or custom applications to read and write tag values and configuration data. 1. Key Capabilities Data Access : Read and write both Runtime data (live tag values) and Configuration data (project setup). Standardized Methods

Create dedicated users in the WinCC User Administrator with "Web Access" permissions.

The response returns the tag value in JSON format, ready for processing in your application. wincc rest api

By exposing SCADA functions as standard URL endpoints, the WinCC REST API eliminates the need for specialized industrial drivers on the client side. Any programming language capable of sending HTTP requests (such as Python, JavaScript, C#, or Go) can seamlessly integrate with WinCC. Key Capabilities and Use Cases

// 构建JSON请求体,请求多个变量的值 var jsonBody = new variableNames = varNames.ToArray() ; request.AddJsonBody(jsonBody); that allows external applications to interact with SCADA

Before any external application can communicate with WinCC via REST, the service must be properly configured within the WinCC environment. The configuration process varies slightly depending on whether you're using WinCC Professional, WinCC Classic (V7.x), or WinCC Unified.

Furthermore, Siemens’ strategic direction is , which embraces modern web standards (JavaScript, WebSockets, OAuth2). The REST API in WinCC Professional feels like a bridge to help existing customers survive until their next migration. Key Capabilities Data Access : Read and write

Interaction with the WinCC REST API follows standard CRUD (Create, Read, Update, Delete) patterns using HTTP methods. Reading a Tag Value

完成配置后,便可编写代码与WinCC交互。以下以C#为例,展示如何读取WinCC变量值。