# Anyone had manage to do OPC connection with Unreal Engine?

**URL:** <https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [July 26, 2019, 4:44am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203 "2019-07-26T04:44:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPizarro90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPizarro90](https://forums.unrealengine.com/u/GPizarro90)\
**Post date:** [July 26, 2019, 4:44am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/1 "2019-07-26T04:44:04Z")

</div>

Hi  
Hi evaluating the posibility to view data in real time from OPC servers on Unreal Engine and used emulate what its happening in the process (for example water level on a tank)  
There is a way of doing this?  
Thx in advance for any help or info about this!!

---

<div class="post-metadata">

**Author:** ![Sanchez1139](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanchez1139](https://forums.unrealengine.com/u/Sanchez1139)\
**Post date:** [April 8, 2020, 9:15pm UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/2 "2020-04-08T21:15:41Z")

</div>

Hi, I know this thread is really old, but did you ever come up with a solution to this, i also need OPC connectivity to UE4 ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![CMTech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CMTech](https://forums.unrealengine.com/u/CMTech)\
**Post date:** [October 3, 2020, 12:02am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/3 "2020-10-03T00:02:47Z")

</div>

Hi, I managed to get an OPC-UA connection working but I had to do it with UnrealEnginePython using the FreeOPCUA project examples. I did it this way as I had no idea how to do this in C++. As UnrealEnginePython has been put on hold it would be great to see an implementation in C++ or a plug-in. There are a few open source C++ libraries for OPC-UA available.

---

<div class="post-metadata">

**Author:** ![CMTech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CMTech](https://forums.unrealengine.com/u/CMTech)\
**Post date:** [October 3, 2020, 12:08am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/4 "2020-10-03T00:08:29Z")

</div>

Just spotted this if it is any help…

> <https://gist.github.com/daje770729/04b55b1601a7f84e4721da8bd3e53609>

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1a55bc9d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1a55bc9d1](https://forums.unrealengine.com/u/anonymous_user_1a55bc9d1)\
**Post date:** [December 9, 2021, 6:02pm UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/5 "2021-12-09T18:02:19Z")

</div>

I managed to get this code working. Here is complete project that you can hopefully import to your projects. This enables OPCUA function utilization from Blueprints:

I hope it is ok by Epic that OpcUAClientBPLibrary.cpp and OpcUAClientBPLibrary.h have copyright by Epic.

---

<div class="post-metadata">

**Author:** ![Amilcare\_DP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amilcare\_DP](https://forums.unrealengine.com/u/Amilcare_DP)\
**Post date:** [August 19, 2022, 7:01am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/6 "2022-08-19T07:01:59Z")

</div>

Hi @anonymous_user_1a55bc9d1 could you help me also with this?

---

<div class="post-metadata">

**Author:** ![y.owj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@y.owj](https://forums.unrealengine.com/u/y.owj)\
**Post date:** [March 21, 2023, 10:57am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/8 "2023-03-21T10:57:24Z")

</div>

I have UE4 project which i need to connect using OPC. I also have OPC Server (TOP Server 5.21). Is your addon provides this feature? Features i need are connect/disconnect, read/write and “connection lost” check

---

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [March 21, 2023, 10:27pm UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/9 "2023-03-21T22:27:41Z")

</div>

My plugin has these features

- Cross platform
- Async Read and Write (boolean, byte, sbyte, float, double, int16/32/64, string… including their timestamps, data name and descriptions)
- Historical data access
- Multiple Server Connection
- Secure connection (username, signed, signed & encrypt)
- Runtime certificate creation _(not temporary certificate from open62541. a real certificate file)_ which compatible with OPC UA v1.04 protocols.

I don’t have “check connection” feature specifically because all client libraries already have UA\_Status variable. When you want to connect an invalid server, you will get UA\_STATUS\_BAD. When you want to read or write a node to/from disconnected server, you will also get an error. All these errors have their stringified returns.

But if you want it as a server health check, it can make senses. I just didn’t think about it.

> **[Eray Özer on LinkedIn: #ue5 #unreal #unrealengine #unrealplugin #opcuaplugin...](https://www.linkedin.com/posts/eryozr_ue5-unreal-unrealengine-activity-7017586141168082944-UH9O?utm_source=share&utm_medium=member_desktop)**
>
> Unreal Engine 5.1 OPC UA Client Plugin finished.
> Currently it supports
> \- Windows, Android
> \- Async Reading and Writing
> \- Async History Access
> \- Secure…

The problem is, I am not consider sharing or publishing it right now.

---

<div class="post-metadata">

**Author:** ![smudgy67](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/smudgy67/32/1194584_2.png) [@smudgy67](https://forums.unrealengine.com/u/smudgy67)\
**Post date:** [September 6, 2023, 7:29am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/10 "2023-09-06T07:29:31Z")

</div>

Hey eray\_ozr,

Well done on the plugin.  
Is it available for UE5.2 as well, please?

All the best,

Smudgy

---

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [September 6, 2023, 9:45am UTC](https://forums.unrealengine.com/t/anyone-had-manage-to-do-opc-connection-with-unreal-engine/129203/11 "2023-09-06T09:45:47Z")

</div>

Yes but it is closed source and I don’t consider to share it freely. If there is enough request, I can think to create a product based on monthly/yearly subscriptions.  
I wrote details to here.

> [@UE5.2 OPC UA Client Plugin Release](https://forums.unrealengine.com/t/ue5-2-opc-ua-client-plugin-release/1199042/2):
>
> I am interested. I research VR/AR at an University and look for a way to connect Unreal to Siemens Stuff. May I contribute somehow?
