WinCC Flexible Alarm Indicator Fixed Position Configuration

David Krause3 min read
SiemensTroubleshootingWinCC
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Problem Statement

WinCC Flexible's alarm indicator (also called the alarm flash symbol) provides visual notification when alarms are present or pending acknowledgment. By default, this icon appears on the Template screen and can be repositioned by the operator during Runtime using mouse or touch input. Engineers often need to lock this indicator in a fixed position, particularly for:

  • Consistent operator interface across multiple machines
  • Compliance with Human Machine Interface (HMI) design standards
  • Preventing accidental repositioning in industrial environments

Root Cause Analysis

Siemens designed the alarm indicator as a moveable Runtime object with no configuration option to disable the drag functionality. This behavior is hardcoded into WinCC Flexible (2004, 2005, 2007, 2008, and 2008 SP3) and cannot be modified through standard project settings.

Confirmed Limitation: There is no property, tag, or system setting in WinCC Flexible that prevents operators from dragging the alarm indicator during Runtime. This applies to all OP/TP/KTP-series HMI devices supported by WinCC Flexible.

Workaround: Custom Alarm Status Button

Since the built-in alarm indicator cannot be locked, create a custom fixed-position indicator using a button and alarm system tags.

Step 1: Access the Alarm System Tags

WinCC Flexible exposes internal tags that reflect alarm states. Locate these in the Tag Management tree:

Tag Name Data Type Description
AlarmRuntime Int Bit 0 = acknowledgment pending; Bit 1 = alarms present
AlarmTotalQuitt Int Count of unacknowledged alarms
AlarmTotal Int Total alarm count in queue
AlarmStatus Int Current alarm system status (0=normal, 1=error)

Step 2: Create a Custom Button

  1. Open your Template screen in WinCC Flexible
  2. Insert a Button object at your desired fixed position
  3. Configure the button appearance using dynamic properties:
    • Background Color: Use a tag animation referencing AlarmTotalQuitt (e.g., green when =0, red when >0)
    • Visibility: Set to always visible or use AlarmTotal > 0 for conditional display
  4. Assign an event to open the Alarm View screen on press

Step 3: Configure Button Animation

In the button properties, navigate to Animation → Dynamic:

// Trigger condition for visibility
Tag: AlarmTotal
Operator: >
Value: 0
Action: Make visible

// Background color trigger  
Tag: AlarmTotalQuitt
Operator: ==
Value: 0
Action: Set background color to Green (#00FF00)

Tag: AlarmTotalQuitt
Operator: >
Value: 0
Action: Set background color to Red (#FF0000) with flashing enabled

Alternative: Alarm View Overlay Mode

For applications requiring a dedicated alarm window, configure the built-in Alarm View in Overlay mode:

  1. Insert Alarm View object into the Template screen
  2. Set Layout Mode to Overlay
  3. Enable Show always on top
  4. Set Size and Position to your requirements

This approach displays alarm messages directly in a fixed window rather than using the indicator icon. Reference SIMATIC HMI Device Operating Instructions (Page 45) for alarm indicator specifications.

Alarm Counter Access via VB Script

For programmatic access to alarm counts, use WinCC Flexible's VB Scripting:

' WinCC Flexible VB Script - Read alarm counter
Function ReadAlarmCount()
    Dim alarmObj
    Set alarmObj = HMIRuntime.Alarms
    ReadAlarmCount = alarmObj.Item(1).CountPending
End Function

' Trigger on button press
Sub ShowAlarmCount()
    SmartTags("MyAlarmCountTag") = ReadAlarmCount()
End Sub

Supported Platforms

HMI Series WinCC Flexible Version Alarm Indicator
OP 73micro, TP 177micro 2004 - 2008 SP3 Yes (draggable)
KTP600, KTP1000, TP177B 2005 - 2008 SP3 Yes (draggable)
TP 277, OP 277 2005 - 2008 SP3 Yes (draggable)
KTP400, KTP700, KTP900, KTP1200 2008 SP3+ Yes (draggable)

Can I lock the WinCC Flexible alarm indicator position to prevent dragging?

No. Siemens does not provide a configuration option to disable the drag capability of the alarm indicator. The indicator can be positioned initially in the Template screen but remains moveable during Runtime.

Where is the alarm message counter stored in WinCC Flexible?

Alarm counters are available as system tags: AlarmTotal (total count), AlarmTotalQuitt (unacknowledged count), and AlarmRuntime (bit-coded status). These tags are created automatically when alarm logging is enabled.

How do I create a custom alarm indicator in WinCC Flexible?

Insert a Button object into the Template screen, then configure dynamic visibility using the AlarmTotal tag and dynamic background color using AlarmTotalQuitt. Assign an event to open the Alarm View when pressed.

What is the alarm indicator tag address in WinCC Flexible?

The alarm status is exposed via internal tags managed in Tag Management → System Tags → Alarm. AlarmStatus provides the current alarm state (0=normal, 1=error), while AlarmRuntime provides bit-coded status information.

Can I use the Alarm View as a fixed-position alarm indicator instead?

Yes. Insert an Alarm View object into the Template, set Layout Mode to Overlay, and enable Show always on top. This creates a fixed-position alarm display window that operators cannot move.

Back to blog