# Expression Tags Help

**URL:** <https://forum.inductiveautomation.com/t/expression-tags-help/41294>\
**Category:** General Discussion\
**Created:** [December 8, 2020, 2:42pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294 "2020-12-08T14:42:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 2:42pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/1 "2020-12-08T14:42:25Z")

</div>

I am having trouble creating an expression tag. I have a pump that I need to look at a few tags that if it faults it will blink red. How do I write my expression tag so that if any one of the tags become true it will fault my pump. I know how to make the pump flash red but i just don’t know how to make this pump look at several tags at once. Thanks.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 3:36pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/2 "2020-12-08T15:36:58Z")

</div>

In the expression tag:

```auto
{path/tag1} ||
{path/tag2} ||
{path/tagN}

```

If any of your tags become true, this will turn your expression tag on.

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:07pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/3 "2020-12-08T16:07:12Z")

</div>

I’m looking at bits of a memory word from a plc for these tags, does my data type need to be boolean or something else? Thanks

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 4:15pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/4 "2020-12-08T16:15:08Z")

</div>

Are the memory words a collection of status bits or a status int?

For what I posted above, {path/tag} don’t need to be boolean as long as the OK (pump not faulted) state is 0. When the value of that tag (boolean or integer) goes to anything non-zero the expression will return True and, in your example, the pump would fault.

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/5 "2020-12-08T16:23:45Z")

</div>

![IMG_12341](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/1/01ccc49d86b89493c82bc1d5dcc1a3150887180d.jpeg) ![IMG_12351](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2f48f4c761db9e456465b154ff25e4a40c9d6c61.jpeg) ![IMG_12361](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/2/52448b668728dd9751cf68b184279a640c626455.jpeg)

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:25pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/6 "2020-12-08T16:25:58Z")

</div>

Hope these pictures actually went through, this is what im working with. Is there something i’m doing wrong here? We just switched to ignition last year and we are trying to work out all the bugs with it, we don’t have much experience with it yet. Thanks

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 4:27pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/7 "2020-12-08T16:27:20Z")

</div>

What version of Ignitio is this?

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:27pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/8 "2020-12-08T16:27:29Z")

</div>

7.9

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 4:28pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/9 "2020-12-08T16:28:25Z")

</div>

Nvm. Didn’t look at all the pictures. Sorry.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 4:29pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/10 "2020-12-08T16:29:54Z")

</div>

What type of tag are VFD Fault, Comm Fail, and Fail to Start?

Edit: They look like maybe UDTs, but I’m not that familiar with 7.9.

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:30pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/11 "2020-12-08T16:30:12Z")

</div>

It’s okay our tech support guy is out right now, so i thought id look for answers and help on here

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:33pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/12 "2020-12-08T16:33:16Z")

</div>

tagBool

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/13 "2020-12-08T16:40:01Z")

</div>

They don’t show values in the tag browser, which is why I asked if they were UDTs.

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/14 "2020-12-08T16:40:56Z")

</div>

Yes they are UDT’s

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [December 8, 2020, 4:44pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/15 "2020-12-08T16:44:51Z")

</div>

In your expression you need to provide a path to a thing that has a value (probably one level deeper). Your UDTs don’t inherently have a value associated. I can’t take a screen shot on 7.9, but there is a button in the top right when you’re writing your expression that looks like a tag. That will let you pick tags from a gui instead of typing them out.

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 4:47pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/16 "2020-12-08T16:47:31Z")

</div>

Yes thats where I got my tags from, I didn’t type them I selected them from the insert tag button on the top right.

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [December 8, 2020, 5:34pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/17 "2020-12-08T17:34:39Z")

</div>

@zacht is just saying you need to expand the UDT, there should be a tag inside of it that is probably an int or bool that gives the status for that alarm condition. You need to use that, the UDT itself has no value associated with it, it is unaware of the tags inside of it. If you hit the plus next to the 3 tags you want to monitor what does it give you inside of the UDTs?

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 6:19pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/18 "2020-12-08T18:19:21Z")

</div>

Okay, may be getting somewhere now. I can now see a 1 for the value of that expression tag because for this particular pump i do have an alarm active. But when I assign the expression to the pump the pump doesnt like it for some reason.

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [December 8, 2020, 6:31pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/19 "2020-12-08T18:31:28Z")

</div>

If your binding it to an object on the screen and there is an issue, it should give you some kind of error. I’d look in your console in the designer to see what the error states. It may also give you a popup for the error depending on what it is.

---

<div class="post-metadata">

**Author:** ![Isaac.Davis](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@Isaac.Davis](https://forum.inductiveautomation.com/u/Isaac.Davis)\
**Post date:** [December 8, 2020, 6:34pm UTC](https://forum.inductiveautomation.com/t/expression-tags-help/41294/20 "2020-12-08T18:34:44Z")

</div>

Okay I got that worked out, thought I wouldn’t have issues with this ethier but is there something i can add to this expression so that when any of those are true to make the pump flash red? Thanks

[Next page](https://forum.inductiveautomation.com/t/expression-tags-help/41294.md?page=2)
