# Tags Mapping In Script

**URL:** <https://forum.inductiveautomation.com/t/tags-mapping-in-script/69136>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 30, 2023, 6:27am UTC](https://forum.inductiveautomation.com/t/tags-mapping-in-script/69136 "2023-01-30T06:27:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar1](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bharat\_Vinchwekar1](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar1)\
**Post date:** [January 30, 2023, 6:27am UTC](https://forum.inductiveautomation.com/t/tags-mapping-in-script/69136/1 "2023-01-30T06:27:32Z")

</div>

Hello,

I am having 21 machines in 4 categories with overall 220+ tags, for which I am having 20+ tags common in each category. So can someone help me with what method I should referer to binding the tags to screens i.e. either I should with direct tags assignment, use reference tags, or can map the tags in the script with assigned reference tags?

---

<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:** [January 30, 2023, 1:28pm UTC](https://forum.inductiveautomation.com/t/tags-mapping-in-script/69136/2 "2023-01-30T13:28:55Z")

</div>

Indirect binding. That uses a separate string parameter for your views that holds the base folder name of the tags for machine. Within each binding, you reference the string parameter and tack on the rest of path as a constant.

No need for reference tags if you've arranges your OPC tags in folders by machine. (Keep in mind that Ignition tags do not need to follow the same folder hierarchy as the PLC, and usually should not.)

---

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar1](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bharat\_Vinchwekar1](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar1)\
**Post date:** [January 31, 2023, 4:53pm UTC](https://forum.inductiveautomation.com/t/tags-mapping-in-script/69136/3 "2023-01-31T16:53:45Z")

</div>

Thanks Phil for the suggestion, but i am very new to the Ignition platform can you please help out in a another way because solution you suggsted is little tricky for me to understand. Hope you wont mind that.

Thank in advance.

---

<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:** [January 31, 2023, 5:09pm UTC](https://forum.inductiveautomation.com/t/tags-mapping-in-script/69136/4 "2023-01-31T17:09:48Z")

</div>

Inductive University is best source of the basics of Ignition:

> **[Indirect Tag Binding - Tag Bindings in Vision](https://www.inductiveuniversity.com/video/indirect-tag-binding/8.1)**
>
> Indirect Tag Binding: An indirect Tag binding is very much like a standard Tag binding, except that you may introduce any number of indirection parameters to build a Tag path dynamically in the runtime. Learn more about Tag Bindings in Vision

Consider going through the whole thing.
