# Adding OPC Tags

**URL:** <https://forum.inductiveautomation.com/t/adding-opc-tags/10939>\
**Category:** Module Development\
**Created:** [December 18, 2015, 8:05pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939 "2015-12-18T20:05:59Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [December 18, 2015, 8:05pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/1 "2015-12-18T20:05:59Z")

</div>

Hi,

I tried to create a new OPC Tag in the Ignition version 7.8. The tag gets created under ROOT folder , but it doesn't appear in the OPC Browser window! What appears in the OPC Browser window? Do only PLC tags appear there? Can I create folders and subfolders in the OPC server and add tags there?

My understanding of an OPC server was that I should be able to configure my own address space there which I can access from an OPC Client.

Would appreciate some light on this.

Best Regards  
PRAMANJ

---

<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:** [December 19, 2015, 3:52am UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/2 "2015-12-19T03:52:34Z")

</div>

OPC drivers supply namespaces to the OPC server as ‘nodes’, which can then optionally offer browsing of their contents. The contents are entirely defined by the driver, and vary considerably among protocols and PLC brands.  
The namespace you define in Ignition is the tree of Gateway Tags. These tags can be subscriptions of OPC items, either by drag-and-drop from the OPC Browser or by manually entering an item address that a particular driver understands. Gateway tags don’t have to be subscribed to OPC items, and they can be arranged in any folder structure you like. With the help of a third party driver, Gateway tags can be published as OPC items for external use.  
The Ignition designer’s OPC Browser shows the addresses of data offered by browsable nodes, nothing more. The designer’s Tag Browser shows actual running tag objects & data and allows you to manipulate the tree of objects.

---

<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:** [December 19, 2015, 5:18am UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/3 "2015-12-19T05:18:33Z")

</div>

Thanks a lot General for the clear explanation. Which the third party driver that allows mapping Gateway tags as OPC items? Is it available as a module in the market place? What prevents Ignition to allow such direct publishing to its OPC server? Ideally an OPC server should support configuring its address space as well? Does Ignition have plans to provide this feature in future so that we can avoid third party modules? Can it be taken as a change request? (Perhaps Kevin Heron can commnet on this?).

Thanks again ,  
best regards  
PRAMANJ  
 ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<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:** [December 19, 2015, 3:15pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/4 "2015-12-19T15:15:40Z")

</div>

[Kymera SQLTag Driver](http://marketplace.inductiveautomation.com/moduledetail?moduleId=74). It hasn’t been updated for v7.7 or v7.8. You’ll need to contact Kymera.  
I’m afraid I don’t really understand why Ignition’s architecture isn’t meeting your needs. I think you should go to the [feature requests / ideas](http://ideas.inductiveautomation.com/) site and explain exactly how you want it to work and why. If a competitive product does this the way you want, point it out as an example. If enough people agree that it would be useful, it has a better chance of being picked up.

---

<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:** [December 19, 2015, 4:23pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/5 "2015-12-19T16:23:27Z")

</div>

Thanks General for the module details. I think this will meet my requirement, but I need to explore it further if they provide an evaluation version.

My requirement is I should be able to define my own tags in OPC UA server of Ignition for my simulation client module to integrate with Ignition. I will not have a physical PLC or controller in the simulated plant. I think the kyamera module will allow me to access internal SQLTags on ingition from an OPC Client. But if this feature is built in Ignition it will avoid the requirement of a third party module.

I will put this as a suggested feature in the link you gave.

Best Reagrds  
[http://www.pramanj.com](http://www.pramanj.com)  
 ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:") ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 19, 2015, 9:15pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/6 "2015-12-19T21:15:24Z")

</div>

Ignition now has the functionality of the Kymera driver built in… I believe it’s called “exposed tags” and it’s configurable in the OPC-UA server settings.

---

<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:** [December 19, 2015, 11:21pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/7 "2015-12-19T23:21:54Z")

</div>

[quote=“Kevin.Herron”]I believe it’s called “exposed tags”[/quote]Ah! Yes, it is. Very interesting.

---

<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:** [December 20, 2015, 7:06am UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/8 "2015-12-20T07:06:50Z")

</div>

Thanks a lot Kevin and pturmel, I will explore this feature in Ignition. I want to be able to simulate the whole plant including the process / logic and control without have any physical PLCs connected. Of course the logic and control will be simulated at functional level irrespective of type of PLCs used in the real plant, but with any specific control blockes will be replicated.

I hope there are no ristrictions on the number of "exposed tags" in Ignition!

Best Regards  
for [http://www.pramanj.com](http://www.pramanj.com)

---

<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:** [December 26, 2015, 6:53pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/9 "2015-12-26T18:53:31Z")

</div>

I checked the "Expose Tag Providers" check box in the configuration panel of Ignition for OPC-UA settings menu. Then I expected so see all my memory tags that I defined in the default tag provider, but it doesn't appear there! Then I tried to convert the type of memory tags from memory to OPC tags, but it gives an '?' red mark on or 'x' red mark on the tags in default folder and it didn't reflect in OPC Browser window.! Rather it gives following error in the OPC Window:

"GatewayException: UaException: status=Bad\_ConfigurationError, message=no matching endpoints found  
caused by ExecutionException: UaException: status=Bad\_ConfigurationError, message=no matching endpoints found  
caused by com.digitalpetri.opcua.stack.core.UaException  
UaException: status=Bad\_ConfigurationError, message=no matching endpoints found

Ignition v7.8.0 (b2015101414)  
Java: Oracle Corporation 1.8.0\_66"

Can you please help how to see the Exposed Tags in OPC Browser window?

regards  
[www.pramanj.com](http://www.pramanj.com)

---

<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:** [December 28, 2015, 4:57pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/10 "2015-12-28T16:57:23Z")

</div>

Hi Kevin,  
Will appreciate your reply to it.  
regards  
pramanj

---

<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:** [December 29, 2015, 3:19pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/11 "2015-12-29T15:19:56Z")

</div>

Hi Kevin/ P Trumel,

I am unable to see the Exposed OPC tags in OPC Browser? What could be the problem?  
Will appreciate your help.  
regards  
PRAMANJ

The OPC UA server gives following faulted error on the admin console:

com.digitalpetri.opcua.stack.core.UaException: no matching endpoints found  
com.inductiveautomation.xopc2.client.ClientManager.lambda$null$6(ClientManager.java:118)java.util.  
Optional.orElseThrow(Optional.java:290)com.inductiveautomation.xopc2.client.ClientManager.lambda  
$connect$7(ClientManager.java:118)java.util.concurrent.CompletableFuture.uniWhenComplete(Compl  
etableFuture.java:760)java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Completab  
leFuture.java:736)java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474  
)java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)com.digitalpetri.opcu  
a.stack.client.UaTcpStackClient.receiveResponse(UaTcpStackClient.java:280)com.digitalpetri.opcua.st  
ack.client.UaTcpStackClient.lambda$sendRequest$9(UaTcpStackClient.java:151)java.util.concurrent.C  
ompletableFuture.uniWhenComplete(CompletableFuture.java:760)java.util.concurrent.CompletableFu  
ture$UniWhenComplete.tryFire(CompletableFuture.java:736)java.util.concurrent.CompletableFuture.p  
ostComplete(CompletableFuture.java:474)java.util.concurrent.CompletableFuture.complete(Completa  
bleFuture.java:1962)com.digitalpetri.opcua.stack.client.handlers.UaTcpClientSymmetricHandler.lambda  
$null$26(UaTcpClientSymmetricHandler.java:199)java.util.concurrent.ThreadPoolExecutor.runWorker(T  
hreadPoolExecutor.java:1142)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut  
or.java:617)java.lang.Thread.run(Thread.java:745)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 4, 2016, 4:15pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/12 "2016-01-04T16:15:03Z")

</div>

[quote=“Pramanj”]Hi Kevin/ P Trumel,

I am unable to see the Exposed OPC tags in OPC Browser? What could be the problem?  
Will appreciate your help.  
regards  
PRAMANJ

The OPC UA server gives following faulted error on the admin console:

com.digitalpetri.opcua.stack.core.UaException: no matching endpoints found  
com.inductiveautomation.xopc2.client.ClientManager.lambda$null$6(ClientManager.java:118)java.util.  
Optional.orElseThrow(Optional.java:290)com.inductiveautomation.xopc2.client.ClientManager.lambda  
$connect$7(ClientManager.java:118)java.util.concurrent.CompletableFuture.uniWhenComplete(Compl  
etableFuture.java:760)java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Completab  
leFuture.java:736)java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474  
)java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)com.digitalpetri.opcu  
a.stack.client.UaTcpStackClient.receiveResponse(UaTcpStackClient.java:280)com.digitalpetri.opcua.st  
ack.client.UaTcpStackClient.lambda$sendRequest$9(UaTcpStackClient.java:151)java.util.concurrent.C  
ompletableFuture.uniWhenComplete(CompletableFuture.java:760)java.util.concurrent.CompletableFu  
ture$UniWhenComplete.tryFire(CompletableFuture.java:736)java.util.concurrent.CompletableFuture.p  
ostComplete(CompletableFuture.java:474)java.util.concurrent.CompletableFuture.complete(Completa  
bleFuture.java:1962)com.digitalpetri.opcua.stack.client.handlers.UaTcpClientSymmetricHandler.lambda  
$null$26(UaTcpClientSymmetricHandler.java:199)java.util.concurrent.ThreadPoolExecutor.runWorker(T  
hreadPoolExecutor.java:1142)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut  
or.java:617)java.lang.Thread.run(Thread.java:745)[/quote]

Pramanj,

It looks like your OPC-UA connection is faulted. It’s probably configured with anonymous (no username/pw) credentials, but anonymous connections aren’t enabled in the OPC-UA server settings.

Double check that either anonymous access is allowed and that’s how the connection is configured, or that you’ve got the correct username/password configured for the connection.

---

<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:** [January 4, 2016, 5:08pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/13 "2016-01-04T17:08:49Z")

</div>

Dear Kevin,  
Yes it says OPC connection is faulted. But I don't know how to generate user name and password fro the OPC server! I just generated the CD-KEY for the OPC server from the developer page.  
regards  
PRAMANJ

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 4, 2016, 5:29pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/14 "2016-01-04T17:29:39Z")

</div>

The default is opcuauser / password

Check which auth profile the server is using and make sure the above user is present. Then make sure the connection is using the above credentials.

You also might turn on anonymous access as well.

The 7.8.1 beta is available for download and contains many fixes to OPC-UA and other modules - it would be worth downloading and installing that.

---

<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:** [January 4, 2016, 6:01pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/15 "2016-01-04T18:01:13Z")

</div>

Dear Kevin,  
I enabled anonymous user access to OPCUA server as well as ensured opcuauser and password users are available. But despite that the OPCUA server remains Faulted! I even restarted the GCU. The OPC-UA server remains faulted!

Where is the donload link for the version 7.8.1 beta? I don't see it on the Ignigtion home page? It shows 7.8.0 every where?

Request your help.

regards  
PRAMANJ

---

<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:** [January 4, 2016, 6:05pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/16 "2016-01-04T18:05:51Z")

</div>

Dear Kevin,

Yes I was able to establish the connection by selecting endpoint!

Regards  
PRAMANJ

---

<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:** [January 4, 2016, 6:24pm UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/17 "2016-01-04T18:24:52Z")

</div>

Dear Kevin,  
The problem is resolved after connecting the endpoints.  
Thanks a lot.  
PRAMANJ

---

<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:** [January 5, 2016, 3:51am UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/18 "2016-01-05T03:51:12Z")

</div>

Is it possible to expose selected folders from the tree structure? Currently the entire trees structure gets exposed with expose option? It would be nice if we could select a folder under which all tags can get exposed.  
Regard  
Prafull  
[http://www.pramanj.com](http://www.pramanj.com)

---

<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:** [January 6, 2016, 11:41am UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/19 "2016-01-06T11:41:57Z")

</div>

Hi Kevin,  
What uri I should give to connect to the Ignition OPC Server from a client? Giving uri://192.168.1.28/Ignition%20OPC-UA%20Server is not accepted from my client? I tried even "[http://localhost:8088/Igntion](http://localhost:8088/Igntion) OPC Server" but it doesn't work either?

regards  
Prafull  
[http://www.pramanj.com](http://www.pramanj.com)

---

<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:** [January 6, 2016, 11:54am UTC](https://forum.inductiveautomation.com/t/adding-opc-tags/10939/20 "2016-01-06T11:54:52Z")

</div>

got it! please ignore previous post.  
prafull

[Next page](https://forum.inductiveautomation.com/t/adding-opc-tags/10939.md?page=2)
