Siemens WinCC Unified Custom Web Control Template #168506
Unanswered
antsals
asked this question in
Copilot Conversations
Replies: 3 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Use well-commented templates and consistent file structures to help Copilot learn and generate valid Siemens WinCC Unified custom web controls. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Example{
// Unique identifier for the control — must remain stable once released
"identity": {
"name": "GaugeMeter",
"version": "1.0.0",
"displayname": "Gauge Meter",
"icon": "./assets/logo.png",
"type": "guid://551BF148-2F0D-4293-99C2-C9C3A1A6A073",
"start": "./control/index.html"
},
// Optional runtime constraints and environment info
"environment": {
"prerequisites": {
"renderingspace": {
"minwidth": 150,
"minheight": 100,
"unit": "px"
}
},
"extensions": {
"HMI": {
"mandatory": true,
"version": "~1.0.0"
}
}
},
// Non-functional descriptive metadata
"metadata": {
"author": "Your Name",
"keywords": ["gauge", "visualization"],
"description": "A gauge to display a numeric tag value.",
"homepage": "https://your-repo.example.com",
"company": "Your Company"
},
// Interface contract with WinCC Unified
"contracts": {
"properties": {
"GaugeValue": {
"type": "number",
"default": 0,
"description": "Current gauge value to display."
},
"MinValue": {
"type": "number",
"default": 0,
"description": "Minimum gauge value."
},
"MaxValue": {
"type": "number",
"default": 100,
"description": "Maximum gauge value."
}
},
"events": {
"ValueChanged": {
"arguments": {
"newValue": { "type": "number" }
},
"description": "Fired when the gauge value changes."
}
},
"methods": {
"ResetGauge": {
"description": "Reset the gauge to default state.",
"parameters": {},
"return": "null"
}
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
Copilot Coding Agent
Body
I have a pretty basic knowledge of coding, but been really successful with copilot.
I have been creating widgets for an industrial automation system called Siemens WinCC Unified. It has the ability to import Custom Web Controls, but need to be in a specific structure and have specific elements in the files. Is there a way to get copilot to learn this structure and use the templates, as I get loads of errors at the moment when importing into Siemens TIA portal.
The Siemens info is:
https://support.industry.siemens.com/cs/document/109779176/integrating-user-defined-controls-into-wincc-unified-(custom-web-controls)?dti=0&lc=en-GB
Appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions