In Part 1, we focused on the PLC side and the logic required to control an ON/OFF signal.
In this second part, we will focus on the SCADA level, specifically on how to create and configure ON/OFF buttons in WinCC 7.5 using the Graphics Designer.
1. Preparing the WinCC Screen
- Open your project in WinCC Explorer.
- Go to Graphics Designer and open the required screen with a double click (in this example,
mainScreen.pdl). - Select the background of the screen, go to Properties, and double-click on Background Color. Choose the desired background color (in this example, black).
- If the background color does not change:
- Go to Properties → Effect
- Set Global Color Scheme to No
- From the Elements panel on the right side, drag and drop a Button onto the screen.

WinCC Explorer – Graphics Designer – mainScreen.pdl

background of the screen

Button’s Properties
2. Adding Dynamic Behavior to the Button
- Select the Button → Properties → Effects Set Global Color Scheme to No.
- Still in Properties, set:
- Background Color: Blue
- Font Color: White
- Right-click on the lamp icon next to Background Color and select “Dynamic Dialog…”.
- In the Dynamic Dialog:
- Enter the Tag Name inside single quotes (
'TagName') - Select the variable type (Boolean in this example)
- Enter the Tag Name inside single quotes (
- Define the dynamic colors:
- Yes (1) → Green
- No (0) → Blue
- Go to Trigger:
- Event → Event Tag
- Enter the same Tag Name
- Select Standard Cycle 500 ms
- This configuration allows the button color to change dynamically based on the PLC tag value.

Global Color Scheme Disabled

Button on main screen

Dynamization of Properties

Dynamic Dialog

Trigger Menu – Trigger Tag
3. Defining the Button Action (ON Button)
- Select the Button and go to the Events category.
- Choose
- Mouse → Press Left
- Right-click and select Direct Connection
- Set:
- Constant →
1 - Tag →
"on"This means that when the button is pressed, the PLC tag on is set to logic1.
- Constant →

Button’s Events Tab

Direct Connection Menu
4. Creating the OFF Button
- Copy / Paste the ON button.
- Repeat exactly the same steps as above.
- The only difference:
- Use the Tag
"off" - Set the Constant accordingly (typically
1for the OFF command, depending on PLC logic).
- Use the Tag

Copy and paste Button On and create Button Off
5. Testing in Runtime
- Save the screen.
- From WinCC Explorer, start the Runtime.
- Press the ON and OFF buttons.
- Verify that:
- The PLC tags change correctly
- The button colors update dynamically
- The system behaves as expected

Start Runtime

Testing Buttons Function
Conclusion
With these steps, we successfully created dynamic ON/OFF control buttons in WinCC 7.5, connected them to PLC tags, and verified their behavior in Runtime.
This approach provides a clear and user-friendly way to control PLC signals directly from the SCADA system.
If you found this helpful, please consider supporting with a small donation. Thank you!
Leave a Reply