# Can you use paramaters with binEnc?

**URL:** <https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551>\
**Category:** Ignition\
**Created:** [September 4, 2024, 8:13pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551 "2024-09-04T20:13:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBurgOT](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@JBurgOT](https://forum.inductiveautomation.com/u/JBurgOT)\
**Post date:** [September 4, 2024, 8:13pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551/1 "2024-09-04T20:13:47Z")

</div>

I have three separate Boolean tags, one for a Running, and 2 for alarms. I need to use these three tags for the state of a pump. If I use a direct tag path for each one it works fine. If I use a parameter in the indirect tag binding it works fine also. But when I try to use binEnc({view.params.TagName}+"/RNG") i get the Error\_ExpressionEval. Is this something that can be done? I have tried a couple different syntax and none have worked.

I want to use parameter so I can make it a template to use in 20-30 other locations. Any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 4, 2024, 8:32pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551/2 "2024-09-04T20:32:40Z")

</div>

I assume you are using a UDT? Why not create another tag in your UDT that holds the `binEnc`. Then bind to that tag instead of trying to do the `binEnc` on the view side.

---

<div class="post-metadata">

**Author:** ![JBurgOT](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@JBurgOT](https://forum.inductiveautomation.com/u/JBurgOT)\
**Post date:** [September 4, 2024, 8:55pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551/3 "2024-09-04T20:55:55Z")

</div>

To update a UDT you have to redownload the program and I am trying not to take this PLC offline.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 4, 2024, 9:02pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551/4 "2024-09-04T21:02:42Z")

</div>

Ignition UDTs are independent of PLC UDTs.

---

<div class="post-metadata">

**Author:** ![JBurgOT](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@JBurgOT](https://forum.inductiveautomation.com/u/JBurgOT)\
**Post date:** [September 4, 2024, 9:04pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551/5 "2024-09-04T21:04:44Z")

</div>

Roger that, I didn't even think of UDTs inside of Ignitions.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 4, 2024, 9:07pm UTC](https://forum.inductiveautomation.com/t/can-you-use-paramaters-with-binenc/95551/6 "2024-09-04T21:07:32Z")

</div>

You can also just move the indirect bindings to three `view.custom` properties (referencing the `view.params.tagpath`) and then have the expression with `binEnc()` point at those properties. That's the best solution for items purely in your UI.
