# Help whit MOXA MGate MB3180

**URL:** <https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914>\
**Category:** Ignition\
**Tags:** perspective, vision, scripting, ignition79\
**Created:** [July 4, 2023, 10:47pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914 "2023-07-04T22:47:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [July 4, 2023, 10:47pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/1 "2023-07-04T22:47:58Z")

</div>

Hello

I'm a little confused, I have a MOXA MGate MB3180 and I connect to my ignition. this is my first time working with modbus.

I still don't quite understand the language that modbus gives me.

I see this

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/593e7f7e9add82b9b46d288318092430cd2a1dd6.png)

I have this on ignition

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/4803af884c9ca932006832578dfa7f5cc470e429.png)

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

but I don't know how to pass the data I see in the moxa to ignition tags.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 4, 2023, 11:13pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/2 "2023-07-04T23:13:56Z")

</div>

> [@antonio.sanchez](#):
>
> modbut

Modbus?

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [July 4, 2023, 11:21pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/3 "2023-07-04T23:21:16Z")

</div>

yes, sorry

---

<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:** [July 5, 2023, 2:36am UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/4 "2023-07-05T02:36:13Z")

</div>

The "Choose OPC Item" window you show is part of Ignition's OPC Browser. IA's driver does not allow browsing of the basic address ranges of a connected device. You have to manually enter OPC Item Paths into Ignition tags, based on the documentation of the end-device (on the other side of the Moxa).

The IA driver **does** allow you to create OPC Item alias with its "Mappings", and those aliases will be browsable. You still need to know what addresses to create as aliases.

My alternate driver (linked in an earlier discussion for you) exposes standard IA-style addressing in the OPC browser, given a list of nodes and the addresses you wish to browse. So even then, you need to know what addresses are meaningful in the end-device (on the other side of the Moxa).

The Modbus protocol is simply too old and stupid to provide any information (through the connection) on what possible registers might be useful. At best, a Modbus device can give errors for addresses that aren't used, but many simply provide zeros. Some will give errors when addresses are accessed in certain combinations. Again, there is no way for Ignition to know any of this (nor with my alternate driver). You simply need the documentation for the end device.

Please share what you know about your end devices (not the Moxa--its purpose is to pass through requests and data to the end devices without any special handling).

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 23, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/5 "2023-08-23T18:38:37Z")

</div>

HI  
I check the address rages

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a771e8aead73a229158a1d4fbe9f24252b88b60b.png)

I don't undesten how I can creat the tagas

I creat this adreess

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4f24cb0cccbd8763b99cd2fcf03d8e882a766881.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/4/e48c063f1229b98ef6832797b0e88f436b9d3899.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:** [August 23, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/6 "2023-08-23T20:28:19Z")

</div>

In the device documentation, the left hand columns show decimal and hexadecimal addresses that imply zero-based addressing. The default for IA's driver is one-based addressing. You will need to edit the driver to change that setting.

Based on Modpoll's result, you need

- Unit ID = 1. For manual addressing, this is done with a prefix of `1.`

- The voltage registers appear to be in integer format, possibly with an implied decimal place (if the 1200 represents 120V). The scaling part of that manual likely explains what you need. The double-register values are high-word first, which is normal.

- Address HR521 is not a double-word value as you mapping implies. It is reserved. Address HR522 is some kind of time constant.

Then:

- Create an OPC tag named `PrimaryV` in Ignition with OPC Item Path `[Modbus]1.HRI513`

- Then more tags with `[Modbus]1.HRI515`, `[Modbus]1.HRI517`, `[Modbus]1.HRI519`

Apply scaling on the Ignition side to deal with the implied decimal point. If you do that, be sure the data type on the Ignition side is set to float or double.

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 23, 2023, 10:10pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/7 "2023-08-23T22:10:25Z")

</div>

I have a other ask, the start and end is the line o diferent channel (equitment connect) whit we have

---

<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:** [August 23, 2023, 10:16pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/8 "2023-08-23T22:16:35Z")

</div>

I don't understand. Are you asking about the modbus over RS-485 on the other side of the Moxa?

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 23, 2023, 10:23pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/9 "2023-08-23T22:23:59Z")

</div>

we have a 5 screen connect to a moxa, this screen is connect whit a line or diferent channel

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

my ask is about this, this is my quantity of channel

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c3b3644b26f2fd1aa85e4eb09fb239585ebcdedf.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:** [August 23, 2023, 10:25pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/10 "2023-08-23T22:25:53Z")

</div>

Start and end are only meaningful in alias mappings, have nothing to do with unit ID (slave ID), and only have meaning to you. Use the `1.`, `2.`, `3.`, `4.`, and `5.` prefixes to target those five units.

I recommend you not use alias mappings at all. They are a terrible maintenance hassle. Just create your OPC tags in Ignition with manually-constructed Item Paths.

Yes, this means the Quick Client will be useless. If you must have browsing, I recommend using my alternate driver (which is browsable without mappings).

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 24, 2023, 2:48pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/11 "2023-08-24T14:48:57Z")

</div>

Hello

I appreciate your help and I am sorry for so many questions. but this is my first work with this device.

I make OPC tags as you told me but I have a error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/6/567bbaeda41434891e6791d0abcfe8fd7b7278cb.jpeg)

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

---

<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:** [August 24, 2023, 2:50pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/12 "2023-08-24T14:50:03Z")

</div>

Have you successfully communicated with this device and extracted the data at these addresses using any 3rd party Modbus util, such as modpoll? This would rule out configuration issues or bad addressing information.

edit: oops, I see the screenshot from that util in the middle of the post history. Carry on.

---

<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:** [August 24, 2023, 2:51pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/13 "2023-08-24T14:51:03Z")

</div>

Don't set the source data type on the tag. Use the `1.` prefix that is known to work in Modpoll. Did you edit the driver to use zero-based addressing?

---

<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:** [August 24, 2023, 2:53pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/14 "2023-08-24T14:53:05Z")

</div>

Don't use a one-millisecond rate on your scan class. Use just 1000ms until you see how fast it really can poll your tags. (1ms is almost certainly too fast, as you have serial modbus on the other side of the Moxa. If you only have a few tags, you might go as fast as 100ms. See the message in the bottom text block of the diagnostic pop-up.)

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 24, 2023, 3:24pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/15 "2023-08-24T15:24:14Z")

</div>

no, I don't know how to do this, I sent this point to my supplier but I haven't received a reply.

---

<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:** [August 24, 2023, 3:26pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/16 "2023-08-24T15:26:16Z")

</div>

> [@antonio.sanchez](#):
>
> I sent this point to my supplier

It isn't something for your supplier to do. You do it in Ignition. Edit your `Modbus` device in the gateway configuration page and expand its advanced settings. Nothing will work right if one-based versus zero-based is not set right.

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 24, 2023, 3:32pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/17 "2023-08-24T15:32:37Z")

</div>

ok, thanks.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1a31f31e1f3d954cdfe58574ebdcf73509387351.png)

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 24, 2023, 5:07pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/18 "2023-08-24T17:07:33Z")

</div>

I do the change but I still have an error in the label.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/d/5df7897d480adaf2e587ded07becad6f5eedec07.jpeg)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/11803654b8f61c37c32d35241b496f1c8d3b6109.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:** [August 24, 2023, 5:09pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/19 "2023-08-24T17:09:23Z")

</div>

I think I see a space in the device name part of your OPC Item Path. `[Modbus]` should be `[Modbus]`.

---

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [August 24, 2023, 5:10pm UTC](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914/20 "2023-08-24T17:10:32Z")

</div>

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

[Next page](https://forum.inductiveautomation.com/t/help-whit-moxa-mgate-mb3180/75914.md?page=2)
