# Writing SparkplugB data to an OPC-UA server

**URL:** <https://forum.inductiveautomation.com/t/writing-sparkplugb-data-to-an-opc-ua-server/97989>\
**Category:** Ignition\
**Created:** [October 31, 2024, 9:07am UTC](https://forum.inductiveautomation.com/t/writing-sparkplugb-data-to-an-opc-ua-server/97989 "2024-10-31T09:07:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [October 31, 2024, 9:07am UTC](https://forum.inductiveautomation.com/t/writing-sparkplugb-data-to-an-opc-ua-server/97989/1 "2024-10-31T09:07:25Z")

</div>

Hi community,

we are a Pharma packaging company and are currently in the evaluation of Ignition together with MQTT to integrate our machine data (mainly to historian and Cloud Data Lake).  
We do this by reading data from the OPC-UA server of the PLC from Ignition Edge and send the data to an MQTT Broker (SparkPlug B).

We do also need to write data to the OPC-UA server of the machine/PLC. So far I wasn't able to understand if this is possible within the same architecture. Sparkplug B provides a way to write "Commands" with DCMD to devices, but is it possible to write these demands to the OPC-UA tags of the PLC?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/9/99e7a2420f6bb42d00d26286f13f1f465075980d.png)

Thank you for your help  
André

---

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [October 31, 2024, 10:50am UTC](https://forum.inductiveautomation.com/t/writing-sparkplugb-data-to-an-opc-ua-server/97989/2 "2024-10-31T10:50:27Z")

</div>

I found a description to the use-case on my own and will try it: [Sparkplug NCMD or DCMD workflow using MQTT Modules - MQTT Modules for Ignition 8.x - Confluence](https://docs.chariot.io/display/CLD80/Sparkplug+NCMD+or+DCMD+workflow+using+MQTT+Modules)

Thank you 🙂
