# export data through Modbus on a X4-Z11-A01H-EU

**URL:** <https://forums.digi.com/t/export-data-through-modbus-on-a-x4-z11-a01h-eu/2921>\
**Category:** Python\
**Created:** [February 7, 2011, 4:32pm UTC](https://forums.digi.com/t/export-data-through-modbus-on-a-x4-z11-a01h-eu/2921 "2011-02-07T16:32:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppre76](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@ppre76](https://forums.digi.com/u/ppre76)\
**Post date:** [February 7, 2011, 4:32pm UTC](https://forums.digi.com/t/export-data-through-modbus-on-a-x4-z11-a01h-eu/2921/1 "2011-02-07T16:32:46Z")

</div>

Hi,

We need to interface a X4-Z11-A01H-EU (ConnectPort X4) gateway to a XA-Z14-CS4P-W in order to collect data from some I/Os and then send these data through a Modbus TCP connection.  
Does it suffice a configuration of the X4-Z11-A01H-EU for doing that, or do we need to write a custom python program?

thanks

---

<div class="post-metadata">

**Author:** ![lynnl](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lynnl](https://forums.digi.com/u/lynnl)\
**Post date:** [February 7, 2011, 6:06pm UTC](https://forums.digi.com/t/export-data-through-modbus-on-a-x4-z11-a01h-eu/2921/2 "2011-02-07T18:06:29Z")

</div>

You didn’t mention if you have tried the ‘iDigi/Dia’ frame work (see [www.idigi.com](http://www.idigi.com)), but I created a code-base which allows Modbus/TCP master/clients to query the X4, and return data from the Digi XBee adapters. (In you case, the DIO, right?)

Take a look at these pages.  
[http://www.digi.com/wiki/developer/index.php/Modbus\_Dia\_Server](http://www.digi.com/wiki/developer/index.php/Modbus_Dia_Server)  
[http://www.digi.com/wiki/developer/index.php/Modbus\_Dia\_Code\_Add-On](http://www.digi.com/wiki/developer/index.php/Modbus_Dia_Code_Add-On)

The DIO isn’t listed, but it has been added.

There will be a learning curve to the iDigi/Dia path. You can also create your own code, leveraging the multi-master Modbus engine already in the X4. So you do NOT need to handle the complexity of multi-master and timing. The X4 does that for you.

Instead, you’d just create a simple Python app which waits on a localhost port (like 8502), which you enable in the X4’s modbus engine.  
[http://www.digi.com/wiki/developer/index.php/Integrating\_the\_Digi\_IA\_Modbus\_Bridge\_to\_Python](http://www.digi.com/wiki/developer/index.php/Integrating_the_Digi_IA_Modbus_Bridge_to_Python)

---

<div class="post-metadata">

**Author:** ![ppre76](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@ppre76](https://forums.digi.com/u/ppre76)\
**Post date:** [February 17, 2011, 4:19pm UTC](https://forums.digi.com/t/export-data-through-modbus-on-a-x4-z11-a01h-eu/2921/3 "2011-02-17T16:19:41Z")

</div>

Hi Lynni,

1. Is this _your_ add-on ?  
[http://www.digi.com/wiki/developer/index.php/Modbus\_Dia\_Code\_Add-On](http://www.digi.com/wiki/developer/index.php/Modbus_Dia_Code_Add-On)

2. Digi support told me that the Modbus Dia Server doesn’t work in a **mesh** zigbee network. Can you confirm that, or does your add-on resolve this problem, providing support for a mesh network too?

thanks for your help
