Today is...
Tuesday, June 19, 2018
Welcome to Control.com, the global online
community of automation professionals.
Featured Video...
Featured Video
EtherCAT with CTC’s master lets your multivendor network play well together...
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive
Modbus Application Info
Searching a Program or script to read a meter connected to MGate MB3170.
By Julio Fuentes on 3 June, 2018 - 11:41 am

Hi All,

Thanks in advance. I am new in this world (Modbus).

I searched a lot on the web but I didn't find any answer. My apologies if this is a basic question. I have a meter connected to a Moxa Mgate MB3170, and I need to read and store the meter data.

1- Which program can be used to get the meter data or the MB3170 data provided y the meter?

2- Do I have to develop the script to access and query the Mgate MB3170 device?

3- Can I get the meter data and then insert into a Database to access this data any time I need?

Thank you so much.
JF.

1 out of 1 members thought this post was helpful...

1- There are a lot of programs you can use to read and/or write Modbus data p.e. SCADA, HMI, Modbus to Excel, Modbus to database, Modbus scanners. It all depends on what you want to do.
Start with a free Modbus Scanner p.e. Modscan from WinTech just to get acquainted with the Modbus protocol.

2- You do not have to write any script for the MB3170.
Configure the serial and ethernet port. Enable gateway function in the configuration so all ethernet telegrams are automatically routed to the serial port.

3- There is Modbus to database software available or you can write your own code. Search for Modbus to database in Google.

Thank you so much! your advise gave me a good idea of what to search for.

As I mentioned before my goal is to query the meter and insert the result data into the database. According your answer "Modbus to Database" sounds what I want to implement.

Does this application let me query the meter and insert the data to the DB automatically every certain time interval?

I assume most applications let you query the meter and insert data in the DB in certain time intervals.
See following links for your reference:

http://www.aggsoft.com/serial-data-logger/tutorials/modbus-tcp-power-meter-data-logging.htm

http://accautomation.ca/modbus-tcp-data-logging-to-database/

https://openautomationsoftware.com/knowledge-base/how-to-log-modbus-data-database/

https://www.icpdas-usa.com/ez_data_logger.php

Once again thank you so much for your reply. I appreciate it a lot !!!

1 out of 1 members thought this post was helpful...

I would start off by looking at the register values with a Modbus client tool such as modscan32.
https://www.win-tech.com/html/demos.htm

Depending on what DB you want to store it, you probably won't need a custom solution. Are you wanting to store it in an historian (ww, osi PI, ip21, etc.) or something like a SQL DB?

Hi,

Thank you for your reply. Will be to a SQL DB.

Hello,

ake a look at one of my favorite software packages, the Cogent Datahub. it can read/write to Modbus slave devices (your mgate device), store it any ODBC DB, display the data via web browser & more!

good luck