# Create an alarm without tag using python script

**URL:** <https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239>\
**Category:** Ignition\
**Created:** [May 5, 2022, 8:33am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239 "2022-05-05T08:33:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 5, 2022, 8:33am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/1 "2022-05-05T08:33:45Z")

</div>

Hello,

I want to know if it is possible to create an alarm without using a tag

For exemple,  
I have to values  
b = 3 and b =10

if a\>b:  
Active alarm and Write stats of alarm on “Alarm Status table Display”

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [May 5, 2022, 9:29am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/2 "2022-05-05T09:29:49Z")

</div>

The top line here: [Alarming](https://docs.inductiveautomation.com/display/DOC81/Alarming), says that “Alarms are always configured on a Tag”.

The bigger question is why do you want to not use a tag?

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 5, 2022, 9:45am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/3 "2022-05-05T09:45:29Z")

</div>

I don’t want use tag because I create a tag memory, I configure an alarm but I can’t write a value on a Setpoint with a script. On my view, I have a Textfield and I want put this Textfield on a Setpoint of my alarm.

But if sommene know how I can’t take a value of a Textfield and bindit it with my SetPoint of my alam, it will also solve me.

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [May 5, 2022, 9:49am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/4 "2022-05-05T09:49:51Z")

</div>

You can configure alarms via script with this function:

[https://docs.inductiveautomation.com/display/DOC81/system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 5, 2022, 9:58am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/5 "2022-05-05T09:58:42Z")

</div>

An other big question might be: What is the alarm for ?

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 5, 2022, 10:22am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/6 "2022-05-05T10:22:56Z")

</div>

I tried but I have error

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d714ac1aada381811f7a2a31141917cd109ba9b4.png)

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 5, 2022, 10:26am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/7 "2022-05-05T10:26:49Z")

</div>

I would like to monitor the operation of a motor using a graph.

In fact on the graph, I calculated the maximum values ​​over a time interval.

And I would like to send the value calculated on the Setpoint of my alarm

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [May 5, 2022, 10:38am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/8 "2022-05-05T10:38:17Z")

</div>

Your baseTagPath is wrong… it should be:

```auto
baseTagPath = "[Formation]m1"

```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 5, 2022, 11:43am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/9 "2022-05-05T11:43:04Z")

</div>

I still fail to see the point of the alarm here. What does it do ?

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 5, 2022, 11:56am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/10 "2022-05-05T11:56:55Z")

</div>

Thank you, but have another erro: [Bad\_Unsupported(“The target path ‘[Formation]m1’ cannot accept children tags.”)]

I have a tag called m1 on my tags. I juste want update Setpoint value of my alarm configured on m1.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/05e39decab35a8b1656c2e3abb0b4d7d18685602.png)

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 5, 2022, 12:04pm UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/11 "2022-05-05T12:04:53Z")

</div>

I need use alarm to monitor my engine operation.

I will compare my tag value and Setpoint value of alarme.  
if Setpoint is Above tag value I will active an alarm.

Uploading: image.png…

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0fb85f26a5fdb1cefb8cb2546f106a962135185d.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/e/3e631c9e08c3749e3001534a13ce0a4e45f6e618.png)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 5, 2022, 12:18pm UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/12 "2022-05-05T12:18:26Z")

</div>

`[formation]m1` needs to be a folder, and it appears to be a memory tag in your tag browser.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [May 5, 2022, 12:21pm UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/13 "2022-05-05T12:21:01Z")

</div>

Let’s take another approach:  
Create a memory tag named `calculatedSetpoint`.  
Then in your `m1` tag, in alarms config, bind Setpoint to that `calculatedSetpoint` tag…

 ![Screenshot_44](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/59a5f72795cd3ef69b81d5e3c00d79db41c8e267.png)  
Now you can write your calculated setpoint into the `calculatedSetpoint` tag and it will trigger the alarm if the `m1` value is above the setpoint…

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 5, 2022, 12:46pm UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/14 "2022-05-05T12:46:27Z")

</div>

That’s probably a better way to do it, indeed.

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 6, 2022, 6:58am UTC](https://forum.inductiveautomation.com/t/create-an-alarm-without-tag-using-python-script/59239/15 "2022-05-06T06:58:00Z")

</div>

thank it work good.
