Alarm on a limit
What you build
A HI alarm on the Compressor discharge pressure: it raises when the pressure reaches 8.0 bar, stays until the pressure falls below 7.8 bar (limit minus deadband 0.2) and has priority 2 (High). You then acknowledge it, shelve it and read the alarm journal.
Time: about 20 minutes, plus up to 10 minutes of waiting for the first alarm.
- You finished Your first pipeline: the plant model exists (including the equipment Compressor) and the simulator
demo-simruns. - You are signed in as an engineer or admin (to create definitions) and may acknowledge alarms (
operatoror higher).
How the simulator behaves
With the Compressor running, the simulator moves the pressure in a wave between 6.9 and 8.1 bar with a period of about 9.4 minutes. It crosses 8.0 bar once per wave, so the alarm raises about every nine minutes and stays active for about two and a half minutes. The deadband keeps it active until the pressure is back below 7.8 bar. When the Compressor is stopped, the pressure stays between 7.2 and 7.8 bar and no alarm raises.
Step by step
1. Add the Compressor pressure tag
One device is linked to one equipment. The Filler tags live on line1-modbus, so the Compressor gets its own device that talks to unit id 4.
- Open Connectivity → Devices and click Add device. Choose Modbus TCP.
- Name
line1-compressor. ISA-95 equipment Compressor. IP Addressdemo-sim, Port5024(the simulator's Compressor port;5020already belongs toline1-modbus, and the Console allows one device per host and port). - In Groups & tags click Create group: Group name
fast, Interval (ms)1000. - Add a tag: Name
Pressure, Type FLOAT, Address4!40004, Unitbar, Attribute Read. Add a second tagState, UINT16,4!40001. - Click Create & connect.
- Check Monitoring → Trends for
Pressureof the Compressor: values between about 7 and 8 bar.
2. Create the alarm definition
-
Open Monitoring → Alarms and select the tab Definitions. The hint says "Engineer or admin can create definitions that are sent to the site runtimes."
-
Fill the form:
Field Value Tag ID Select the tag Pressureof the Compressor with the picker Select a tagKind HILimit 8.0Deadband 0.2Priority 2 HighMessage Compressor pressure highEnabled on -
Click Create definition. The new row appears in the list with Kind HI, Limit 8, Priority 2 and Enabled.

Only four kinds can be created: HI, HIHI, LO and LOLO. HI and HIHI are true when the value is greater than or equal to the limit. LO and LOLO are true when the value is less than or equal to the limit. The deadband applies on the way back only: a HI alarm clears when the value is below limit minus deadband.
3. Wait for the alarm to raise
- Open the tab Active. The page shows "Showing: N".
- Within about ten minutes a row appears: Priority 2, State
ActiveUnack, KindHI, TagPressure, Message "Compressor pressure high", Since with the time. - The Overview tile "Active alarms" counts it too.

4. Acknowledge the alarm
- Click Acknowledge on the row. The dialog "Acknowledge alarm" opens.
- In Comment write
Checked, short load peak. The comment is optional and goes to the audit trail. - Click Acknowledge.
The state changes to ActiveAck. When the pressure drops below 7.8 bar the alarm returns to Normal and leaves the Active list. If the pressure falls before you acknowledge, the state is RTNUnack ("returned, unacknowledged") and one more acknowledge sets it to Normal.

Needs the right to acknowledge alarms (ack_alarms: operator, senior operator, controls engineer, admin).
5. Shelve an alarm
Shelving silences a known nuisance for a while. Use it, for example, during a planned test of the Compressor.
- Wait for the next alarm, then click Shelve on the row. The dialog "Shelve alarm" opens.
- Comment:
Compressor test, maintenance informed. Shelve duration (minutes):30. - Confirm. The alarm leaves the Active list and appears in the Journal as Shelved.
While an alarm is shelved, new activations and returns are ignored. After the duration it returns to Normal, and the next sample raises it again if the pressure is still at or above 8.0 bar.
The form accepts 1 to 10080 minutes, but the collector limits a shelve to 24 hours (default 1 hour). A longer value is cut to 24 hours.

6. Read the journal
Open the tab Journal. Every state change is a row: When, Priority, Event, From → To, Tag, Message, Actor. Expect this sequence for one alarm:
| When | Event | From → To | Actor |
|---|---|---|---|
| 10:41:07 | activate | Normal → ActiveUnack | |
| 10:41:52 | ack | ActiveUnack → ActiveAck | your user name |
| 10:43:30 | return | ActiveAck → Normal |
The Journal and the table mii_data.alarms hold the same events. See Read with SQL.
7. Check for chattering
Reports → Alarm analysis counts how often alarms raise and flags chattering: three or more activations within one minute. A deadband is the usual cure. Because you set 0.2 bar, this alarm does not chatter. To see the effect, create a second definition on the same tag with Deadband 0 and compare after an hour.
Get told about alarms: what email can and cannot do
The Settings → Alerts page sends email and webhooks for platform health only: "Driver failed", "Destination disconnected", "Rules queue depth" and "Edge offline". There is no trigger for process alarms such as your HI alarm. Do not rely on email to learn about this alarm.
What you can do today:
- Watch Monitoring → Alarms or the Overview tile "Active alarms".
- Ask an AI assistant "Which alarms are active?" (tool
mii_monitor_alarms). See Claude with MCP. - Read
mii_data.alarmswith SQL and build your own notification, for example in Grafana.
You can still set up email for platform health, and test it:
- Open Settings → Alerts (you need the right to configure, and a user who is not scoped).
- In the email section tick Send email alerts. Fill SMTP host, Port, Username, Password, From and To (comma-separated).
- Tick STARTTLS (port 587) if your server needs it. Click Save email settings, then Send test email.

Check it works
- The Definitions list shows HI, limit 8, priority 2, enabled.
- An alarm raised in
ActiveUnackwhile the Compressor pressure was at or above 8.0 bar. - After Acknowledge the state was
ActiveAck, and the alarm returned toNormalbelow 7.8 bar. - A shelved alarm disappeared from Active and shows in the Journal.
- The Journal rows carry your user name as Actor for ack and shelve.
Next steps
Alarms in depth
States, kinds, reports and limits.
OEE for a line
Turn stops and counters into OEE.
Claude with MCP
Ask an assistant why an alarm came.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| No alarm after 15 minutes | Compressor State is not 1 (stopped or faulted), or the tag is not polled. | Check the trend of Pressure and State. The simulator restarts the Compressor within a few minutes. |
| Create definition is refused | Kind other than HI, HIHI, LO, LOLO, or you lack the right. | Use HI, and sign in as an engineer or admin. |
| The tag picker is empty | The device has no Pressure tag, or the device is not bound to equipment. | Check Connectivity → Devices. |
| Acknowledge says "Acknowledge and shelve are not available yet (no online runtime or capability missing)." | The runtime is offline or too old. | Check Connectivity → Runtimes. |
| Error 409 on Acknowledge | The alarm is not in an acknowledgeable state any more (already acknowledged, or shelved). | Refresh the list. |
| Error 404 on Acknowledge | The alarm is not on any online runtime. | Refresh, check the runtime status. |
| The alarm raises and clears many times a minute | Deadband is 0 or too small. | Edit the definition and set a deadband, for example 0.2. |
| No email arrives for the HI alarm | Email does not cover process alarms. | See the caution above. |