Wincc Rest Api π Simple
headers = "Authorization": f"Bearer token" tag_url = "https://wincc-server:8081/api/dp/TankLevel" data = requests.get(tag_url, headers=headers, verify=False) print(f"Tank Level: data.json()['value'] data.json()['unit']")
The WinCC REST API is a powerful tool for bridging the gap between operational technology (OT) and modern IT systems. It allows external applications to interact with WinCC configuration and runtime data using standard HTTP methods and JSON Core Capabilities The REST interface is primarily used for: Data Access: wincc rest api
Letβs walk through common operations using curl (command line) and Python. wincc rest api
Below is a conceptual example using Python to read a tag value. This assumes you have the requests library installed ( pip install requests ). wincc rest api
