# Nanodac Modbus TCP help needed

**URL:** <https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078>\
**Category:** Ignition\
**Created:** [July 19, 2022, 5:33pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078 "2022-07-19T17:33:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Off\_In\_The\_Woods](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@Off\_In\_The\_Woods](https://forum.inductiveautomation.com/u/Off_In_The_Woods)\
**Post date:** [July 19, 2022, 5:33pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/1 "2022-07-19T17:33:13Z")

</div>

Hi all,  
We have a Nanodac datalogger we’re trying to get connected via Modbus TCP to our gateway.  
Currently I have the Modbus TCP driver configured, and the driver is happy and connected to the gateway.  
I’ve tried adding modbus addresses to the OPC config as well as direct reference when creating an OPC tag.  
Anyone have specific experience with this connection??

---

<div class="post-metadata">

**Author:** ![Edwin\_Beck](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Edwin\_Beck](https://forum.inductiveautomation.com/u/Edwin_Beck)\
**Post date:** [November 1, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/2 "2023-11-01T14:08:41Z")

</div>

I have been working with nanodac controllers to access basic SP & PV values in addition to some program status values.

**One key learning point for us is that we needed use the documented address +1 to get the correct register.**

My challenge is reading the Programmer.Run.ProgTimeLeft value.  
It appears to be in seconds which goes beyond 16 bits for anything over 9hr 6min 8sec  
When I use a Long Integer (HR14936) I get the correct time in seconds below the amount listed above. when the amount of time is greater than that I get -32768.  
Using HRI (32 bit) addressing does not help.

The nanodac documentation specifies a time\_t format. I can not find any reference to this data type/format.

I am struggling to find a data type / addressing format that gives me the right value.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 1, 2023, 2:13pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/3 "2023-11-01T14:13:23Z")

</div>

> [@Edwin\_Beck](#):
>
> One key learning point for us is that we needed use the documented address +1 to get the correct register.

In your device driver settings, you should change it to one-based addressing instead of zero-based.

You should try playing with the reverse word-order setting as well.

---

<div class="post-metadata">

**Author:** ![Edwin\_Beck](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Edwin\_Beck](https://forum.inductiveautomation.com/u/Edwin_Beck)\
**Post date:** [November 1, 2023, 2:25pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/4 "2023-11-01T14:25:09Z")

</div>

Thank you.  
I am not familiar with these two settings.  
Any further insight into these to settings would be appreciated.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 1, 2023, 2:28pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/5 "2023-11-01T14:28:41Z")

</div>

Go to the gateway webpage then go to Config -\> OPC-UA Device Settings -\> Then select the edit button for your device.

From there click `show advanced settings` where you can change the ones I mentioned.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/2/b219723251ff73d505cb79da7fabf372ea4e1865.png)

---

<div class="post-metadata">

**Author:** ![Edwin\_Beck](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Edwin\_Beck](https://forum.inductiveautomation.com/u/Edwin_Beck)\
**Post date:** [November 1, 2023, 2:29pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/6 "2023-11-01T14:29:58Z")

</div>

Thank you  
Found that and the explanation in the user manual...  
I appreciate the help.

---

<div class="post-metadata">

**Author:** ![Edwin\_Beck](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Edwin\_Beck](https://forum.inductiveautomation.com/u/Edwin_Beck)\
**Post date:** [November 2, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/7 "2023-11-02T18:38:28Z")

</div>

I tried the reverse word order and several different data type address types.  
still having the same issue.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 2, 2023, 6:43pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/8 "2023-11-02T18:43:34Z")

</div>

> [@Edwin\_Beck](#):
>
> when the amount of time is greater than that I get -32768.

Hmm, this sounds like a signed/unsigned int problem. I would try `HRUS14936` or `HRUS14935` if you fixed your zero-based addressing.

---

<div class="post-metadata">

**Author:** ![Edwin\_Beck](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Edwin\_Beck](https://forum.inductiveautomation.com/u/Edwin_Beck)\
**Post date:** [November 2, 2023, 6:48pm UTC](https://forum.inductiveautomation.com/t/nanodac-modbus-tcp-help-needed/62078/9 "2023-11-02T18:48:05Z")

</div>

I will try that as soon as I get a time above the 32768 seconds  
Thank you
