News:

  • July 03, 2026, 04:50:34 PM

Login with username, password and session length

Author Topic: Writing to and reading from databases on servers  (Read 8792 times)

racrowd

  • Full Member
  • ***
  • Posts: 23
Writing to and reading from databases on servers
« on: August 31, 2015, 09:04:24 AM »
This is something that we are wanting to implement, but I don't have a clue where to start.  I'm building test equipment for our product and I want to eventually be able to gather the test parameters from a database on a server and write the results to another database.  I have a very very basic concept regarding databases, so I was wondering if anybody could provide some help on how to implement this and where to start.  I'm using H2-DM1E.  Thanks in advanced.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Writing to and reading from databases on servers
« Reply #1 on: August 31, 2015, 09:54:36 AM »
What type of database is it? How much data are you moving at a time? Do you have IIS (Internet Information Services) or possibly WAMP/XAMP on your PC?

If you are starting from scratch on server end, then I would recommend downloading Microsoft Visual Studio Community Edition (it is fully functional and free). You can use it to program your server end communications, and launch it to your IIS server on the PC. This is enabled by simply going in to your 'Add/Remove Programs'>>Turn Windows Features on or off, and then select Internet Information Services, including the Web management tools, as well as World Wide Web Services. Once this is done, then you can begin to build your protocol.

Whenever you get started, then please post back, and I/we will try to help you get it going.



...There is one other very simple option: You can run the Do-more Logger an any PC on your network, and then use a STREAMOUT instruction to send the data to the logger and save it directly to a text/csv file automatically.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

racrowd

  • Full Member
  • ***
  • Posts: 23
Re: Writing to and reading from databases on servers
« Reply #2 on: August 31, 2015, 11:48:11 AM »
What type of database is it? How much data are you moving at a time? Do you have IIS (Internet Information Services) or possibly WAMP/XAMP on your PC?

If you are starting from scratch on server end, then I would recommend downloading Microsoft Visual Studio Community Edition (it is fully functional and free). You can use it to program your server end communications, and launch it to your IIS server on the PC. This is enabled by simply going in to your 'Add/Remove Programs'>>Turn Windows Features on or off, and then select Internet Information Services, including the Web management tools, as well as World Wide Web Services. Once this is done, then you can begin to build your protocol.

Whenever you get started, then please post back, and I/we will try to help you get it going.



...There is one other very simple option: You can run the Do-more Logger an any PC on your network, and then use a STREAMOUT instruction to send the data to the logger and save it directly to a text/csv file automatically.

Thanks, this is very informative.  It will most likely be a sql database.  I'm thinking that it will be a mixture of about 20 different variables to record (floating point, strings, integers, and some bits).  Later will include pulling about 20 variables into the plc to setup the tests.

So IIS will be the tool for publishing the data in the database to a website?  That's pretty cool.  Alright, now that I know what I have to learn, it is time to go study.  Thanks again.