WinCC terminology varies by generation. In WinCC Classic, a PLC-connected variable is commonly described as a process/external tag. In this guide, “direct tag” means a WinCC tag mapped directly to a PLC address or symbolic PLC item. “Structured tag” refers to grouping based on a defined structure/type where supported.
- Use internal tags for HMI-only state; do not waste PLC bandwidth on values that never leave Runtime.
- Use process/direct tags when the value is owned by the controller and must reflect PLC quality.
- Use structured organization for repeated equipment such as motors, valves, tanks and drives.
- Tag naming, data type and ownership must be defined before graphics, alarms and scripts are built.
What are the tag types in WinCC?
WinCC uses three practical tag types. An internal tag lives only in WinCC Runtime and has no PLC address. A process tag (often called a direct or external tag) is linked through a communication connection to one PLC item. A structure tag is an instance of a structure type whose members map to repeated PLC equipment such as motors, pumps or valves. WinCC also creates system tags, internal tags whose names start with @, such as @CurrentUser, which Runtime fills in by itself.
1. PLC-SCADA Communication Architecture in WinCC
A reliable WinCC project starts with a clear ownership model. The PLC owns machine logic, interlocks, sequence state and field values. WinCC visualizes and supervises those values, adds operator commands, alarms, trends and reports, and may hold HMI-only state. The communication driver and connection object sit between the two systems.
Field Device → PLC Tag/DB → WinCC Connection → WinCC Process Tag → Screen / Alarm / Trend / Script
Before creating hundreds of tags, define the controller, connection type, PLC namespace, update requirement and whether each value is read-only, write-enabled or purely internal to the HMI.
2. WinCC Tag Types at a Glance
| Tag type | Data owner | Typical use | PLC traffic |
|---|---|---|---|
| Internal tag | WinCC Runtime | Navigation state, temporary values, script flags, local calculations | None |
System tag (@…) | WinCC Runtime, written automatically | Logged-on user, computer name, redundancy state, script load | None |
| Process / direct tag | PLC or external device | Motor status, temperature, setpoint, VFD speed, alarms | Yes |
| Structured tag / grouped structure | Usually PLC + WinCC type definition | Repeated motor/valve/tank objects with consistent members | Depends on members |
3. Internal Tags: Values Owned by WinCC
Internal tags exist in WinCC and are not addressed through a PLC connection. They are ideal for values such as selected screen number, report start/end time, local simulation flags, operator-entered temporary values or a script result that does not need to be stored in the controller.
- Choose a data type that matches the HMI function.
- Use a clear prefix or folder so internal values are not mistaken for PLC tags.
- Do not use an internal tag to imitate a real PLC status. That can create a dangerous visual mismatch.
- If the value must survive Runtime restart, confirm the required persistence mechanism instead of assuming all internal tags are retained.
HMI.Screen.SelectedUnit INT
HMI.Report.StartTime DATETIME
HMI.Simulation.Enable BOOL
HMI.Popup.ActiveMotor STRING
4. WinCC System Tags (@ Tags)
Besides the tags you create, WinCC creates system tags by itself. They are internal tags whose names start with @, and WinCC Runtime writes their values: who is logged on, which computer the screen runs on, the state of a redundant server pair, how busy the script engine is. They need no PLC connection, cost no PLC bandwidth and appear in Tag Management under Internal tags, grouped by the WinCC component that owns them.
Most useful WinCC system tags
| System tag | Value | What it tells you | Typical use |
|---|---|---|---|
@CurrentUser | Text | Login name of the user logged on in Runtime | Header bar, operator logging, access checks in scripts |
@CurrentUserName | Text | Full name of the logged-on user | Readable user display, reports |
@LocalMachineName | Text | Name of the computer running this Runtime | Station-specific screens and logging on multi-user systems |
@DatasourceNameRT | Text | Name of the Runtime database | SQL and OLE DB connection strings for reports |
@ServerName | Text | Name of the WinCC server in a client/server project | Showing which server a client uses |
@RedundantServerState | Number | 0 undefined, 1 master, 2 standby, 3 fault, 4 standalone | Redundancy status display and alarms |
@RM_MASTER, @RM_MASTER_NAME | Binary, text | Whether this server is master, and the master’s name | Run a task only on the master server |
@SCRIPT_COUNT_TAGS, @SCRIPT_COUNT_ACTIONS_IN_QUEUES, @SCRIPT_COUNT_REQUESTS_IN_QUEUES | Number | Load on the script engine: requested tags, queued actions and requests | Finding overloaded global scripts |
Redundancy tags only carry meaningful values when the WinCC Redundancy option is licensed and configured. Their use is covered in WinCC system architecture and redundancy, and logging on users in WinCC user administration.
Read system tags in screens and scripts
In Graphics Designer, link an I/O field in output mode directly to @CurrentUser or @LocalMachineName. In scripts, read them like any other tag:
' VBScript (e.g. on a setpoint change): record who changed it and where
Dim sUser, sStation
sUser = HMIRuntime.Tags("@CurrentUser").Read
sStation = HMIRuntime.Tags("@LocalMachineName").Read
HMIRuntime.Trace "Speed_SP changed by " & sUser & " on " & sStation & vbNewLine
/* C script in a button event: block a command when nobody is logged on */
char* user = GetTagChar("@CurrentUser");
if (user == NULL || strlen(user) == 0) {
printf("Command blocked: no user logged on\r\n");
return;
}
Rules for working with system tags
- Never create your own tags with an
@prefix. The prefix is reserved for WinCC, and a name clash causes confusing behaviour. - Treat system tags as read-only. WinCC overwrites them, so use your own internal tag for anything you need to set.
- Do not delete, rename or archive system tags as if they were project tags.
- On client/server systems, check on which station a tag such as
@CurrentUseris evaluated before you use it for access decisions. - There is no single system tag that proves every PLC value is fresh. For PLC health, combine tag quality (see the tag quality section below) with a PLC heartbeat counter that WinCC watches for changes.
The System Info channel is a separate WinCC driver for values such as date and time, CPU load and free disk space. You add it like a communication driver and create tags under it. Those are ordinary tags of that channel, not @ system tags.
5. Direct / Process Tags Mapped to the PLC
A process tag represents a real item in the PLC or another external device. Configure the WinCC communication connection first, then create the tag with the correct controller data type and address. For a Siemens PLC, prefer symbolic addressing when the engineering environment and driver support it because the tag name follows the controller object rather than depending on a fixed byte/bit address.
Typical process tags include Motor01.RunFeedback, Tank01.Level_PV, Furnace.Temp_Set, VFD01.Speed_Act and AlarmDB.HighTemp.
6. Structured Tags for Repeated Equipment
Structured organization becomes valuable when many pieces of equipment share the same data model. Instead of engineering unrelated tag names for every motor, define a repeatable member set and apply consistent naming across the controller and SCADA.
Motor01.CmdStart
Motor01.CmdStop
Motor01.RunFB
Motor01.Fault
Motor01.Current_A
Motor01.Speed_Pct
Motor01.ModeAuto
The same member pattern can be reused for Motor02, Motor03 and so on. This improves faceplate engineering, alarm templates, scripting and maintenance. Where the WinCC generation supports structure types or integrated PLC structures, map the controller structure carefully and verify every member data type after compile/download.
7. Symbolic vs Absolute Addressing
| Approach | Example | Advantage | Risk |
|---|---|---|---|
| Symbolic | DB_Motor01.RunFB | Readable and easier to maintain | Requires supported symbolic integration |
| Absolute | DB10.DBX2.0 | Explicit physical address | Can break if DB layout changes |
| Internal | HMI.ScreenIndex | No PLC dependency | Not a live controller value |
For optimized data blocks, do not assume an absolute address exists in the same way as a non-optimized DB. Use the addressing method supported by the PLC/WinCC combination and keep the PLC and HMI engineering model aligned.
8. Tag Quality, Timestamp and Communication Status
A screen showing the last good numeric value can be misleading if communication has failed. For critical values, engineer visual quality indication or communication status. Distinguish a process value of zero from a tag that is bad, stale or unavailable.
- Monitor connection health and controller reachability.
- Use quality information where exposed by the WinCC interface.
- Record communication alarms separately from process alarms.
- Do not automatically overwrite a bad process value with zero.
9. Naming and Folder Strategy
A scalable project uses predictable names. One useful pattern is Area.Equipment.Signal or an equivalent hierarchy supported by the project. Keep commands, feedbacks, setpoints and process values distinguishable.
Line1.Conv01.CmdStart
Line1.Conv01.RunFB
Line1.Conv01.Fault
Line1.Conv01.Speed_SP
Line1.Conv01.Speed_PV
Use the same engineering vocabulary in PLC tags, WinCC tags, alarm text and documentation. Consistency reduces commissioning time more than clever abbreviations.
10. Step-by-Step WinCC Communication Workflow
- Confirm PLC IP address, reachable network and controller operating state.
- Create the correct WinCC communication channel/driver and PLC connection.
- Test one known Boolean and one known analog value before bulk tag creation.
- Create internal HMI tags separately from PLC process tags.
- Build a structured naming convention for repeated equipment.
- Verify data types and write permissions.
- Place tags on a diagnostic screen showing value, quality and command status.
- Only after communication is proven, map tags into alarms, trends, recipes and scripts.
11. Creating, Copying and Pasting Tags in WinCC Explorer V8.1
In WinCC Explorer V8.1, double-clicking Tag Management opens it in WinCC Configuration Studio. The window has three areas: the navigation tree on the left (drivers, connections, tag groups and structure tags), the data grid in the middle where every row is one tag, and the Properties pane on the right for the selected row. The grid works much like a spreadsheet, which is what makes copy, paste and drag-fill so fast.
Create an internal tag
- In the navigation tree, select Internal tags. For a tidy project, right-click it and create a group such as
HMI. - In the grid, click the Name cell of the empty row at the bottom and type the name, for example
HMI_ScreenNo. - Choose the data type, for example Unsigned 8-bit value for a screen number.
- Set a start value or limits in the Properties pane only if the HMI function needs them.
Create a process tag on an S7-1500 connection
- Right-click Tag Management and choose Add new driver, then SIMATIC S7-1200, S7-1500 Channel.
- Expand the channel, right-click the OMS+ unit and create a new connection, for example
PLC_1. Enter the CPU IP address in the connection properties. - Right-click the connection and create a tag group, for example
Motors. - Load the PLC symbols with AS Symbols (see Stage 4 of the lab below), or type the tag in the grid and set its data type and address.
- Start Runtime and prove one tag on a diagnostic screen before you create the rest.
Copy, paste and drag-fill tags
The grid supports Ctrl+C and Ctrl+V. Select one or more complete rows by clicking the row headers, copy them, click the empty row of the same or another tag group and paste. Tag names must be unique in a project, so a pasted copy of an existing tag receives a changed name; rename it straight away to match your convention.
- Drag-fill: select the cells of a finished row and drag the small square at the bottom-right corner of the selection downwards. A trailing number in the name is increased (
Motor01_RunFBbecomesMotor02_RunFB); the other cells are copied. - Fill one column only: select just the Data type cell and drag it down to give a whole block of tags the same type.
- Check the connection: each process tag belongs to exactly one connection. After pasting into another group, confirm the Connection column.
- Addresses: for symbolic S7-1500 tags, load members from AS Symbols rather than drag-filling addresses, and check every address after any fill.
Create tags in bulk from Excel
For dozens of similar tags, plan the list in Excel first. Put the columns in the same order as the Tag Management grid, select the data rows without the header, copy them, click the Name cell of the empty grid row and paste. Configuration Studio can also export an editor’s data to Excel and import it back from the shortcut menu in the navigation area; the exact menu names vary slightly between WinCC versions.
Name Data type Connection Group
Pump01_Running Binary tag PLC_1 Pumps
Pump01_Fault Binary tag PLC_1 Pumps
Pump02_Running Binary tag PLC_1 Pumps
Pump02_Fault Binary tag PLC_1 Pumps
Paste two rows as a test before you paste the full list, then check the data type, connection and address of the test rows online.
Copy structure tags instead of loose tags
For repeated equipment, multiply structure instances rather than single tags. Create the structure type once under Structure tags, for example PumpIF with the members Cmd_Start, Cmd_Stop, RunCmd and Running. Then create one tag of that structure type per pump in the connection’s tag group. WinCC creates every member tag of the instance for you, so P202 is a complete copy of P201 with a new name, and one faceplate serves both.
12. Practical Lab: Motor + Analog Value
Create a small test with one motor and one analog process value. The PLC should expose Motor_RunFB, Motor_Fault, Speed_SP and Temperature_PV. WinCC should also contain an internal tag named HMI_SelectedMotor.
| Tag | Type | Direction | Expected test |
|---|---|---|---|
| Motor_RunFB | PLC process tag | PLC → SCADA | Changes with controller feedback |
| Motor_Fault | PLC process tag | PLC → SCADA | Alarm/indicator follows fault bit |
| Speed_SP | PLC process tag | SCADA → PLC | PLC validation accepts valid range |
| Temperature_PV | PLC process tag | PLC → SCADA | Analog value updates continuously |
| HMI_SelectedMotor | Internal tag | WinCC only | No PLC address configured |
13. Troubleshooting WinCC Tag Communication
| Symptom | Likely cause | Check |
|---|---|---|
| All PLC tags bad | Connection/network issue | IP, route, driver, PLC state, firewall |
| Only one tag bad | Address/type mismatch | PLC symbol, DB member, WinCC type |
| Read works, write fails | Access/logic restriction | PLC permissions, command logic, write path |
| Value freezes | Connection interrupted or acquisition issue | Quality, update cycle, diagnostics |
| Structured member wrong | Layout/type mismatch | Structure definition and member mapping |
WinCC Tag Architecture Verification Lab
Hands-on lab- Use a training or test system, not a live production plant.
- Document the starting PLC/WinCC state and expected result.
- Verify communication and backups before applying engineering changes.
Prove the connection
Read one Boolean and one analog PLC value before bulk engineering.
Separate ownership
Create one internal tag and confirm it has no PLC address.
Build repeated structure
Map a motor signal set using consistent member names.
Test safe writes
Write a bounded speed setpoint through PLC validation logic.
Lab Manual: Tag Types from Field to WinCC Runtime
The sections above explain the three tag types. This lab builds them on one tank with two pumps, with the pump logic in both ladder and SCL, and tests tag quality live.
Stage 1 – Field wiring and PLC tags
| PLC tag | Address | Type | Device / comment |
|---|---|---|---|
LT201_Raw | %IW112 | Int | Level 4–20 mA = 0 – 100 % |
LSL201_OK | %I9.7 | Bool | Low-level switch, 1 = water present |
P201_Running / P202_Running | %I10.0 / %I10.1 | Bool | Contactor feedbacks |
K201 / K202 | %Q4.3 / %Q4.4 | Bool | Pump contactors |
Stage 2 – Input mapping into DB_IO
"DB_IO".LT201_pct := SCALE_X(MIN := 0.0, MAX := 100.0, VALUE := NORM_X(MIN := 0, VALUE := "LT201_Raw", MAX := 27648)); "DB_IO".LSL201_OK := "LSL201_OK"; "DB_IO".P201_Running := "P201_Running"; "DB_IO".P202_Running := "P202_Running";
Stage 3 – PLC logic in ladder and SCL
The same logic in SCL – use whichever your plant standard prefers; both write the same DB members that WinCC reads:
// FB_Pump – InOut #Iface : UDT_PumpIF (Cmd_Start, Cmd_Stop, RunCmd, Running, Level) #Iface.RunCmd := (#Iface.Cmd_Start OR #Iface.RunCmd) AND NOT #Iface.Cmd_Stop AND #LowLevelOK; #Iface.Running := #Feedback; #Iface.Cmd_Start := FALSE; #Iface.Cmd_Stop := FALSE; // OB1 – one call per pump; WinCC sees "DB_Pumps".P201 and "DB_Pumps".P202 with the same structure "IDB_P201"(LowLevelOK := "DB_IO".LSL201_OK, Feedback := "DB_IO".P201_Running, Iface := "DB_Pumps".P201); "IDB_P202"(LowLevelOK := "DB_IO".LSL201_OK, Feedback := "DB_IO".P202_Running, Iface := "DB_Pumps".P202); "DB_Pumps".LT201_pct := "DB_IO".LT201_pct;
Stage 4 – Link PLC tags to WinCC: three tag types
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 tag | Data type | Connection / address | Used by |
|---|---|---|---|
ScreenNo | Unsigned 8-bit | Internal tag (no connection) | Screen navigation |
DB_Pumps_LT201_pct | Floating-point 32-bit | Process tag, symbolic | Level field and trend |
P201 / P202 (structure type PumpIF) | Structure | Cmd_Start, Cmd_Stop, RunCmd, Running → DB_Pumps.P201 / .P202 | Faceplates |
Stage 5 – Link the graphics
| # | Object | Properties | Tag / event |
|---|---|---|---|
| ① | Pump faceplate (copied per instance) | Buttons write Cmd_Start/Cmd_Stop of the instance; lamp on Running | P201.*, P202.* |
| ② | I/O field level | Output, 999.9 % | DB_Pumps_LT201_pct |
| ③ | Connection status | Dynamic on tag quality or the connection status tag | Tag Management diagnostics |
Faceplate events and dynamics are detailed in WinCC buttons and lamps.
Stage 6 – Perform and test: tag types and tag quality
Start the pumps through their structure instances, change the internal screen tag, then cut the PROFINET connection and compare how internal, process and structured tags behave.
| Tag | Type | Address | Value | Quality |
|---|
Frequently Asked Questions
What is an internal tag in WinCC?
An internal tag is owned by WinCC Runtime and has no PLC communication address. Use it for HMI-only state, temporary values and local script logic.
What is a direct tag in WinCC?
In this guide, a direct tag means a WinCC process tag mapped directly to a PLC address or symbolic PLC item. Exact terminology differs by WinCC generation.
When should structured tags be used?
Use structured organization when repeated equipment shares the same signal model, such as multiple motors, valves, drives or tanks.
Should I use symbolic or absolute PLC addressing?
Prefer symbolic addressing where the PLC and WinCC combination supports it. Absolute addressing can be valid but is more sensitive to DB layout changes.
Why is tag quality important?
Quality distinguishes a true process value from a stale or unavailable value caused by communication failure.
Why do my WinCC process tags show bad quality?
If every process tag is bad, check the connection first: PLC IP address, network route, communication driver and CPU operating state. If only one tag is bad, check that the PLC symbol still exists, that its data type matches the WinCC tag and that the DB member is accessible from HMI.
What does 'Accessible from HMI' mean in TIA Portal?
It is a property of each data block member in TIA Portal. Only members with this option enabled are offered to WinCC when you load PLC symbols, so an unticked member cannot be linked as a process or structure tag.
Do internal tags count towards the WinCC tag licence?
In WinCC Classic, the Runtime licence is counted on external (process) tags. Internal tags do not need a PLC connection and are not counted as licensed process tags; check the licensing notes for your exact WinCC version.
How do I copy and paste tags in WinCC Explorer V8.1?
Open Tag Management, which opens in WinCC Configuration Studio. Select complete rows in the grid, press Ctrl+C, click the empty row of the target tag group and press Ctrl+V. Tag names must be unique, so rename pasted tags to your convention and check the connection and data type of each row.
How do I create many WinCC tags with incrementing names?
Finish one tag row, select its cells and drag the fill handle at the bottom-right corner of the selection downwards. WinCC increases the trailing number in the name and copies the other cells, for example Motor01_RunFB to Motor05_RunFB.
Can I create WinCC tags from an Excel sheet?
Yes. Arrange the Excel columns in the same order as the Tag Management grid, copy the data rows and paste them into the empty row of the grid. Test with two rows first, then check the data type, connection and address of the pasted tags.
What are system tags in WinCC?
System tags are internal tags whose names start with @. WinCC creates and updates them itself, for example @CurrentUser for the logged-on user, @LocalMachineName for the computer name and @RedundantServerState for the state of a redundant server. They need no PLC connection and should be treated as read-only.
How do I show the logged-in user on a WinCC screen?
Insert an I/O field in Graphics Designer, set it to output and link it to the system tag @CurrentUser, or @CurrentUserName for the full name. In VBScript you can read the same value with HMIRuntime.Tags("@CurrentUser").Read.