# Memory boolean tag alarm enabled

**URL:** <https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756>\
**Category:** Ignition\
**Created:** [June 25, 2025, 8:54am UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756 "2025-06-25T08:54:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anders\_Liedman](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Anders\_Liedman](https://forum.inductiveautomation.com/u/Anders_Liedman)\
**Post date:** [June 25, 2025, 8:54am UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/1 "2025-06-25T08:54:13Z")

</div>

Hi, new to Ignition and I'm probably missing something, but I'm trying to access the enabled flag on an alarm set on a boolean memory tag. What am I doing wrong? Here comes a simple test variable

{  
"valueSource": "memory",  
"dataType": "Boolean",  
"alarms": [  
{  
"setpointA": 1.0,  
"name": "Alarm",  
"label": "t",  
"displayPath": "t"  
}  
],  
"name": "ttt",  
"value": false,  
"tagType": "AtomicTag"  
}  
seems there are none??

it works on my opc tags. {  
"valueSource": "opc",  
"opcItemPath": "nsu\u003dCODESYSSPV3/3S/IecVarAccess;s\u003d|var|LAH\_SRV\_KNAR.Application.HMI.M1\_L\_D",  
"Invert": "0",  
"alarms": [  
{  
"notes": "Knäred RV M1 Driftlarm",  
"timeOnDelaySeconds": 5.0,  
"priority": "High",  
"enabled": true,  
"name": "M1\_L\_D",  
}  
],  
"tooltip": "Driftlarm",  
"tagType": "AtomicTag",  
"historyProvider": "MSSQL",  
"dataType": "Boolean",  
"name": "M1\_L\_D",  
"historyEnabled": true,  
"opcServer": "LAH\_SRV\_KNAR\_PLC1"  
}

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [June 25, 2025, 9:12am UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/2 "2025-06-25T09:12:09Z")

</div>

How are you trying to access the attribute?  
Please post formatted code, it makes life so much easier.

---

<div class="post-metadata">

**Author:** ![Anders\_Liedman](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Anders\_Liedman](https://forum.inductiveautomation.com/u/Anders_Liedman)\
**Post date:** [June 25, 2025, 9:35am UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/3 "2025-06-25T09:35:17Z")

</div>

Thanks!

```python

try:
    tagValue = system.tag.readBlocking([tagPath])[0]
    result["current_value"] = tagValue.value
    result["tag_quality"] = str(tagValue.quality)
    system.util.getLogger("MessageHandler").info("Tag value: {}, Quality: {}".format(tagValue.value, tagValue.quality))
except Exception as e:
    result["tag_read_error"] = str(e)

# Debug alarm config
if "alarms" in result:
    system.util.getLogger("MessageHandler").info("Alarm config: {}".format(result["alarms"]))
    
    if len(result["alarms"]) > 0:
        alarm = result["alarms"][0]
        all_keys = list(alarm.keys())
        system.util.getLogger("MessageHandler").info("All alarm keys: {}".format(all_keys))
        
        # Check specifically for enabled
        has_enabled = "enabled" in alarm
        system.util.getLogger("MessageHandler").info("Enabled exists: {}".format(has_enabled))
        if has_enabled:
            system.util.getLogger("MessageHandler").info("Enabled value: {}".format(alarm["enabled"]))
        else:
            # Check for other possible variants
            possible_enabled_keys = [k for k in all_keys if 'enable' in k.lower()]
            system.util.getLogger("MessageHandler").info("Possible enabled keys: {}".format(possible_enabled_keys))

```

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [June 25, 2025, 9:44am UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/4 "2025-06-25T09:44:53Z")

</div>

If I print the system.tag.readBlocking() response object as json I get:  
`{"value":false,"quality":{"code":192},"timestamp":"Jun 25, 2025, 9:22:47 AM"}`

This doesn't contain alarm information.  
Perhaps [system.tag.getConfiguration | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-getConfiguration) could get you the information you require?

---

<div class="post-metadata">

**Author:** ![Anders\_Liedman](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Anders\_Liedman](https://forum.inductiveautomation.com/u/Anders_Liedman)\
**Post date:** [June 25, 2025, 1:28pm UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/5 "2025-06-25T13:28:17Z")

</div>

Ok, seems like I found the error. When I created the tag, enabled was true in the GUI but wasn't stored on the tag. If I changed the status on it and saved, then it was stored for the tag and could be accessed."

So it sounds like there was a GUI issue where the enabled flag wasn't actually being persisted to the tag configuration until you explicitly changed and saved it.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 25, 2025, 4:00pm UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/6 "2025-06-25T16:00:19Z")

</div>

Not a GUI issue. Default values are deliberately not persisted as a storage optimization - but are stored once you change them (and evidently not cleaned up).

---

<div class="post-metadata">

**Author:** ![Anders\_Liedman](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Anders\_Liedman](https://forum.inductiveautomation.com/u/Anders_Liedman)\
**Post date:** [June 26, 2025, 5:29am UTC](https://forum.inductiveautomation.com/t/memory-boolean-tag-alarm-enabled/107756/7 "2025-06-26T05:29:30Z")

</div>

```python
So in my case the logic in my script should be:

if (alarms && !enabled) {
    enabled = true;
}
something like that. 
Thanks for the answer, it explains the matter.

```
