# How to call an OPC UA method?

**URL:** <https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193>\
**Category:** Ignition\
**Created:** [October 18, 2014, 6:14pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193 "2014-10-18T18:14:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfp.meijers](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@pfp.meijers](https://forum.inductiveautomation.com/u/pfp.meijers)\
**Post date:** [October 18, 2014, 6:14pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/1 "2014-10-18T18:14:23Z")

</div>

How do I call a method of an object served by an OPC UA server?  
The python scripting library supports sys.opc.read/write but I could not find anything for calling an object method/procedure.  
Thanks for your help, Patrick

---

<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:** [October 18, 2014, 9:51pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/2 "2014-10-18T21:51:40Z")

</div>

There’s no support for this right now. It’s among the many OPC-UA related improvements that are coming down the road, however.

---

<div class="post-metadata">

**Author:** ![pfp.meijers](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@pfp.meijers](https://forum.inductiveautomation.com/u/pfp.meijers)\
**Post date:** [October 19, 2014, 8:35am UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/3 "2014-10-19T08:35:13Z")

</div>

There is a python client for OPC UA, called pyUAF. Would it be possible to import this in a python script? IN other words, in a python script that is defined in an Ignition project, can I import 3rd party libraries?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [October 19, 2014, 10:37am UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/4 "2014-10-19T10:37:37Z")

</div>

Yes, you can import 3rd party Python libraries into Ignition. See here: [perfectabstractions.com/blog … on-modules](http://www.perfectabstractions.com/blog/new-scripting-features-in-ignition-77-part-1#external-python-modules)

Best,

---

<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:** [October 19, 2014, 2:21pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/5 "2014-10-19T14:21:43Z")

</div>

Yes, you can import some python libraries like Nick mentioned, but this one likely won’t work because it’s just python bindings to a C/C++ library. You’ll have to try it to be sure though.

---

<div class="post-metadata">

**Author:** ![BillS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BillS](https://forum.inductiveautomation.com/u/BillS)\
**Post date:** [June 9, 2015, 11:04pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/6 "2015-06-09T23:04:00Z")

</div>

Sorry for reincarnating an older thread, but I was wondering if there was ever a solution produced for this problem?

I realize that I.A. wrote the OPC stack themselves, and didn’t implement the method service initially. Do you have a time frame when that service would be done? Can it be done in a similar way to the SOAP service method calls?

---

<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:** [June 9, 2015, 11:06pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/7 "2015-06-09T23:06:18Z")

</div>

[quote=“BillS”]Sorry for reincarnating an older thread, but I was wondering if there was ever a solution produced for this problem?

I realize that I.A. wrote the OPC stack themselves, and didn’t implement the method service initially. Do you have a time frame when that service would be done? Can it be done in a similar way to the SOAP service method calls?[/quote]

The OPC-UA client in Ignition 7.8 will be able to call methods.

---

<div class="post-metadata">

**Author:** ![BillS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BillS](https://forum.inductiveautomation.com/u/BillS)\
**Post date:** [June 10, 2015, 2:26pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/8 "2015-06-10T14:26:35Z")

</div>

Thank you for the fast reply. What is the release schedule for 7.8?

What about the implementing in a driver for the OPC-UA server side, is that also going to be in 7.8?

I’m in the process of trying to write a driver for a EDM device that has a custom socket based communication stack using XML for the messaging. I have test java client code working, and am now attempting to move that into an Ignition driver. I’m using Netty for the TCP and UDP I/O and XStream for the XML parsing.

I need to implement methods for opening and closing doors, loading, selecting, starting, stopping, pausing, resuming, … jobs.

---

<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:** [June 10, 2015, 3:02pm UTC](https://forum.inductiveautomation.com/t/how-to-call-an-opc-ua-method/9193/9 "2015-06-10T15:02:12Z")

</div>

[quote=“BillS”]Thank you for the fast reply. What is the release schedule for 7.8?

What about the implementing in a driver for the OPC-UA server side, is that also going to be in 7.8?

I’m in the process of trying to write a driver for a EDM device that has a custom socket based communication stack using XML for the messaging. I have test java client code working, and am now attempting to move that into an Ignition driver. I’m using Netty for the TCP and UDP I/O and XStream for the XML parsing.

I need to implement methods for opening and closing doors, loading, selecting, starting, stopping, pausing, resuming, … jobs.[/quote]

Ignition 7.8 is going to be released around the same time as our community conference - late September.

Support for methods in the server/driver API (or any new functionality at all, for that matter) won’t happen until 7.9, where the server implementation and driver API are being replaced entirely by a new implementation.
