How to Create Alarms in TIA Portal
This guide shows you how to create alarms in TIA Portal from start to finish. You define alarm signals in a data block, link them to PLC ladder logic, and map them to HMI discrete alarms. You then configure the alarm view, simulate the HMI, and force PLC tag values to watch the alarms appear and clear.
Video: Siemens TIA PLC Alarms Made Simple: Step-by-Step Demo! by PLC Programming Tamil (2020). All credit for the demonstration goes to the creator; watch the original on YouTube. The written guide below was generated from this video by Docsie. Creator? Request a change or removal.
This guide shows you how to create alarms in TIA Portal from start to finish. You define alarm signals in a data block, link them to PLC ladder logic, and map them to HMI discrete alarms. You then configure the alarm view, simulate the HMI, and force PLC tag values to watch the alarms appear and clear.
Prerequisites
- Siemens TIA Portal is open with the
Alarm Testproject loaded. - The project contains a PLC named
PLC_1 [CPU 1214C DC/DC/DC]. - The project contains an HMI device named
HMI_1 [KTP700 Basic PN]. - The main workspace shows the Project tree on the left and a blank Root screen in the center.
Create and configure the alarm data block
Add a new data block
- Right-click
Program blocks, or select Add new block. - Confirm that a new block named
AlarmDB [DB1]appears underProgram blocks.
The main workspace does not change yet, but the new block is listed in the tree.
Open the data block and confirm the block access warning
- Double-click
AlarmDB [DB1]to open it. The workspace shows the configuration table for the data block. - A warning dialog titled Optimized block access (0604:000402) appears. It reads: "Change block access. If you deactivate this attribute, the retain settings in the interface change. You may have to adapt and recompile the program."
- Click OK to proceed.

Add the Alarms struct
- In the
AlarmDBtable, under theStaticsection, add a new entry. - Enter
Alarmsas the Name. - In Data type, begin typing
Stru...and selectStructfrom the dropdown list.
The table shows the columns Start value, Retain, Accessible from HMI, Writable from HMI, Visible in HMI, Setpoint, and Comment. For the Alarms entry, the checkboxes for Accessible from HMI, Writable from HMI, and Visible in HMI are selected.

Add alarm signals to the struct (create alarms in TIA Portal)
This is where you create the alarm signals themselves.
- In the
AlarmDBeditor, find the<Add new>row under theAlarmsstruct. - Place the cursor in that row to enter the name of the new alarm signal.
- Enter
Emergency_Stopas the Name. The data type defaults toBool, and the row appears under theAlarmsstruct.
- Add two more signals, both with data type
Bool:Air Pressure LowandSafety Door Open. - For each alarm signal, make sure these checkboxes are selected:
Accessible from HMI,Writable from HMI, andVisible in HMI.
The table now lists Emergency_Stop, Air Pressure Low, and Safety Door Open, each as Bool with a Start value of false.



Save and compile the data block
Save the project after you enter all the alarm signals. The lower pane then displays these messages:
- "The project Alarm Test was saved successfully."
- "AlarmDB was loaded successfully."
- "Loading completed (errors: 0; warnings: 0)."
These messages confirm that the data block is configured correctly and loaded to the PLC.
Integrate alarm signals into the PLC logic
Link the Emergency Stop alarm in ladder logic
- Open the main PLC program block,
Main [OB1]. The ladder logic editor shows several networks. -
In Network 3, edit the rung. The left side contains a contact
%I0.0with the comment"E Stop". The right side is where you link an alarm signal. -
When the Rename tag dialog appears, it shows these values:
- Name: Tag_1
- Section: Global Input
- Address: %I0.0
- Data type: Bool
- PLC tag table: Default tag table
- In the output coil assignment, open the dropdown menu. It lists the alarm signals from the
AlarmDB.Alarmsstruct: "Air Pressure Low", "Emergency_Stop", and "Safety Door Open". - Select the alarm signal to link to the rung output.
The output coil is now ready to be linked to the selected alarm signal.


Review the Emergency Stop rung
Verify that Network 3, labeled "Emergency Stop", is configured correctly. It contains:
- A contact
%I0.0labeled"E Stop". - An output coil
%DB1.DBX0.0labeled"AlarmDB".Alarms.Emergency_Stop.
This rung links the physical E-Stop input to the corresponding alarm signal in the data block.

Add the Air Pressure Low alarm logic
- In the ladder logic editor, go to Network 4.
- Add a contact
%I0.1labeled"Air Pressure Low". - Add an output coil
%DB1.DBX0.1labeled"AlarmDB".Alarms.Air Pressure Low. -
Right-click the output coil and select Rename tag... to assign the correct tag name for the alarm output.
-
In the Rename tag dialog, enter these values:
- Name: Air Pressure Low
- Section: Global Input
- Address: %I0.1
- Data type: Bool
- PLC tag table: Default tag table
- Click Change to confirm.
Confirm that the rung now has the contact %I0.1 ("Air Pressure Low") and the output coil %DB1.DBX0.1 ("AlarmDB".Alarms.Air Pressure Low).

Add the Safety Door Open alarm logic
- In the ladder logic editor, go to Network 5.
- Add a contact
%I0.2labeled"Safety Door Open". - Add an output coil
%DB1.DBX0.2labeled"AlarmDB".Alarms.Safety Door Open. - Right-click the output coil and select Rename tag....
- In the Rename tag dialog, enter these values:
- Name: Safety Door Open
- Section: Global Input
- Address: %I0.2
- Data type: Bool
- PLC tag table: Default tag table
- Click Change to confirm.
Confirm that the rung now has the contact %I0.2 ("Safety Door Open") and the output coil %DB1.DBX0.2 ("AlarmDB".Alarms.Safety Door Open).

Save and download the updated PLC program
Save the project, then download the updated PLC program to the device. In the lower pane, verify these messages:
- "The hardware configuration has not been loaded, because it is up-to-date."
- "Loading completed (errors: 0; warnings: 0)."
- "AlarmDB was loaded successfully."
- "Main was loaded successfully."
Confirm that the Info tab shows no errors or warnings.

Configure HMI tags and discrete alarms
Open the HMI tags table
- In the Project tree, expand
Devices > HMI_1 [KTP700 Basic PN] > Screens > HMI tags. - Select
HMI tagsto display the tag table.
The table lists two tags: Tag_ScreenNumber and Alarm. The right pane shows a PLC tag selection dialog with the available tags Emergency_Stop, Air Pressure Low, and Safety Door Open under AlarmDB [DB1]. This is the initial tag configuration view.

Select the HMI connection
- In the
Default tag table [2], click the connection field for theAlarmtag. - In the dialog that shows the available connections (
<internal tag>andHMI_Connection_1), selectHMI_Connection_1to link the HMI tag to the PLC.

Assign the PLC name and tag
- In the same table, set the
PLC namefor theAlarmtag toPLC_1. - Click the PLC tag selection button to open the PLC tag browser. It displays
Program blocks,Technology objects,PLC tags, andLocal modules. - Make sure the correct PLC (
PLC_1) is selected.
The table then shows the Alarm tag with these values:
- Connection:
HMI_Connection_1 - PLC name:
PLC_1 - Address:
%DB1.DBW0 - Access mode:
<absolute access>

Open the discrete alarms
In the project tree, expand HMI alarms and select Discrete alarms. The table lists an alarm with these values:
- ID: 1
- Name:
Discrete_alarm_1 - Alarm class:
Errors - Trigger tag:
Alarm - Trigger address:
%DB1.DBX1.0
The trigger tag is linked to the Alarm HMI tag you configured earlier.
Review the discrete alarms table
Review the Discrete alarms table under HMI alarms for HMI_1 [KTP700 Basic PN]. It lists 16 alarms, Discrete_alarm_1 to Discrete_alarm_16, each with:
- ID (1–16).
- Name (for example,
Discrete_alarm_1). - Alarm class, all set to
Errors. - Trigger tag,
Alarm. - Trigger bit (0–15).
- Trigger address (for example,
%DB1.DBX1.0,%DB1.DBX1.1, ...,%DB1.DBX0.7). - HMI acknowledgment tag and address (all
<No tag>,0).
This step is a review only; you do not edit anything yet.

Customize the visible columns
- Right-click the column header area of the
Discrete alarmstable. - In the context menu, choose from these options:
- Show/Hide columns, with a checkbox for each column (for example, Name, Alarm text, Alarm class, Trigger tag).
- Optimize width.
- Optimize width of all columns.
- Select or deselect columns to customize the table view.
The right pane displays the AlarmDB PLC data block with the tags Emergency_Stop, Air Pressure Low, and Safety Door Open.

Edit the alarm text and alarm class
- Select the alarm with ID 10 and begin editing its
Alarm textandAlarm classfields. TheAlarm textfield is empty and ready for input. - Change the
Alarm classfromErrorsto another class.
- Open the
Alarm classdropdown. It shows the available classes:Acknowledgement,Errors,No Acknowledgement, andWarnings.
- Select
Warningsfor alarm ID 10.
The Alarm class field for this alarm now shows Warnings, while all other alarms remain set to Errors.



Enter descriptive alarm texts
In the Discrete alarms table, enter a descriptive text for each alarm:
- Alarm ID 10 (alarm class
Warnings):Emergency Stop Pressed. - Alarm ID 11 (alarm class
Errors):Air Pressure Low. - Alarm ID 12 (alarm class
Errors):Safety Door Open.
The right pane shows the AlarmDB tags Emergency_Stop, Air Pressure Low, and Safety Door Open, which confirms the mapping between alarm texts and PLC tags. No other alarms are edited at this stage.
Review the updated table to confirm the entries:
- ID 10: Emergency Stop Pressed (Warnings)
- ID 11: Air Pressure Low (Errors)
- ID 12: Safety Door Open (Errors)
All other alarms keep their default names and classes.

Configure the alarm view display properties
Open the HMI root screen
Navigate to the Root screen under Screens for the HMI device. The root screen editor opens with a blank HMI layout showing the "SIEMENS" logo and the "SIMATIC HMI" header. The right pane shows the Toolbox with basic objects (line, ellipse, rectangle, text, image) and controls, including the alarm view and user management. This is the workspace where you design the HMI interface that displays the alarms.
Set the alarm view display options
Select the Alarm view control on the root screen. In the Properties pane (General > Display), set these options:
- Select
Current alarm statesto display active alarms. - Enable
Pending alarms. - Enable
Unacknowledged alarms. - Under
Alarm class, enableErrors,Warnings, andSystem. - Leave
AcknowledgementandNo Acknowledgementdisabled.
Tooltips explain each option, for example "Specifies that active alarms of the selected alarm class are displayed". This configuration makes the HMI show the relevant active and pending alarms to the operator.

Adjust the alarm classes in the alarm view
- Open the properties panel for
Alarm view_1 [Alarm view]. - On the General tab under Display, make sure
Current alarm statesis selected and bothPending alarmsandUnacknowledged alarmsare checked. - In the
Alarm classtable, keepErrorsandWarningschecked andAcknowledgementandNo Acknowledgementunchecked. - Click the
Systemcheckbox to toggle that class.
- Confirm that
Systemis now unchecked, whileErrorsandWarningsremain enabled. Also confirm thatCurrent alarm statesis still selected with bothPending alarmsandUnacknowledged alarmschecked.


Enable the alarm buffer option
- Under Display, select the
Alarm bufferradio button. - Read the tooltip: "Specifies that alarms of the selected alarm classes are displayed."
- Confirm that
ErrorsandWarningsremain enabled in the alarm class table.

Compile the project and start the HMI simulation
Compile the project
- Switch to the Info tab at the bottom of the screen.
- Click the Compile tab to check for errors or warnings.
- Confirm that the message area displays "No messages exist which meet filter criterion", which indicates a successful compile.

Start the HMI simulation
- When the dialog appears with the message "Start simulation. The simulation starts with screen Root screen.", read it.
- Optionally, check
Do not show this message againif you do not want to see this prompt in the future. - Click OK to proceed.

Open the PLC program block for alarm testing
Navigate to Main [OB1] under Program blocks for PLC_1 [CPU 1214C DC/DC/DC]. The ladder logic diagram shows the networks. Network 5 is highlighted and labeled "Safety Door Open", with the rung %Q0.2 "Safety Door Open" and %DB1.DBX0.2 "AlarmDB".Alarms."Safety Door Open".
Observe the HMI alarm simulation
The screen is split between TIA Portal and a simulated HMI panel labeled "SIMATIC HMI". The HMI panel displays an alarm icon with a count of 1. The alarm table shows a new entry with the date 7/18/2020 and the text "Emergency Stop Pressed". The PLC ladder logic for "Emergency Stop" and "Air Pressure Low" is visible alongside it.
Force PLC tag values and observe alarm behavior
Open the force table and start forcing
In the Force table view, the tag "E Stop":P with address %Q0.0:P is listed, and its Force value is set to TRUE (checked). A warning dialog titled Force all (0710:001) appears with the message "CAUTION: Forcing with '!' Do you want to start 'forcing' now?" Click Yes to confirm.

Force the E Stop tag to 0 and verify alarm clearance
- In the Force table, right-click the forced tag row. The
Force valuecolumn currently showsTRUE. - Hover over Force in the context menu, then select Force to 0 from the submenu. This sets the forced value to
0(FALSE).
- Return to the
Main [OB1]ladder logic view. The%Q0.0 "E Stop"contact now shows a blue dashed line, which indicates it is forced to 0 (FALSE). The "Emergency Stop" rung is not energized. The "Air Pressure Low" contact in Network 4 is present but not yet forced.
- Switch to the SIMATIC HMI RT Simulator window. The alarm table displays
Pending alarmsbut lists no active alarms, and the alarm icon shows a count of 0. All alarms are cleared.


Force the Air Pressure Low tag
- Return to the
Main [OB1]ladder logic view. - Right-click the
%Q0.1 "Air Pressure Low"contact in Network 4. - Hover over Modify and select Modify to 0 (Ctrl+F3) or Modify to 1 (Ctrl+F2) as needed.
After you modify the tag, the %Q0.1 "Air Pressure Low" contact shows a blue dashed line, which indicates it is being forced. The "Air Pressure Low" rung is energized (green line), while "E Stop" remains forced to 0 (blue dashed line). The status bar confirms: "The operand 'ir Pressure Low' was successfully..."
Once both tags are forced to 0, both %Q0.0 "E Stop" and %Q0.1 "Air Pressure Low" display blue dashed lines. Neither the "Emergency Stop" nor the "Air Pressure Low" rung is energized, and no alarms are triggered in this state.



Summary
You have now seen how to create alarms in TIA Portal end to end:
- You created the
AlarmDBdata block with anAlarmsstruct and three Boolean alarm signals with HMI access enabled. - You linked each signal to a ladder logic rung and downloaded the program to the PLC.
- You mapped the
AlarmHMI tag to the PLC, then reviewed and edited the discrete alarms, including alarm text and alarm class. - You configured the alarm view on the HMI root screen, compiled the project, and started the HMI simulation.
- You forced the
E StopandAir Pressure Lowtags to confirm how alarms appear and clear.
What's next
Continue with further HMI configuration and deployment steps, such as additional alarm visualization controls on the root screen.
Generation details: cost, quality tiers
Docsie billed 7,500 credits ($5.25) to analyze this 15-minute video at standard quality. The rewrite, template fill and Word/PDF exports were included. The same video at each quality tier:
| Quality | Frames sampled | Credits | Approx. cost |
|---|---|---|---|
| Draft | every 16-30 s | 3,750 | $2.62 |
| Standard (this guide) | every 8-15 s | 7,500 | $5.25 |
| Detailed | every 4-7 s | 15,000 | $10.50 |
| Ultra | every 1-3 s | 30,000 | $21.00 |
Credits priced at $0.70 per 1,000; plans include a monthly allowance. Enterprise customers on on-premise or bring-your-own-model deployments run this on their own inference and pay no per-video credits.
Generated by Docsie Video-to-Docs on 2026-11-24 from a 14-minute video. Screenshots are frames from the source video and belong to their creator, PLC Programming Tamil, whose original is embedded above. If you own this video and want the guide removed or credited differently, contact us and we will act within one business day.

