Creado con el generador IA de HMIx
Este recurso se ha creado con IA en ai.hmix.tech. Describe lo que necesitas y genera tus propios controles HMI en minutos — gratis.
WinCC Unified Runtime Script
When the button is pressed, the lamp in the screen window is made visible. If it cannot be found, the trace says which name in the path is missing.
Minimum version: WinCC Unified V16 and later.
What starts it and where it goes
When the operator presses the button Btn_ShowRunLamp.
In the Tapped event of the button Btn_ShowRunLamp.
How it works
- Names the lamp to look for. The path to Lamp_Run inside 'Screen window_1' is kept in one constant.
- Prepares a safe way to find objects. It picks where the search starts and returns nothing instead of an error when the object is missing.
- Shows the lamp when it is found. If Lamp_Run is found, it is made visible and the script ends.
- Finds where the path breaks. It tries the path one name at a time and traces the first name that does not exist.
- Reports a general failure. If every part was found but the whole path still failed, it only traces that.
Values you adapt
- Path to the lamp: Where the lamp is, written from this screen: screen window name, a slash, the object name. (in the script: ./Screen window_1/Lamp_Run)
Minimum version
Minimum version: WinCC Unified V16. It runs on WinCC Unified V16 and every later version.
- Trace: From V16 (Siemens' V16 system manual)
In the package
- The script, with a header that says where it goes and which values to adapt.
- Its documentation as PDF and as an editable ODT: purpose, example, the TIA Portal steps, the script part by part.
- A README with the same in one page.
⚠️ AI-Generated: This script was written with AI and checked against Siemens' documentation, not on a device. Test it on your own HMI before using it in production.
Compartir este recurso:
Versión:v2
Última actualización:4 dic 2026
Publicado:4 dic 2026
Diseño:SIEMENS - SIMATIC
Etiquetas:
Reseñas del producto (0)
Preguntas y respuestas (0)
También te puede interesar
Gratis