# \[Bug-15335\]Zero-Based Addressing

**URL:** <https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534>\
**Category:** Ignition Early Access\
**Created:** [October 30, 2019, 6:32pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534 "2019-10-30T18:32:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [October 30, 2019, 6:32pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/1 "2019-10-30T18:32:24Z")

</div>

Totally missed this...

> ## Modbus Driver
> 
> **14790: Fix the one-based addressing setting**  
> Converted the One-Based Addressing setting in Modbus devices to Zero-Based Addressing.

In the [Nightly Changelogs](http://forum.inductiveautomation.com/t/nightly-changelogs/21716/150)

After I updated to the 8.0.6 Nightly (from 10/28) and I couldn't write to any PLC tags. Recieved "invalid address" error.

When I reverted back to 8.0.5 I still had the same issue! Then I realized that the zero-based addressing check mark in the devices advanced setting had cleared.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/063b1ca50f7aaf14f352aa4cd7dd011dd9bf3d15.png)

While using 8.0.5 I checked the setting and everything worked.

Updated to the 8.0.6 Nightly and unchecked the setting and everything is working.

Wanted to share in case someone else is scratching their head.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 30, 2019, 6:43pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/2 "2019-10-30T18:43:55Z")

</div>

Hmm. The setting value for existing devices should have also flipped on upgrade. Functionality between 8.0.5 and a system upgraded to 8.0.6 should be the same.

Did you upgrade or do some kind of restore? Did reads work but not writes, or were both broken?

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [October 30, 2019, 6:53pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/3 "2019-10-30T18:53:22Z")

</div>

Reads worked fine but was not able to write to PLC tags.

I did not do any kind of restore.

I was running 8.0.5 stable version, installed previously using downloaded installation executable.  
Downloaded Nightly windows installer executable and installed it. That’s when my ‘writing’ broke.

Re-ran the 8.0.5 installation executable (in my mind this reverted it back to 8.0.5). Writes were still broken and the zero-based check box was unchecked.

Checked the zero-based setting and writes worked.

Ran the 8.0.6 installation executable again and writing was broken again. Went to device settings and the zero based setting was checked.

Cleared the zero based addressing check box and all is working well.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [October 30, 2019, 9:36pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/4 "2019-10-30T21:36:48Z")

</div>

What looks to be happening is the Modbus driver is initializing with the old value before the update to the setting occurs. This means after the initial startup after upgrade things will be broken. Subsequent restarts of the Modbus driver (via restart of the Gateway or restart of the module) look to be resolving this in our testing. If you can confirm that, we would appreciate it. A ticket is being opened to resolve this issue.

Thanks for reporting this,  
Garth

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [October 31, 2019, 2:39am UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/5 "2019-10-31T02:39:46Z")

</div>

I currently have 8.0.6 (10/28 Nightly) installed and had previously unchecked the zero based addressing option in order to write to PLC tags today.

Here are the steps I just did…  
With 8.0.6 Nighlty, I checked the zero based addressing option and saved the setting.

installed 8.0.5  
zero based is still checked ( This is not what I saw before. It was unchecked last time I reverted)  
restarted gateway from cmd line “gwcmd -r”  
zero based addressing still checked

installed 8.0.6 (10/28)  
zero based address is still checked.  
restarted gateway from cmd line “gwcmd -r”  
zero based address is still checked.

I’m not in a position tonight to confirm PLC functionality but I don’t mind trying again tomorrow if you want.

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [October 31, 2019, 1:12pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/6 "2019-10-31T13:12:12Z")

</div>

Just check and confirmed that I can not write to PLC this morning after reinstalling and restarting 8.0.6 last night.

I just restarted the Gateway again and even restarted the Modbus Module Driver.  
Zero based addressing is still checked and I can not write to PLC tags with the option checked.

I need to un-check the zero based option and put the system in use for most of today.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [October 31, 2019, 11:52pm UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/7 "2019-10-31T23:52:53Z")

</div>

Based on the path your system has taken, what you are seeing is expected. When you reverted to 8.0.5, it doesn’t sound like an 8.0.5 backup was restored and because the 8.0.6 schema update had already run, it won’t be run again. Unchecking the option and staying at 8.0.6 RC1 will likely be your best option at this point just to ensure there is stability on the system. You will want to upgrade to 8.0.6 when it is officially released.

Garth

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [November 1, 2019, 1:13am UTC](https://forum.inductiveautomation.com/t/bug-15335-zero-based-addressing/29534/8 "2019-11-01T01:13:43Z")

</div>

Sounds good to me. Thank you!
