# Modbus Questions

**URL:** <https://forum.inductiveautomation.com/t/modbus-questions/103011>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 27, 2025, 9:44pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011 "2025-02-27T21:44:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coleman\_Dudley](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Coleman\_Dudley](https://forum.inductiveautomation.com/u/Coleman_Dudley)\
**Post date:** [February 27, 2025, 9:44pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/1 "2025-02-27T21:44:43Z")

</div>

Good Afternoon Everyone,

I'm still new to Ignition and SCADA. I'm currently recording values from a Yokogawa Flow Meter. One of these values would be Total Flow. My next step is to zero out the total flow. Can I use Inductive Automation to Zero out the Flow Meter?

Thanks,

C

---

<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:** [February 27, 2025, 9:50pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/2 "2025-02-27T21:50:03Z")

</div>

Sure, do you know the address to write to?

---

<div class="post-metadata">

**Author:** ![Coleman\_Dudley](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Coleman\_Dudley](https://forum.inductiveautomation.com/u/Coleman_Dudley)\
**Post date:** [February 28, 2025, 4:59pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/3 "2025-02-28T16:59:33Z")

</div>

Good Morning Kevin,

Please review the three documents attached. Two are from the Modbus Poll Software in which an address scan was performed on the holding and input Registers. The other document is from the flow meter which explains the modbus addresses.

Thinking about this last night, I wanted to make sure I grasp all of this learning event.

Instead of "zero out the flow." We will come back to that later. Let's say I want to change the "volume unit" which is 338 (Relative Address) and the Register Address is 40339. Currently, it reads 13 (bbl.). Could I change this to 10 (gal.) using Ignition?

Thanks again,

C

[Read Holding Registers - 4X - Modbus Poll Software.xlsx](https://forum.inductiveautomation.com/uploads/short-url/nybv1f6IG79KwVZHQgGA6QVHs2E.xlsx) (97.5 KB)  
[Read Input Registers - 3X - Modbus Poll Software.xlsx](https://forum.inductiveautomation.com/uploads/short-url/54FBdZTFct6OT16rJjvS2mavyWW.xlsx) (75.3 KB)

[IM01E21A02-05EN (2) - Modbus.pdf](https://forum.inductiveautomation.com/uploads/short-url/26cEl6rvapk0NxurcwtHArkZmA6.pdf) (2.3 MB)

---

<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:** [February 28, 2025, 5:07pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/4 "2025-02-28T17:07:37Z")

</div>

Seems like it based on the documentation. The address for Ignition's Modbus driver would probably be `HR339`, possibly `HR40339`.

---

<div class="post-metadata">

**Author:** ![Coleman\_Dudley](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Coleman\_Dudley](https://forum.inductiveautomation.com/u/Coleman_Dudley)\
**Post date:** [March 10, 2025, 8:10pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/5 "2025-03-10T20:10:13Z")

</div>

Kevin,

Over the weekend. I used Modbus Poll to obtain Set Device Address (Relative Address: 25, Register Address: 40026), Set Transmission Mode (Relative Address: 26, Register Address: 40027), Set baud rate (Relative Address: 28, Register Address: 40029), Total 1 (Relative Address: 104, Register Address: 300105).

Set Device Address: 1  
Set Transmission Mode: 0  
Set baud rate: 4  
Total 1: 0, 0

When I tried to use Ignition ,

Set Device Address: 0 / Good  
Set Transmission Mode: 0 / Good  
Set baud rate: 0 / Good  
Total 1: Bad.

I placed all the information attachment. Do you know where I went wrong in IA?

Thanks,

C  
[Ignition Edge Help.pdf](https://forum.inductiveautomation.com/uploads/short-url/t8WCvkKNCdLy2mdb4AgWMFpuKnF.pdf) (291.8 KB)

---

<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:** [March 10, 2025, 8:19pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/6 "2025-03-10T20:19:19Z")

</div>

Your device documentation is one-based, not zero-based.

I recommend you leave it as zero-based (matching the actual protocol on the wire) and use the "relative" addresses. (Offsets from start of device memory area.)

---

<div class="post-metadata">

**Author:** ![Coleman\_Dudley](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Coleman\_Dudley](https://forum.inductiveautomation.com/u/Coleman_Dudley)\
**Post date:** [March 10, 2025, 8:34pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/7 "2025-03-10T20:34:39Z")

</div>

pturmel,

Understood. I checked "Zero-Based Addressing."

And left Modbus Address unchanged. Or should I change addresses also?

Thanks,

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/851cc563a2acff37d53edfa10f8989c48de1cf8e.png)

---

<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:** [March 10, 2025, 8:41pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/8 "2025-03-10T20:41:01Z")

</div>

I generally do not recommend using the address mapping feature of IA's driver. Just make OPC tags in the designer with the following OPC Item Paths:

- Set Device Address: `[deviceName]1.HR25`
- Set Transmission Mode: `[deviceName]1.HR26`
- Set Baud Rate: `[deviceName]1.HRI28`
- Total: `[deviceName]1.IR104`

Note that a "relative" address is what is on the wire (zero based). The addresses shown with the register type prefix (`4` =\> `HR`) are typically one-based.

Prefix `3` =\> `IR` for input registers. These are read-only on the wire.

---

<div class="post-metadata">

**Author:** ![Coleman\_Dudley](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Coleman\_Dudley](https://forum.inductiveautomation.com/u/Coleman_Dudley)\
**Post date:** [March 10, 2025, 9:50pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/9 "2025-03-10T21:50:15Z")

</div>

pturmel,

Please see the pictures attached. The device / flow meter is named MB3170-Flow\_Meter. It shows connected. I made an OPC Tag for all 4 variables.

But all values came up as bad.

Any other solutions or ideas?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/c/ece4845faeebf2327e36e25e1c1a6bc8e3ebe6f7.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8f5edecd23c51f078510ca97da58ea82f45e9d4f.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/b/6b96472b3a9ad1786ccdf9c49aeffb207b3c60b0.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/b/4b4e4a20ffffb69bfc085bd803ec7cf2d992fb36.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/725baaca45cf49f9106761e291184a5bce7482b0.png)

Thanks,

C

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [March 10, 2025, 10:56pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/10 "2025-03-10T22:56:11Z")

</div>

What is the exact quality code of one of the tags? Expand the tag in the Tag Browser and give us the full text next to the "Quality" property on that tag.  
I would recommend disabling all-but-one of the tags, and work to get a single value coming in correctly before reading additional values.

---

<div class="post-metadata">

**Author:** ![Coleman\_Dudley](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Coleman\_Dudley](https://forum.inductiveautomation.com/u/Coleman_Dudley)\
**Post date:** [March 14, 2025, 9:43pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/11 "2025-03-14T21:43:25Z")

</div>

All,

I double checked everything and apparently my IP address was incorrect. I want to thank ptrumel, Kevin, and the Ignition Forum Community for helping me with the address mapping.

Thanks,

C

---

<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:** [March 14, 2025, 9:50pm UTC](https://forum.inductiveautomation.com/t/modbus-questions/103011/12 "2025-03-14T21:50:39Z")

</div>

Whoops! Thanks for circling back with the update.
