# Writing to Tag Array Element

**URL:** <https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463>\
**Category:** Ignition\
**Created:** [May 9, 2026, 8:14am UTC](https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463 "2026-05-09T08:14:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@stephen](https://forum.inductiveautomation.com/u/stephen)\
**Post date:** [May 9, 2026, 8:14am UTC](https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463/1 "2026-05-09T08:14:05Z")

</div>

Hi All

I'm working with a PLC that has an DINT array, I can read the individual elements but I can't seem to change the value in an array member?

On the PLC, it's a array of 32 bool values and it seems to be mapped correctly in persepctive

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/e/6ed44c89f66bfbeafe1d77bf463ca789f9369c3a.png)

If I try and change it via the tag browser or via a button I get the following error:

> Error writing to HMI\_Cmds\_0\_[0]: Error\_Exception: Error writing to tag '[PLC]HMI Status/HMI\_Cmds/HMI\_Cmds\_0\_': null

My OPC Path is

> ns=1;s=[PLC]HMI\_Cmds[0]

I've tried an array of INT and BOOL with similar effects. Is there any suggestions what the best way to do this is? The aim here is to be able to toggle these bool's which leads down to function on the PLC

S

---

<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:** [May 9, 2026, 1:38pm UTC](https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463/2 "2026-05-09T13:38:36Z")

</div>

> [@stephen](#):
>
> aim here is to be able to toggle these bool's which leads down to function on the PLC

Don't use an array. Make individual bit tags that point at the PLC addresses. Writes to individual boolean tags can be properly handled by the driver to make the correct PLC writes.

---

<div class="post-metadata">

**Author:** ![stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@stephen](https://forum.inductiveautomation.com/u/stephen)\
**Post date:** [May 9, 2026, 10:07pm UTC](https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463/3 "2026-05-09T22:07:42Z")

</div>

Thanks. I'm not sure how best to make a and individual tag? When adding a tag it doesn't give me the breakdown of the "value" item in the array? or do you mean on the PLC, convert them to an individual tag?

---

<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:** [May 9, 2026, 10:10pm UTC](https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463/4 "2026-05-09T22:10:11Z")

</div>

You can manually add a dot and the bit number to the OPC Item Path of the word containing the bit. Drag n drop doesn't cover all possible syntax.

---

<div class="post-metadata">

**Author:** ![stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@stephen](https://forum.inductiveautomation.com/u/stephen)\
**Post date:** [May 10, 2026, 12:24am UTC](https://forum.inductiveautomation.com/t/writing-to-tag-array-element/115463/5 "2026-05-10T00:24:46Z")

</div>

Thanks. I was able to get it to work. Just the suffix as below. Thanks for your help as always

```python
ns=1;s=[PLC]HMI_Cmds[0].0

```
