# OPCUA variable read and write

**URL:** <https://discourse.nodered.org/t/opcua-variable-read-and-write/10542>\
**Category:** General\
**Created:** [25 April 2019 14:12 UTC](https://discourse.nodered.org/t/opcua-variable-read-and-write/10542 "2019-04-25T14:12:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![domcsidd](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/domcsidd/32/5379_2.png) [@domcsidd](https://discourse.nodered.org/u/domcsidd)\
**Post date:** [25 April 2019 14:12 UTC](https://discourse.nodered.org/t/opcua-variable-read-and-write/10542/1 "2019-04-25T14:12:31Z")

</div>

Hi everyone!

I want to make a communication between my Node-RED server, which runs on my PC and a PFC100 WAGO PLC. I tried severeal different solutions , but none of them worked. Please help me out with an example.I want to make some switch buttons , witch are gonna send booleans to the PLC and i wnat to read them back, for example , i want to switch on motor1 and motor2 , but if both is turned on ,the plc set them to false , and i want to read they state , and switch off the buttons . How should i do it ?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [26 April 2019 05:13 UTC](https://discourse.nodered.org/t/opcua-variable-read-and-write/10542/2 "2019-04-26T05:13:16Z")

</div>

Did you [search the flows](https://flows.nodered.org/?num_pages=1) for examples ?
