How to Log MTConnect Data to a CSV or Excel File
Open Automation Software Tags can be defined to connect to MTConnect Servers with the built in MTConnectDriver Interface. This tutorial walks you though downloading and installing OAS, configuring an MTConnect driver, configuring tags and logging them to a CSV or Excel file.
Step 1. Download and Install the Open Automation Software and Start the OAS Service
If you have not already done so, you will need to download and install the OAS platform. Fully functional trial versions of the software are available for Windows, Windows IoT Core, Linux, Raspberry Pi and Docker on our downloads page.
On Windows run the downloaded Setup.exe file to install one or more of the Open Automation Software features. Select the default Typical installation if you are not sure what features to use or the Custom installation if you want to save disk space on the target system. When prompted agree to the End User License Agreement to continue the installation.
For more detailed instructions and video tutorials, visit the installation guide for your system:
Windows Installation | Linux Installation | Raspberry Pi Installation | Dockers Installation
The OAS Service Control application will appear when the installation finishes on Windows. Use this application to start the 3 Services. Run the Configure OAS application on Windows and select Configure-Tags; if the first time running, the AdminCreate utility will run to create an Administrator login as shown in Step 1 of Getting Started – Security.
Step 2. Configure Your MTConnect Data Source
- First, you will need to open the Configure OAS application from the program group Open Automation Software.
- Select Configure >> License from the top menu and verify that MTConnect is one of the available Drivers in the lower left of the form. The demo license will have this by default. If you do not see MTConnect available, contact support@openautomationsoftware.com to update your license.
- Select Configure >> Drivers from the top menu.
- Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.
- The Configure Drivers Screen will appear. Select MTConnect from the Driver dropdown box.
- Enter a meaningful Driver Interface Name that you will refer to this physical connection when defining Tags with a MTConnect Data Source.
- Leave Enable and Add Tags Automatically enabled.
- Specify the Live Data Url for the MTConnect stream.
- Click the Add Driver button above the Driver list in the left pane to add the Driver Interface as an available selection when defining Tags in the next step.
For more detailed instructions on configuring your MTConnect data source, click here to see our Getting Started MTConnect tutorial or watch the video tutorial below:
Step 3. Configure Your Tags
OAS provides multiple ways to add and define tags:
- Manually add and define Tags using the Configure OAS application. …learn more…
- CSV Import and Export …learn more…
- Programatically …learn more…
- One Click Allen Bradley …learn more…
- One Click OPC …learn more…
To add a Tag manually:
- In the OAS Configure Application, select Configure >> Tags from the top menu.
- Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.
- Click on the Add Tag button located at the top of the Tag browser on the left portion of the screen.
- A dialog box will appear. Enter a name for your new tag and click ok.
- A configuration screen will appear for your new tag. Select your data source type in in the Data Source dropdown box.
- Specify the correct data type in the Data Type dropdown box.
- Click Apply Changes at the bottom right of the window.
For more detailed instructions on configuring your tags, click here to see our Getting Started Tags tutorial.
Step 4. Configure Data Logging for CSV
- In the OAS Configure Application, select Configure >> Data Logging from the top menu.
- Select localhost or the remote service you wish to log data from with the Select button to the right of the Network Node list.
- A Logging Group screen will appear.
- Give your Logging Group a name that is meaningful to you.
- In the Common tab, you will determine your table format and type of logging you wish to implement.
- In the Tags tab, you will select the tags you wish to log.
- If you want to log to a database such as SQL Server, use the Database tab.
- To log to CSV, use the CVS Logging tab.
- Specify the Path where you would like your file to be created.
- Enter a file name in the File Name field.
- Once you have all of the tabs configured, click Add Group in the left panel to add your logging group to the service.
For more detailed instructions on Configuring Data Logging, visit our Getting Started Data Logging tutorial or watch the video tutorial below:
- 00:00 – Introduction
- 01:30 – Getting Started
- 03:00 – Continuous Logging
- 04:15 – SQL Server
- 06:25 – Save Changes
- 07:00 – Continuous Narrow Logging
- 09:30 – Event Driven
- 11:20 – Handshake Confirmation
- 12:45 – High Speed Logging
- 15:00 – Log to Stored Procedure
- 15:25 – Triggers
- 16:30 – Event Narrow Logging
- 18:00 – Timestamps
- 20:30 – Snapshot Logging
- 21:45 – Specific Time of Day Logging
- 22:50 – Data Change Row Logging
- 25:15 – Data Change Narrow Logging
- 26:45 – Networking
- 31:55 – Store and Forward
- 37:30 – Disable Store and Forward
- 40:15 – Update Records
- 40:50 – Dynamic Server, Database, and Table
- 41:10 – Automatic Deletion
- 41:40 – CSV File Logging
- 45:30 – Programmatic Interface
- 46:45 – CSV Export / Import
- 48:20 – One Click Automation
- 52:20 – Transaction Logging
- 54:25 – System Errors
- 56:00 – Contact Us
- 56:50 – Read Database Data