Master WinCC Unified JavaScript Tags: Optimize Your SCADA Development

Bobby Jul 13, 2026

WinCC Unified's JavaScript tags, often referred to as 'JSet' tags, play a pivotal role in extending functionality and interaction in a WinCC Unified project. These tags, despite their simplicity, unlock a world of customization and automation. Let's delve into the realm of WinCC Unified's JavaScript tags and explore their significance, usage, and vigorous benefits.

the different types of html tags are shown in this screenshote screen graber
the different types of html tags are shown in this screenshote screen graber

The primary allure of JavaScript tags in WinCC Unified lies in their ability to allow developers to write custom scripts directly within the project. This enables users to integrate intricate functionality seamlessly into the application, thus creating a richer, more intuitive user experience.

The JavaScript Cheat Sheet Every Beginner Wishes They Had
The JavaScript Cheat Sheet Every Beginner Wishes They Had

Understanding JavaScript Tags in WinCC Unified

At their core, JavaScript tags in WinCC Unified are essentially template tags that serve as placeholders for custom JavaScript code. They are not just about facilitating custom scripting; they also make it easier to manage and update scripts.

Marry Christmas flip card Tutorials
Marry Christmas flip card Tutorials

These tags support a variety of attributes, allowing developers to target specific elements, apply conditions, and control the flow of execution. Furthermore, they promote code reuse and make maintenance more efficient, a boon for larger, more complex projects.

Basic Syntax and Placement

JavaScript Template Literals: Write Cleaner & Dynamic Strings 📝
JavaScript Template Literals: Write Cleaner & Dynamic Strings 📝

JSet tags follow a simple and consistent syntax. They start with an opening bracket and 'JSET', followed by the tag type, and attributes enclosed in quotes. The structure looks like this: <JSET type="attribute">.

Placement of these tags is critical too. They are usually positioned within `< $_code >` tags, serving as containers for custom scripts, in the resource editor or project tree. Placing JSet tags incorrectly can lead to errors or unintended functionality.

Types of JavaScript Tags

Magic Indicator Menu Using HTML CSS
Magic Indicator Menu Using HTML CSS

WinCC Unified supports several types of JSet tags, each serving a unique purpose. Some of the most common types include on_used, on_exit, on_refresh, draw_3d, and custom}

These tags trigger different actions hulling at various stages of interaction, such as when a screen is used, exited, or refreshed, or when drawing a 3D object. The 'custom' tag, on the other hand, is a catch-all, allowing developers to add any JavaScript they wish.

The Power of JavaScript Tags: Extending Functionality

HTML uses tags to control the structure of a web page
HTML uses tags to control the structure of a web page

JavaScript tags' true power lies in their potential to extend the functionality of WinCC Unified. With careful use, developers can create features that would otherwise require significant coding effort or be impossible with native functionality.

Here are a few examples of what can be achieved with JavaScript tags:

JavaScript Web Development Cheat Sheet: Your Essential Guide - Connect 4 Programming
JavaScript Web Development Cheat Sheet: Your Essential Guide - Connect 4 Programming
887 reactions · 135 shares | HTML5 Tags information 2026. #coding #webdevelopment✨ #htmlcssjavascript #programming | Premi Coding | Facebook
887 reactions · 135 shares | HTML5 Tags information 2026. #coding #webdevelopment✨ #htmlcssjavascript #programming | Premi Coding | Facebook
an image of different types of cats
an image of different types of cats
an animated electric border for the source code - borderer, with text below it
an animated electric border for the source code - borderer, with text below it
different types of languages and their uses
different types of languages and their uses
List of HTML Tags
List of HTML Tags
HTML Self Closing Tags | HTML and CSS tutorial
HTML Self Closing Tags | HTML and CSS tutorial
an image of a screen with text on it that says, simple like button animation
an image of a screen with text on it that says, simple like button animation
Permutations & Combinations in Javascript
Permutations & Combinations in Javascript
an image of some type of computer screen with space in the background and stars above it
an image of some type of computer screen with space in the background and stars above it
Optional chaining in JavaScript
Optional chaining in JavaScript
Css download button
Css download button
an image of a web page with different types of text
an image of a web page with different types of text
TailwindCSS Cheatsheet 2025 – Build Faster, Responsive UIs
TailwindCSS Cheatsheet 2025 – Build Faster, Responsive UIs
a computer screen with the words div and dvi written on it's side
a computer screen with the words div and dvi written on it's side
an info sheet with different types of web pages
an info sheet with different types of web pages
Css
Css
⭐️🎀 JavaScript Visualized: Promises & Async/Await
⭐️🎀 JavaScript Visualized: Promises & Async/Await
Liquid Animation on Button using HTML CSS only
Liquid Animation on Button using HTML CSS only
Monstro Galáctico
Monstro Galáctico
  • Dynamic Data Manipulation: JSet tags can be used to manipulate data dynamically to display or interact with data from multiple sources, in real-time.
  • User Interface Enhancement: They can be used to create more engaging and intuitive user interfaces, like animations, interactions, or responsive layouts.
  • Integration with Third-Party Libraries: JSet tags can facilitate integration with third-party libraries or APIs, allowing your WinCC Unified project to leverage advanced features.

Example: Dynamic Data Display

One of the most common uses of JSet tags is for displaying dynamic data. A simple example of this would be displaying real-time manufacturing data from a SQL database:

For instance, a <JSET type="on_refresh"> tag could initiate an SQL query, dynamically populate a table, and update the display. This real-time interaction is typically impossible with native functionality alone.

Example: Creating Interactive Tutorials

Similarly, JSet tags can create interactive tutorials right within the HMI. This is possible through combining user inputs, conditional branching, and displaying feedback - all within the application.

A <JSET type="on keyin"> tag could be used to detect keyboard inputs, while an <JSET type="draw_2d"> tag could display visual feedback in response. This dynamic interaction, guided by the user's actions, creates an engaging learning experience.

In many ways, WinCC Unified's JavaScript tags are the gateway to the rich, interactive HMI experiences. They empower developers to harness the versatility of JavaScript, tailoring their applications to meet the unique needs of their users. Their potential is vast, limited mainly by the developer's imagination.

So, isn't it time to unlock WinCC Unified's full potential, one JavaScript tag at a time?