Skip to main content

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.

Prerequisites
  • You finished Your first pipeline: the plant model exists (including the equipment Compressor) and the simulator demo-sim runs.
  • You are signed in as an engineer or admin (to create definitions) and may acknowledge alarms (operator or 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.

  1. Open Connectivity → Devices and click Add device. Choose Modbus TCP.
  2. Name line1-compressor. ISA-95 equipment Compressor. IP Address demo-sim, Port 5024 (the simulator's Compressor port; 5020 already belongs to line1-modbus, and the Console allows one device per host and port).
  3. In Groups & tags click Create group: Group name fast, Interval (ms) 1000.
  4. Add a tag: Name Pressure, Type FLOAT, Address 4!40004, Unit bar, Attribute Read. Add a second tag State, UINT16, 4!40001.
  5. Click Create & connect.
  6. Check Monitoring → Trends for Pressure of the Compressor: values between about 7 and 8 bar.

2. Create the alarm definition​

  1. Open Monitoring → Alarms and select the tab Definitions. The hint says "Engineer or admin can create definitions that are sent to the site runtimes."

  2. Fill the form:

    FieldValue
    Tag IDSelect the tag Pressure of the Compressor with the picker Select a tag
    KindHI
    Limit8.0
    Deadband0.2
    Priority2 High
    MessageCompressor pressure high
    Enabledon
  3. Click Create definition. The new row appears in the list with Kind HI, Limit 8, Priority 2 and Enabled.

Alarms, Definitions tab with the compressor pressure definitions
Alarms, Definitions tab with the compressor pressure definitions

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​

  1. Open the tab Active. The page shows "Showing: N".
  2. Within about ten minutes a row appears: Priority 2, State ActiveUnack, Kind HI, Tag Pressure, Message "Compressor pressure high", Since with the time.
  3. The Overview tile "Active alarms" counts it too.
Active alarms list with one HI alarm in ActiveUnack
Active alarms list with one HI alarm in ActiveUnack

4. Acknowledge the alarm​

  1. Click Acknowledge on the row. The dialog "Acknowledge alarm" opens.
  2. In Comment write Checked, short load peak. The comment is optional and goes to the audit trail.
  3. 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.

Acknowledge alarm dialog with a comment
Acknowledge alarm dialog with a comment

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.

  1. Wait for the next alarm, then click Shelve on the row. The dialog "Shelve alarm" opens.
  2. Comment: Compressor test, maintenance informed. Shelve duration (minutes): 30.
  3. 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.

Shelve limit

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.

Shelve alarm dialog with 30 minutes
Shelve alarm dialog with 30 minutes

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:

WhenEventFrom → ToActor
10:41:07activateNormal → ActiveUnack
10:41:52ackActiveUnack → ActiveAckyour user name
10:43:30returnActiveAck → 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​

Process alarms are not sent by email

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.alarms with SQL and build your own notification, for example in Grafana.

You can still set up email for platform health, and test it:

  1. Open Settings → Alerts (you need the right to configure, and a user who is not scoped).
  2. In the email section tick Send email alerts. Fill SMTP host, Port, Username, Password, From and To (comma-separated).
  3. Tick STARTTLS (port 587) if your server needs it. Click Save email settings, then Send test email.
Alerts settings with email fields
Alerts settings with email fields

Check it works​

  • The Definitions list shows HI, limit 8, priority 2, enabled.
  • An alarm raised in ActiveUnack while the Compressor pressure was at or above 8.0 bar.
  • After Acknowledge the state was ActiveAck, and the alarm returned to Normal below 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​

Troubleshooting​

SymptomLikely causeFix
No alarm after 15 minutesCompressor 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 refusedKind 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 emptyThe 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 AcknowledgeThe alarm is not in an acknowledgeable state any more (already acknowledged, or shelved).Refresh the list.
Error 404 on AcknowledgeThe alarm is not on any online runtime.Refresh, check the runtime status.
The alarm raises and clears many times a minuteDeadband is 0 or too small.Edit the definition and set a deadband, for example 0.2.
No email arrives for the HI alarmEmail does not cover process alarms.See the caution above.