# OPCUA connection problem

**URL:** <https://discourse.nodered.org/t/opcua-connection-problem/53571>\
**Category:** General\
**Created:** [11 November 2021 11:39 UTC](https://discourse.nodered.org/t/opcua-connection-problem/53571 "2021-11-11T11:39:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agmacedo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/agmacedo/32/31119_2.png) [@agmacedo](https://discourse.nodered.org/u/agmacedo)\
**Post date:** [11 November 2021 11:39 UTC](https://discourse.nodered.org/t/opcua-connection-problem/53571/1 "2021-11-11T11:39:42Z")

</div>

Hello,  
I have a PLC (CX9020 Beckhoff) running OPCUA Server. I can connect and read/write all the tags with UaExpert and qith the Sample Client app from beckhoff.  
I think all the configuration is correct.  
For some reason, I don´t understand, cannot connect to the OPCUA Server with Node-red.  
Either with "node-red-contrib-opcua" or "node-red-contrib-iiot-opcua" the connection doesn´t work.  
I begin to think that I need some configuration to access the OPCUA with Node-red!!  
If someone can help, I aprreciate.  
Thanks,

The flow is pretty simple:

```auto
[{"id":"783d8b27d9de61df","type":"inject","z":"4aa27a60c7d95f33","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"date","x":270,"y":940,"wires":[["2c9bd2e60387b110"]]},{"id":"2c9bd2e60387b110","type":"OpcUa-Item","z":"4aa27a60c7d95f33","item":"ns=4;s=GVL_opcUA..diContador","datatype":"Int32","value":"","name":"Nome programa","x":470,"y":940,"wires":[["20c715d8fc4c055e"]]},{"id":"20c715d8fc4c055e","type":"OpcUa-Client","z":"4aa27a60c7d95f33","endpoint":"58ec7b54dcd62ffd","action":"read","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","name":"","x":720,"y":940,"wires":[["6bc2bb52b79e3a69","bb65eacb5a45e4ad"]]},{"id":"6bc2bb52b79e3a69","type":"debug","z":"4aa27a60c7d95f33","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":970,"y":940,"wires":[]},{"id":"bb65eacb5a45e4ad","type":"ui_text","z":"4aa27a60c7d95f33","group":"3a73a2cf.0f91ae","order":3,"width":0,"height":0,"name":"Contador","label":"OPCUA_C:","format":"{{msg.payload}}","layout":"row-spread","x":980,"y":980,"wires":[]},{"id":"58ec7b54dcd62ffd","type":"OpcUa-Endpoint","endpoint":"opc.tcp://192.168.1.174:4840","secpol":"None","secmode":"None","login":false},{"id":"3a73a2cf.0f91ae","type":"ui_group","name":"Produção / Resumo","tab":"5e2e41aa.9826b","order":1,"disp":true,"width":"6","collapse":false},{"id":"5e2e41aa.9826b","type":"ui_tab","name":"Produção","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 January 2022 11:40 UTC](https://discourse.nodered.org/t/opcua-connection-problem/53571/2 "2022-01-10T11:40:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
