element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Logging Modbus Data
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 304 subscribers
  • Views 1306 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Logging Modbus Data

camo200sx
camo200sx over 6 years ago

Hi there

 

I am am undertaking a project involving a portable battery powered box that houses 6 modbus sensors. The box is required to collect data for a duration of about 2 - 5min at a time and then the results exported so they can be used to generate a report.

 

I'm wondering what options people would recommend using for such a task? Being battery powered it would want to be as efficient as possible.

 

I initially thought something like an arduino but then decided it needed to be of industrial spec. This lead me to the IOT2040 with onboard RS-485. There are also stand alone dataloggers such as the KTA-287 by ocean controls that would possibly use less power but be a little more simple. The 2040 would allow for further addition of things like wireless connectivity, I'm just not too sure if its over the top

 

Thanks for your help!

 

Cam

  • Sign in to reply
  • Cancel
  • camo200sx
    camo200sx over 6 years ago

    Bump

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tonydbeck
    tonydbeck over 6 years ago

    Hi Cam,

     

    This is an interesting challenge.  The KTA-287 looks like a really nice little unit for what you want to do - I would be very tempted to go for this unit unless you have a requirement for more complex functionality.

     

    There are a number of other ways you could solve this each with their own advantages and disadvantages -

     

    Some options I would consider:

    • Siemens S7-1200 PLCSiemens S7-1200 PLC with RS485 comm boardRS485 comm board.  I know the PLC definitely supports acting as a Modbsu TCP master or slave, however I am not 100% sure if it support Modbus RTU over the RS485 module - my guess is that it will.  You could log the data to a datablock in the PLC.  The challenge would then be to pull the data out of the PLC, depending on the tools you have available and if you planned to connect the PLC to a network, you could use an OPC server and some software to save the data to a DB.  You could probably rule this option out if you didn't have any existing tools such as an OPC server, data historian or even the Siemens Step7 software to program the PLC - unless you are prepared to spend some money and time setting these up!

    imageimage

     

    • MBED board with an RS485 interface converter of some kind - I would recommend the Mikroe RS485 Click boardMikroe RS485 Click board as a converter.  There are a whole host of mbed boards you could use with different features on-board.  The list of boards is here.  With this option, you could use an existing Modbus library such as this one.  You would then need to write your own code to poll the required resisters and save the data to a specified location.  Some boards will have an SD card interface where you could save the data to an SD card.  Alternatively, the mbed interface provides a small amount of mass storage where you can create and save a CSV file.  This is something I have done very successfully using the LPC1768 board.  You then just plug in a USB cable and treat it like a USB drive.

    imageimage

     

    • Use a board such as the Embedded Micro Technology MyPi board with a Raspberry Pi Compute module and RS485 interface card.  They actually provide an example application to do exactly what you want to do.  See this link. This example will take Modbus data and save it into a SQLite DB.  This board could give you an awful lot of extra functionality should you need it as it is effectively a Raspberry Pi.  You would need to speak to Embedded Micro Technology directly to purchase one of these.

    imageimage

     

    • If you can connect to a network and have a PC or server available, you could use a Modbus RTU to TCP converter such as the ADAM 4572ADAM 4572 and then connect the Modbus devices to your network via this.  You would then need some software on a PC or Server to Poll the data from the devices and save it to a specified location.  There are a few Modbus applications available on Sourceforge that may do the job.  I have not had experience using these so cannot comment on which ones would work and which would be best.  Of course if you have any existing SCADA software tools available such as Wonderware, you could use these.

    image

     

    Hope this helps!

     

    I would be very interested to hear what you use in the end and how well it worked.

     

    Cheers

    ---------------------------

    Tony

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • camo200sx
    camo200sx over 6 years ago in reply to tonydbeck

    Wow. Thanks Tony

     

    You've certainly given me some food for thought!

     

    Ocean controls also has another one they told me about that is possibly a better option. It can read floating point directly without conversion needed. Apparently the sensor can do this too

    MSD200 Modbus Datalogger :: Data Loggers :: Welcome to Ocean Controls

     

    Like you say, a unit such as this would require less setup. I would then need to focus on a way to use the data obtained to create a nice report. Possibly excel or similar can do this with a template.

     

    I was leaning more towards the 2040 as I like to tinker but the above option is robust and industrial

     

    Keep ya posted!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube