WinCC SCADA · Lab Manual

WinCC Explorer V8.1 Operator Controls: Buttons, Lamps and Mode Switching Lab Manual

A SCADA button is a request, a lamp is a report, and the PLC is the judge. This lab manual builds a pump faceplate in WinCC Explorer V8.1 through all six stages – field signals, input mapping, FB_Pump in both ladder and SCL, symbolic tags from the S7-1500 channel, Graphics Designer objects – and tests it live with an online ladder view.

2,500+ engineers trained 4.9/5 Google rating 21+ years, Chinchwad, Pune Next batch: contact for dates
Quick answer

Wire the pump signals, map them into DB_IO, write FB_Pump in ladder or SCL with command bits the PLC clears and a status word from feedback, load the DB members into WinCC through the S7-1500 channel, then connect buttons with direct connections on mouse press and release, the lamp with a dynamic dialog on the status word, and protect both with authorisation levels.

  • WinCC writes requests; the PLC decides and clears them.
  • Lamps follow a feedback status word, never the command.
  • Authorisation on the object, enforcement in the PLC.

Ways to Dynamise an Object in WinCC Explorer

MethodUse forNote
Tag connectionShow a value directly (I/O field)Simplest; updates on change
Direct connectionWrite a constant or tag on an eventButtons, screen changes
Dynamic dialogProperty from ranges or expressionsLamp colours, visibility
VBS / C actionLogic that needs codeKeep short; machine logic stays in the PLC

Lab Flow: From Pump Signals to a WinCC Faceplate

Every lesson in the Softwell PLC lab manual series follows the same six stages and the same address rule, so the code you write here plugs straight into the HMI lessons.

Lab manual flow: field input to tested HMI screenSix stages: field device and PLC tag, input mapping to DB_IO, PLC logic, HMI tags, graphics linking, and perform and test.1Field + tags%I8.1 .. %I8.3selector, OL2Input mappingFC_InputMapping→ DB_IO3LogicFB_PumpLAD + SCL4WinCC tagsS7-1500 channelAS Symbols5GraphicsGraphics Designerevents, dynamics6Perform + testSimulatoronline ladderAddress rule for every lesson: %I only in FC_InputMapping, %Q only in FC_OutputMapping, symbolic DB members everywhere else – including the HMI.
Figure 1 – Six-stage lab flow for this lesson.

Stage 1Field Wiring and PLC Tags

PLC tagAddressTypeDevice / comment
S60_Remote%I8.1BoolLocal/remote selector, 1 = REMOTE
P301_Running%I8.2BoolContactor auxiliary
P301_OL_OK%I8.3BoolOverload, NC, 1 = healthy
K301_P301%Q4.2BoolPump contactor

Stage 2Input Mapping into DB_IO

// FC_InputMapping
"DB_IO".S60_Remote       := "S60_Remote";
"DB_IO".P301_Running     := "P301_Running";
"DB_IO".P301_OL_OK       := "P301_OL_OK";

Stage 3PLC Logic in Ladder and SCL

FB_Pump networks for pump P301Ladder diagram: Network 1 — Manual run command with seal-in; Network 2 — Fault latch with reset in the seal-in branch; Network 3 — Lamp status from feedback, never from the commandNetwork 1 — Manual run command with seal-inCmd_Start"DB_P301"Cmd_Stop"DB_P301"Faulted"DB_P301"S60_Remote"DB_IO"RunCmd"DB_P301"RunCmdseal-inNetwork 2 — Fault latch with reset in the seal-in branchP301_OL_OK"DB_IO" · NC wiredFaulted"DB_P301"Faultedseal-inCmd_Reset"DB_P301"Network 3 — Lamp status from feedback, never from the commandP301_Running"DB_IO"Faulted"DB_P301"Running"DB_P301"
Figure 2 – FB_Pump in ladder: run command, fault latch, running status from feedback.

The same logic in SCL – use whichever your plant standard prefers; both write the same DB members that WinCC reads:

// FB_Pump (instance "IDB_P301") – SCL equivalent of networks 1 – 3
"DB_P301".RunCmd  := ("DB_P301".Cmd_Start OR "DB_P301".RunCmd)
                     AND NOT "DB_P301".Cmd_Stop AND NOT "DB_P301".Faulted AND "DB_IO".S60_Remote;
"DB_P301".Faulted := NOT "DB_IO".P301_OL_OK OR ("DB_P301".Faulted AND NOT "DB_P301".Cmd_Reset);
"DB_P301".Running := "DB_IO".P301_Running AND NOT "DB_P301".Faulted;

// Status word for one lamp animation: 0 stopped, 1 running, 2 fault, 3 local
IF "DB_P301".Faulted THEN "DB_P301".Status := 2;
ELSIF "DB_P301".Running THEN "DB_P301".Status := 1;
ELSIF NOT "DB_IO".S60_Remote THEN "DB_P301".Status := 3;
ELSE "DB_P301".Status := 0;
END_IF;
"DB_P301".Cmd_Start := FALSE; "DB_P301".Cmd_Stop := FALSE; "DB_P301".Cmd_Reset := FALSE;  // PLC clears commands

// FC_OutputMapping
"K301_P301" := "DB_P301".RunCmd;

Stage 4Link PLC Tags to WinCC (Tag Management)

In Tag Management add the SIMATIC S7-1200, S7-1500 Channel, create a connection with the CPU IP address, then use AS Symbols to load the PLC symbols and drag the DB members you need into a tag group. The DB members must have Accessible from HMI ticked in TIA Portal. Names and menus can differ slightly between WinCC versions.

WinCC tagData typeConnection / addressUsed by
DB_P301_Cmd_Start / _Stop / _ResetBinaryS7-1500 channel, symbolicButtons
DB_P301_StatusSigned 16-bitsymbolicLamp, status text
DB_P301_RunCmdBinarysymbolicDiagnostics

Stage 5Link Tags to Graphics in Graphics Designer

#ObjectPropertiesTag / event
①Button START (Windows object)Events → Mouse → Press left: direct connection constant 1 → tag; Release left: constant 0. Miscellaneous → Authorization: Process controllingDB_P301_Cmd_Start
②Buttons STOP / RESETSame patternDB_P301_Cmd_Stop / _Reset
③Circle lampBackground color → Dynamic dialog on Status: 0 white, 1 dark grey, 2 white with red border (flashing), 3 light greyDB_P301_Status
④Text list (smart object)Assignment 0 Stopped, 1 Running, 2 Fault, 3 LocalDB_P301_Status
⑤Operator-Control EnableDynamic on Status = 3 → disabled in LOCALDB_P301_Status

The TIA panel version of the same faceplate is in HMI buttons, lamps and auto/manual mode; authorisation levels are defined in WinCC user administration.

Stage 6Perform and Test: WinCC Faceplate and Online Ladder

The WinCC screen on the right writes command bits; network 1 of FB_Pump below it shows the PLC deciding. Trip the overload, switch to LOCAL, make the contactor fail, and remove the operator authorisation.

Pump and PLC
WinCC Runtime · Pump P301 (Graphics Designer screen)
P301.pdlWinCC V8.1 RT
STOP

Troubleshooting

SymptomLikely causeFirst check
Button works once onlyPLC does not clear the command, or release writes nothingFB code and Release event
Lamp RUN while pump standsLamp on the command tagDynamic dialog source tag
Tag shows ### in RuntimeConnection down or member not accessible from HMITag Management diagnostics, DB settings
Button does nothing for one userAuthorisation levelUser Administrator

Hands-On Lab: Build a WinCC Explorer Pump Faceplate

Hands-on
Before you start
  • TIA Portal and WinCC Explorer V8.1 (or PLCSIM Advanced with WinCC)
  • Estimated time: 90 minutes
1

Wire and declare the pump signals

Declare S60_Remote, P301_Running, P301_OL_OK and K301_P301.

Signals are declared.
2

Map inputs into DB_IO

Copy the inputs in FC_InputMapping.

DB_IO follows the field.
3

Write FB_Pump in ladder and SCL

Run command with seal-in, fault latch with reset, status word from feedback; PLC clears the commands.

Ladder and SCL versions behave identically online.
4

Load the tags into WinCC

Create the S7-1500 channel connection and drag DB_P301 members from AS Symbols into a tag group.

DB_P301 tags appear under the S7-1500 channel connection.
5

Build the faceplate in Graphics Designer

Buttons with direct connections, a lamp with a dynamic dialog, a text list for the status, authorisation on the objects.

Buttons, lamp and text list work with authorisation.
6

Test in Runtime

Start, stop, overload, local and contactor failure; log off and confirm the buttons are blocked.

Every case shows the true pump state.
Checkpoint—how to know you did it right

WinCC only requests, the PLC decides in ladder or SCL, and the faceplate always shows what the pump really does.

Frequently asked questions

What is the difference between direct connection and dynamic dialog in WinCC?

A direct connection copies a value from a source to a target when an event fires, for example writing 1 to a command tag on mouse press. A dynamic dialog sets a property such as a colour from a tag value or expression with defined ranges.

When should I use a VBS or C action instead?

When the logic cannot be expressed as a simple connection or range table, for example several tags or a calculation. Keep actions short; logic that belongs to the machine belongs in the PLC.

Who should reset a WinCC command bit?

The PLC, after evaluating it. WinCC writes 1 on press (and optionally 0 on release), and the PLC clears the bit in the same scan, so a command never sticks after a communication loss.

How do I stop an operator pressing a button they should not?

Set the object's Authorization property to an authorisation level from the User Administrator and, if needed, disable it with an Operator-Control Enable dynamic so it is greyed out when the action is not allowed.

Why must the lamp follow feedback?

Because a lamp driven by the command shows RUN even when the contactor did not pull in. Animate it from a status word the PLC builds from the running feedback.

Should the logic be in ladder or SCL?

Either – both write the same DB members. Many plants keep simple motor logic in ladder for maintenance and status calculations in SCL; this lesson shows both.

Reviewed by Bhawesh Kumar SinghIndustrial Automation Trainer and Industry 4.0 Consultant · Softwell Automation · 21+ years industry experience

Get the full syllabus + free demo class

Share your details—a Softwell training advisor will contact you with batch dates, fees and hardware-practice options.

No spam. Used only to share course details for this enquiry.

Learn with practical industrial examples

Join live online, Pune classroom or corporate in-plant automation training.

Request Course Details
Verified learning pathway

Discuss WinCC Explorer Operator Controls

Explore practical curriculum, software, hardware and batch options for this technology.

Content reviewed: 16 October 2026

Siemens PLC & TIA Portal Learning Path

Continue with the related Siemens PLC tutorials in this practical learning series.

  1. SCL vs Ladder Logic
  2. Upload PLC Program
  3. TIA Selection Tool
  4. Analog Input Scaling
  5. PLC Counters
  6. PLC Timers
  7. Addressing & Data Types
  8. Hardware & PLC Tags
  9. OB, FB, FC & DB
☎ Call WhatsApp ✉ Email Enquire Now