# Any idea how to put the setpoint of alarm into a text field?

**URL:** <https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 13, 2020, 5:34am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880 "2020-04-13T05:34:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 13, 2020, 5:34am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/1 "2020-04-13T05:34:36Z")

</div>

Hi im new with ignition, any tips on how do i put the setpoint of a alarm into a text field?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/82a28f8e6636eaf3c3e189b1691f5ce00612452c.png)

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [April 13, 2020, 12:27pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/2 "2020-04-13T12:27:45Z")

</div>

Unfortunately this is not a simple dot-field under the tag but I hope someday it will be.

If you like the idea of it being an exposed parameter under the tag please vote up my request:  
[https://inductiveautomation.canny.io/ignition-features-and-ideas/p/expose-all-properties-of-a-tag](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/expose-all-properties-of-a-tag)

Anyhow, you have to start here:  
[https://docs.inductiveautomation.com/display/DOC80/system.tag.getConfiguration](https://docs.inductiveautomation.com/display/DOC80/system.tag.getConfiguration)

As you drill into the configuration, you will see the setpoint configured on an alarm on a specific tag.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 13, 2020, 3:22pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/3 "2020-04-13T15:22:08Z")

</div>

I always setup setpoint tags. That way you can easily access them.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [April 13, 2020, 4:18pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/4 "2020-04-13T16:18:33Z")

</div>

> [@brandon1](#):
>
> Anyhow, you have to start here:  
> [https://docs.inductiveautomation.com/display/DOC80/system.tag.getConfiguration](https://docs.inductiveautomation.com/display/DOC80/system.tag.getConfiguration)
> 
> As you drill into the configuration, you will see the setpoint configured on an alarm on a specific tag.

This is for Ignition 8, but what about 7.9 and lower? Is there a way to get alarm properties for a tag in 7.9?

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 13, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/5 "2020-04-13T16:23:14Z")

</div>

you could use this

# [system.tag.getAlarmStates](https://docs.inductiveautomation.com/display/DOC79/system.tag.getAlarmStates)

you would have to loop thru each alarm state and grab the setpoint property. what exactly you would have to do would be dependant on your alarming setup.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [April 13, 2020, 4:24pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/6 "2020-04-13T16:24:42Z")

</div>

Thanks, let me explore.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 13, 2020, 4:27pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/7 "2020-04-13T16:27:51Z")

</div>

much easier to just create the setpoint tag. my typical analog would have 4 states, HH,H,L,LL. I just create 4 memory tags the name of the tag but with HHSP,HSP,LSP,LLSP appended on the end.

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [April 13, 2020, 5:13pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/8 "2020-04-13T17:13:07Z")

</div>

I agree this is a straightforward approach but it does not scale well. In 10,000 tag systems I don’t want to track a whole bunch of extra memory tags.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [April 13, 2020, 5:15pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/9 "2020-04-13T17:15:54Z")

</div>

Is there a way to export the tag configuration into an XML file or object thru a script function? The manual export of tag or tag folder XML from designer exports all properties including alarm properties. If its possible to export them in a file or an object thru scripts, then we can modify them and re-import them with new properties. It will change what ever parameters that we want to change!

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 13, 2020, 5:58pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/10 "2020-04-13T17:58:29Z")

</div>

I guess it depends on how your system is setup… but it does scale real well. every single tag that is analog and has alarming enabled will have these same 4 tags. that means that any script that creates tags or deletes tags knows exactly what to do. Also any screen that would need to use the setpoints knows if I add HHSP to the tagname I can access the setpoint. its a much cleaner option than having to pull the tag config and write the tag config every time you want to make a change… IMHO of course. Really depends on your architecture though. If you have a bunch of oddball setpoints and it isnt uniform, then I could somewhat see it being more of a pain.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 13, 2020, 6:04pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/11 "2020-04-13T18:04:39Z")

</div>

it looks like you can, at least in 8.0, export an xml or json file thru scripting. my guess is you could use that to write a file then read it back in and script thru your changes.

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 14, 2020, 12:30am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/12 "2020-04-14T00:30:11Z")

</div>

Thanks for all the reply guys! i will read them 1by 1

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 14, 2020, 12:31am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/13 "2020-04-14T00:31:15Z")

</div>

Hi diat 150, can you enlighten me with this one? i’m not used with scripting but i can understand a little bit. can you explain this 1 in a simple way?

---

<div class="post-metadata">

**Author:** ![shibubalaji](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shibubalaji/32/9165_2.png) [@shibubalaji](https://forum.inductiveautomation.com/u/shibubalaji)\
**Post date:** [April 19, 2020, 4:48pm UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/14 "2020-04-19T16:48:47Z")

</div>

There is an easy way to do this, if you have only two alarm set points as Low Alarm and High Alarm.

1. In Tag editor, set the alarm tag binding to Eng.High and Eng.Low (if you are not using those Eng Low and High)
2. Create text field and indirectly bind with the option of bi-directional
3. Set a user privilege for this text field, so that, only Engineering User can change this alarm set point.

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 24, 2020, 12:13am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/15 "2020-04-24T00:13:15Z")

</div>

Hi sir, first thanks for your idea, can you help how do i bind a tag “eng.high” and “eng.low” do i need to create this tag? thanks in advance

---

<div class="post-metadata">

**Author:** ![shibubalaji](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shibubalaji/32/9165_2.png) [@shibubalaji](https://forum.inductiveautomation.com/u/shibubalaji)\
**Post date:** [April 24, 2020, 12:54am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/16 "2020-04-24T00:54:55Z")

</div>

Go to tag editor( of the tag that you wanted to set alarm for) and select alarm  
Add new alarm and name as HighAlarm and its set point can be dynamically assigned to Eng.High of the same tag.  
Later on i will try to share the screenshort as i cant snipp the screen now.

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 24, 2020, 12:59am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/17 "2020-04-24T00:59:35Z")

</div>

Thanks for the reply man, i’ll try this one ill update you if it works asap.

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 24, 2020, 1:05am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/18 "2020-04-24T01:05:41Z")

</div>

> [@shibubalaji](#):
>
> Create text field and indirectly bind with the option of bi-directional

Hi there, i did the first step, i have set the setpoint with corresponding eng.high and eng.low tags, my problem now is this step:  
"Create text field and indirectly bind with the option of bi-directional"  
where do i see that bi-directional option?  
Thanks in advance !

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 24, 2020, 1:06am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/19 "2020-04-24T01:06:52Z")

</div>

> [@shibubalaji](#):
>
> t a user privilege for this text field, so that,

nvm i saw it now haha

---

<div class="post-metadata">

**Author:** ![marcg](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@marcg](https://forum.inductiveautomation.com/u/marcg)\
**Post date:** [April 24, 2020, 1:11am UTC](https://forum.inductiveautomation.com/t/any-idea-how-to-put-the-setpoint-of-alarm-into-a-text-field/33880/20 "2020-04-24T01:11:43Z")

</div>

Sir can i ask again? how do i set a default value on that alarm?

my goal is it has a default value of setpoint on high and low alarm and its setpoints is editable with text field.
