# \[APROL\] Using OpcUa Client on the Controller

**URL:** <https://community.br-automation.com/t/aprol-using-opcua-client-on-the-controller/7489>\
**Category:** Other Topics\
**Tags:** aprol, opc-ua\
**Created:** [July 3, 2025, 12:58pm UTC](https://community.br-automation.com/t/aprol-using-opcua-client-on-the-controller/7489 "2025-07-03T12:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akeh](https://avatars.discourse-cdn.com/v4/letter/a/FF8800/32.png) [@akeh](https://community.br-automation.com/u/akeh)\
**Post date:** [July 3, 2025, 12:58pm UTC](https://community.br-automation.com/t/aprol-using-opcua-client-on-the-controller/7489/1 "2025-07-03T12:58:33Z")

</div>

I’ve been trying to activate OPC UA Client on the Controller which is programmed using APROL. I’ve followed the instructions at

[[B&R Online Help](https://help.br-automation.com/#/en/4/communication/opcua/configuration/configuration_anydevice.html)]  
[[How to communicate two controllers thought OPC UA](https://community.br-automation.com/t/how-to-communicate-two-controllers-thought-opc-ua/867)]  
[[Communication Between Robot and B&R PLC](https://community.br-automation.com/t/communication-between-robot-and-b-r-plc/2437)]

But, for some reason, my efforts so far have been unsuccessful.

Server Details:  
IP: 192.168.222.1:4840  
Sec. Policy: Basic256Sha256  
Sec. Mode: Sign and Encrypt  
Username / Password: Are known

Accessing the server (which is neither a BuR controller nor an APROL server) using UA Expert works fine.

Connection Data:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/2/25be2186c616e53e10a4df93d8b58e11f2ad95c0.png)

Reading/Writing Data:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/2/2b02964028de1e1b9b25ea6193b2d578396de2f1.png)

On CaeManager, I’ve a 1586-Controller. Here the relevant settings:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/e/e3601be013853944e7a836681452bf08377ed1ba.png)  
OPC-UA System is active (I also need the controller to be an OPC-UA Server.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/4/42a8a537a9f7fe8769f83a0b4944b71269221d21.png)  
OPC-Ua Any device is connected to IF2

Connection Settings on AS:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/4/403463feda1f172ca8557d0966b8ee3b73bb6902.png)

Channels configuration:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/9/93233c119fcd4b730aed8c9feb5eafa291284259.png)

For the _Browse Path_ I followed the hierarchy of the required Tags using UAExpert.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/2/2f6db91184c6f26b616d4649e3310817f1c3e506.png)

So on Ua Expert I would browse through:  
`Root > Objects > urn:xxxx:Cooling > HeatCirc/Inlet/AlmTempHi`  
To make that path AS-Compatible I’ve entered:  
`/0:Root/0:Objects/2:urn&:xxxx&:Cooling/2:HeatCirc&/Inlet&/AlmTempHi`

Direction and Data Type are set accordingly.

AS-Build, AS-Save, Back to CaeManager.

The OpcUA\_any appears on APROL:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/4/4d55cecf55ce8ed68ddcb3f67821f86ea857302b.png)

I mapped the new connectors to APROL Variables:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/f/f54a1fc639b83266514383ef9717fa98828e0cd2.png)

Build All, Download… But the read-connectors remain 0, altough the OPC-Server has another value.  
And the write-connectors are not being sent to the UA-Server.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/b/b0c67a9dcf8c5d6d8f9d761274fa61fa07726db6.png)

Am I missing something? What is wrong on my settings?

When I run UaExpert for the first time, I get a question asking if I want to accept the Server’s certificate, which I can manually accept. How is the controller dealing with that?

On ControllerManager I can see the following Module values:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/3/36f449d0b4a1d1361b909ecdf3e7e72f1ab65c88.png)

ModuleOk = FALSE, so something is definitely not OK.

PS: I know I can set OPC UA Client on APROL/ControlComputer, but I need it necessarily on the Controller.

Aprol version: 4.2-05  
AS Version: 4.5.3.86

---

<div class="post-metadata">

**Author:** ![tomas.miculka](https://avatars.discourse-cdn.com/v4/letter/t/FF8800/32.png) [@tomas.miculka](https://community.br-automation.com/u/tomas.miculka)\
**Post date:** [July 4, 2025, 11:11am UTC](https://community.br-automation.com/t/aprol-using-opcua-client-on-the-controller/7489/2 "2025-07-04T11:11:21Z")

</div>

Hello,  
As this is a non-standard communication configuration, I would recommend testing it without a certificate and authentication first. If that works, then try testing it with TLS. You may need to add a certificate (e.g., under “TLS configuration” in CaManager).

However, I would recommend contacting your local support team for further assistance.
