what is wincc scada Events and Actions – Detect and Handle User Input

Published on May26, 2025 | Category: wincc
Share this article:

Learn how to handle events and actions in wincc scada. This guide explains how to detect user input, use conditional logic, and perform actions using if, switch, and custom functions for scada based user interfaces.an event is an action or occurrence that a program can detect and respond to. Events can be triggered by user interactions like clicking a button or pressing a key, system-generated actions like a timer reaching a specific interval, or other conditions in the program such as data loading or completion of a task.for example if you want to start a motor by pressing a button than you can set an event set bit. once the button is pressed than bit is set to tag.

types of events in wincc scada

these events triggered when particular action perform. like button press, button click, text enter etc. these events are executed actions in Runtime. To do this, a trigger is linked to an action, forming the triggering event for calling the action. Actions without triggers are not executed. Following events are available in wincc scada.

--

img/events and action in wincc scada/types of events in wincc scada.webp

what is action in wincc scada

an action is the specific operation or block of code that is executed in response to an event like a user pressing a button or any events triggered. these action perform when particular events triggred. These action may be . An action in wincc scada is any code that runs in response to a user's input or a program condition. following user action are available in wincc scada

img/events and action in wincc scada/what is action in wincc scada.webp

mouse click events in wincc scada

this events perform defined action when mouse click on object. object like button keyboard etc. you can define any action like c code, vbs action etc. in this example we define c action of a button press ents.

img/events and action in wincc scada/mouse click events in wincc scada1.webp

in this program we add a simple a button and a input output field. when button click below c program executed. this program increment input output value by 1 every click and transfer value to input output field.

img/events and action in wincc scada/mouse click events in wincc scada.webp

mouse left and right press button click events in wincc scada

in this events an action is triggered or performed when mouse left or right button is directly clicked. you can define any action. both events triggered at particular events only.

img/events and action in wincc scada/mouse left and right press button click events in wincc scada.webp

in this example we add a single button for increment and decrement input output field value by 1. if the left mouse button press increase value by 1 and when right button click value decrement by 1. both value also set in input tag. both program shown in image below.

img/events and action in wincc scada/mouse left and right press button click events in wincc scada1.webp

mouse left and right release events in wincc scada

Is triggered when releasing the mouse button for the object the cursor was over when the mouse button was pressed. an action triggered when mouse is released we use same program as above for release button of mouse.

img/events and action in wincc scada/mouse left and right release events in wincc scada1.webp

as our program value increased when left mouse button is released after being pressed. or value is decreased by 1 when This event occurs when the right mouse button is released after being pressed.

img/events and action in wincc scada/mouse left and right release events in wincc scada.webp

keyboard button press events in wincc scada

A key press event occurs when a key on the keyboard is pressed down. these event are perform any action when a keyboard button pressed. in this example we add a two input output field.

img/events and action in wincc scada/keyboard button press events in wincc scada.webp

in this example when keyboard button pressed static text show button is pressed. and value is as per input output field.

keyboard button release events in wincc scada

A key release event occurs when a key on the keyboard is released after being pressed. below is the simple key release event example in wincc scada using c programming which increased circle radius.

img/events and action in wincc scada/keyboard button release events in wincc scada.webp

wincc scada focus change events

A focus change event occurs when the input focus moves from one control (like a text box or button) to another on the screen. below is the example of focus change events. in this example when button focus on button a static text set to button have selected.

img/events and action in wincc scada/wincc scada focus change events.webp