# Writing to tags from an MQTT broker

**URL:** <https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 3, 2024, 5:09am UTC](https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261 "2024-06-03T05:09:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JVeldt](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@JVeldt](https://forum.inductiveautomation.com/u/JVeldt)\
**Post date:** [June 3, 2024, 5:09am UTC](https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261/1 "2024-06-03T05:09:43Z")

</div>

I have a bunch of PLC tags coming into my gateway over MQTT. I then am passing those tags into a Vision project. I found while working on it that I am unable to write values to my tags coming in from MQTT. I am wondering if there is a way that I can send newly written values back to the PLC. Will I need to set up a parallel MQTT comms path back to the PLC?

Thanks

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [June 3, 2024, 5:57am UTC](https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261/2 "2024-06-03T05:57:24Z")

</div>

It looks like all that is required is unchecking these two options:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d3cb38a217c0dc6696b1e61839b14c8a37d64c29.png)

**Reference:** [Cirrus Link Forum: Read-Write MQTT Tags](https://forum.cirrus-link.com/t/read-write-mqtt-tags/516/2?u=justinedwards.jle)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 3, 2024, 11:51am UTC](https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261/3 "2024-06-03T11:51:57Z")

</div>

> [@justinedwards.jle](#):
>
> unchecking these two options:

**AND** be using Sparkplug B compatible devices. If not, all writes must be scripted through whatever reverse path the dumb device supports, if any.

---

<div class="post-metadata">

**Author:** ![JVeldt](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@JVeldt](https://forum.inductiveautomation.com/u/JVeldt)\
**Post date:** [June 3, 2024, 11:10pm UTC](https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261/4 "2024-06-03T23:10:02Z")

</div>

Thanks guys

---

<div class="post-metadata">

**Author:** ![JVeldt](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@JVeldt](https://forum.inductiveautomation.com/u/JVeldt)\
**Post date:** [June 5, 2024, 9:54am UTC](https://forum.inductiveautomation.com/t/writing-to-tags-from-an-mqtt-broker/91261/5 "2024-06-05T09:54:48Z")

</div>

Spoke to soon still having issues. So I have a 1769 L33ER CompactLogix PLC. I am using an edge device with Node Red to read the tags using the node-red-contrib-cip-ethernet-ip node. I then parse the data and enter it into the node-red-contrib-mqtt-sparkplug-plus node. The tags then get published to an MQTT Broker. From there the tags are subscribed to by an Ignition gateway. In the designer I can see the tags when I set my tag provider to MQTT Engine and can read all of them. I then installed the MQTT Transmission module to my gateway and set up my transmitter with the same Sparkplug id's as I used to send the tags to my gateway and have it connected to the MQTT broker. I used the same node-red-contrib-mqtt-sparkplug-plus node in Node Red and got it connected to my broker and can see the tags coming in. I then tried to send an individual tag to the PLC to see if it would write to it, but still can't change the value.
