# OPCUA Write ExtensionObject (nodered-\>PLC)

**URL:** <https://discourse.nodered.org/t/opcua-write-extensionobject-nodered-plc/64160>\
**Category:** Industrial\
**Created:** [20 June 2022 08:44 UTC](https://discourse.nodered.org/t/opcua-write-extensionobject-nodered-plc/64160 "2022-06-20T08:44:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aitor](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aitor/32/97363_2.png) [@aitor](https://discourse.nodered.org/u/aitor)\
**Post date:** [20 June 2022 08:44 UTC](https://discourse.nodered.org/t/opcua-write-extensionobject-nodered-plc/64160/1 "2022-06-20T08:44:09Z")

</div>

Hello there,

I'm currently working with a Siemens PLC 1513 with OPCUA server and node-red-contrib-opcua:0.2.279 for communication. I'm interesed writting a ExtensionObject datatype variable that I can currently read but not write.  
I'm able to write variables inside that Object individually but I'd like to write all data just in a single request.

Has anybody ever achieved this write action? Is it even supported?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![aitor](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aitor/32/97363_2.png) [@aitor](https://discourse.nodered.org/u/aitor)\
**Post date:** [22 June 2022 08:56 UTC](https://discourse.nodered.org/t/opcua-write-extensionobject-nodered-plc/64160/2 "2022-06-22T08:56:50Z")

</div>

Hello there,

For anyone facing this issue, the problem is solved from node-red-contrib-opcua:0.2.281 on.

Thanks to @mikakaraila's great work we are now able to write extension objects on OPCUA.  
You can follow the already closed issue on: [ExtensionObject support · Issue #298 · mikakaraila/node-red-contrib-opcua · GitHub](https://github.com/mikakaraila/node-red-contrib-opcua/issues/298)

Just bare in mind that is **mandatory to specify the typeId** to constructExtensionObject.

---

<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:** [6 July 2022 08:57 UTC](https://discourse.nodered.org/t/opcua-write-extensionobject-nodered-plc/64160/3 "2022-07-06T08:57:42Z")

</div>

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