---
title: How to collect data from your CNC machine
description: If you need to see what’s costing your business money, you need to know how much your machines are down.
image: https://trackmymachines.com/hubfs/Imported_Blog_Media/logo-May-11-2026-02-29-16-0994-PM.png
---

<https://trackmymachines.com/>

Platform

### Solutions

[Production Tracking Increase productivity](https://trackmymachines.com/production-tracking-software) [Energy Tracking Reduce carbon footprint](https://trackmymachines.com/energy-tracking)

### Industries

[Product Manufacturing For OEM and brands](https://trackmymachines.com/product-manufacturers) [Subcontract Manufacturing For machine shops](https://trackmymachines.com/subcontract-manufacturing) [Automotive For tier 1 and tier 2 suppliers](https://trackmymachines.com/automotive-production-monitoring)

### About

[Hardware Plug & play hardware](https://trackmymachines.com/hardware) [Company See how much you'll save](https://trackmymachines.com/about) [ROI Calculator See how much you'll save](https://trackmymachines.com/roi-calculator) [Contact Us Get in touch with any questions](https://trackmymachines.com/contact-us)

[Case Studies](https://trackmymachines.com/resources?type=case-study)

Resources

[Blog Industry insights](https://trackmymachines.com/resources?type=blog) [Podcast Interviews with top manufacturers and more](https://trackmymachines.com/resources?type=podcast) [Tools Templates, trackers, and spreadsheets for manufacturers](https://trackmymachines.com/resources?type=tools)

[Pricing](https://trackmymachines.com/pricing)

[Download Brochure](https://trackmymachines.com/brochure)

Platform

### Solutions

[Production Tracking Increase productivity](https://trackmymachines.com/production-tracking-software) [Energy Tracking Reduce carbon footprint](https://trackmymachines.com/energy-tracking)

### Industries

[Product Manufacturing For OEM and brands](https://trackmymachines.com/product-manufacturers) [Subcontract Manufacturing For machine shops](https://trackmymachines.com/subcontract-manufacturing) [Automotive For tier 1 and tier 2 suppliers](https://trackmymachines.com/automotive-production-monitoring)

### About

[Hardware Plug & play hardware](https://trackmymachines.com/hardware) [Company See how much you'll save](https://trackmymachines.com/about) [ROI Calculator See how much you'll save](https://trackmymachines.com/roi-calculator) [Contact Us Get in touch with any questions](https://trackmymachines.com/contact-us)

[Case Studies](https://trackmymachines.com/resources?type=case-study)

Resources

[Blog Industry insights](https://trackmymachines.com/resources?type=blog) [Podcast Interviews with top manufacturers and more](https://trackmymachines.com/resources?type=podcast) [Tools Templates, trackers, and spreadsheets for manufacturers](https://trackmymachines.com/resources?type=tools)

[Pricing](https://trackmymachines.com/pricing)

[Download Brochure](https://trackmymachines.com/brochure)

Article

# How to collect data from your CNC machine

If you need to see what’s costing your business money, you need to know how much your machines are down.

![Rowan Easter-Robinson](https://trackmymachines.com/hs-fs/hubfs/Profile%20Pictures/rowan.jpg?width=40&height=40&name=rowan.jpg)

Rowan Easter-Robinson

Jan 13, 2022, 7:30:00 AM 3 min read

![](https://trackmymachines.com/hs-fs/hubfs/Imported_Blog_Media/logo-May-11-2026-02-29-16-0994-PM.png?width=1200&height=675&name=logo-May-11-2026-02-29-16-0994-PM.png)

#### In this article

#### Share Article

Link copied

If you need to see what’s costing your business money, you need to know how much your machines are down. There are some manual methods you could use, the simplest being an excel spreadsheet.

You need to log each day:

1. Total possible hours up (aka “In-Shift” time)
2. Hours of downtime

Most of the time shops will work 8 hours or 16 hours, depending on if there’s two shifts or one. So that’s the easy part, measuring actual machine downtime is the hard part. This relies on something you’ve probably seen on a CNC control before: manual data input. It’s worth noting the old adage here

## Native data collection

If your manual data input is unreliable then any inference you make on the resulting data might be wrong. Basing real business decisions on bad data could be costly or even catastrophic to your business. There is another way - automatic data collection.

This could be done in-house, there’s many options available to automatically collect data for your machine natively without much special hardware.

### Haas Machine Data Collection

If you’ve got a Haas CNC, you can use [Haas MDC](https://www.haascnc.com/service/troubleshooting-and-how-to/how-to/machine-data-collection---ngc.html) to measure uptime and downtime.

#### Haas built before 2016

With a machine built before 2016 you have to connect to the RS-232 parallel port on the machine. This is the grey 25 pin socket on the right hand side of VF1 milling machines, it may be elsewhere on other machines.

You can get an RS-232 to usb converter to directly plug it into your PC. If you don’t want your PC directly next to the machine however, you can add a wifi adapter to your RS-232 port with a [Moxa box](https://www.moxa.com/en/products/industrial-edge-connectivity/serial-device-servers/general-device-servers/nport-5100-series/nport-5110).

#### Haas built after 2016

If your Haas was built after 2016, you can directly connect it to your network with an ethernet cable. The default port to collect data from is 5051.

#### Haas commands

If you’re interested in machine downtime, the code you want to send to the machine is `?Q500`, this returns

```
PROGRAM, O0001, IDLE, PARTS, 1
```

Where O0001 represents the selected program, IDLE represents the current machine status, and 1 is the number of parts made so far.

There are loads of other codes you can send to the machine to get information such as cycle time. For more information click [here](https://www.haascnc.com/service/troubleshooting-and-how-to/how-to/machine-data-collection---ngc.html)

### Other machine data collection methods

Each machine control has its own data collection methods, most of these use TCP connections (same as your web browser). For example:

1. Fanuc - [Focas II library for interfacing](https://www.fanuc.eu/rs/en/cnc/development-software/focas-development-libraries)
2. Siemens - [MyMachines](https://www.dex.siemens.com/mindsphere/Applications/Manage-MyMachines)
3. Mazak - [MTConnect](https://www.mazakusa.com/machines/technology/digital-solutions/mtconnect/)

## Struggling to link up all your different machines?

If you’ve got loads of different machine tools with different controls, it takes a lot of work to get everything talking together. Maybe it’s time to try a different approach. TrackMyMachines offers machine data collection for *any* machine tool, whether it’s new, old, manual or CNC, 5-axis or 3-axis - we can collect data from it.

See your fleet, live and connected.

Connect your first machine in under 15 minutes and watch downtime, OEE, and part counts stream in real time. We'll walk you through it.

[Book a demo](https://trackmymachines.com/demo) [See pricing](https://trackmymachines.com/pricing)

[Previous Article What is planned and unplanned downtime in Manufacturing?](https://trackmymachines.com/resources/blog/what_is_downtime_in_manufacturing) <https://trackmymachines.com/resources?type=blog> [Next Article 3 Ways to improve your machine productivity](https://trackmymachines.com/resources/blog/3_ways_to_improve)

<https://trackmymachines.com/>

Industrial intelligence for the modern factory.

- <https://www.youtube.com/@TrackMyMachines?app=desktop>
- <https://www.instagram.com/trackmymachines/>
- <https://www.facebook.com/trackmymachines>
- <https://www.linkedin.com/company/trackmymachines>

## Solutions

- [Production Tracking](https://trackmymachines.com/production-tracking-software)
- [Energy Tracking](https://trackmymachines.com/energy-tracking)

## Industries

- [Product Manufacturing](https://trackmymachines.com/product-manufacturers)
- [Subcontract Manufacturing](https://trackmymachines.com/subcontract-manufacturing)
- [Automotive](https://trackmymachines.com/automotive-production-monitoring)

## About

- [Pricing](https://trackmymachines.com/pricing)
- [Hardware](https://trackmymachines.com/hardware)
- [Company](https://trackmymachines.com/about)
- [ROI Calculator](https://trackmymachines.com/roi-calculator)
- [Contact Us](https://trackmymachines.com/contact-us)

## Resources

- [Blog](https://trackmymachines.com/resources?type=blog)
- [Podcast](https://trackmymachines.com/resources?type=podcast)
- [Tools](https://trackmymachines.com/resources?type=tools)
- [Case Studies](https://trackmymachines.com/resources?type=case-study)

## Legal

- [Cookie Policy](https://trackmymachines.com/cookies)
- [Privacy Policy](https://trackmymachines.com/privacy)

 © 2026 TrackMyMachines ltd. All rights reserved.

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Rowan Easter-Robinson",
    "url" : "https://trackmymachines.com/resources/author/rowan-easter-robinson"
  },
  "dateModified" : "2026-05-11T15:45:17.327Z",
  "datePublished" : "2022-01-13T07:30:00.000Z",
  "headline" : "How to collect data from your CNC machine",
  "image" : [ "https://trackmymachines.com/hubfs/Imported_Blog_Media/logo-May-11-2026-02-29-16-0994-PM.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://trackmymachines.com/resources/blog/measuring_machine_downtime",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://trackmymachines.com/hubfs/TMM%20Branding/TrackMyMachines%20Logo.svg"
    }
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Rowan Easter-Robinson"
  },
  "dateModified" : "2026-05-11T15:45:17+0000",
  "datePublished" : "2022-01-13T07:30:00+0000",
  "description" : "If you need to see what’s costing your business money, you need to know how much your machines are down.",
  "headline" : "How to collect data from your CNC machine",
  "image" : "https://144736776.fs1.hubspotusercontent-eu1.net/hubfs/144736776/Imported_Blog_Media/logo-May-11-2026-02-29-16-0994-PM.png",
  "mainEntityOfPage" : "https://trackmymachines.com/resources/blog/measuring_machine_downtime",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://144736776.fs1.hubspotusercontent-eu1.net/hubfs/144736776/TMM%20Branding/TrackMyMachines%20Logo.svg"
    },
    "name" : "TrackMyMachines"
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://trackmymachines.com/",
    "name" : "Home",
    "position" : 1
  }, {
    "@type" : "ListItem",
    "item" : "https://trackmymachines.com/resources",
    "name" : "Resources",
    "position" : 2
  }, {
    "@type" : "ListItem",
    "item" : "https://trackmymachines.com/resources?type=blog",
    "name" : "Blog",
    "position" : 3
  }, {
    "@type" : "ListItem",
    "item" : "https://trackmymachines.com/resources/blog/measuring_machine_downtime",
    "name" : "How to collect data from your CNC machine",
    "position" : 4
  } ]
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "Organization",
  "contactPoint" : {
    "@type" : "ContactPoint",
    "areaServed" : "GB",
    "availableLanguage" : "en",
    "contactType" : "customer service",
    "telephone" : "+44-330-1333-005"
  },
  "logo" : "https://144736776.fs1.hubspotusercontent-eu1.net/hubfs/144736776/TMM%20Branding/TrackMyMachines%20Logo.svg",
  "name" : "TrackMyMachines",
  "sameAs" : [ "https://www.linkedin.com/company/trackmymachines", "https://twitter.com/trackmymachines" ],
  "url" : "https://trackmymachines.com"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebSite",
  "potentialAction" : {
    "@type" : "SearchAction",
    "query-input" : "required name=search_term_string",
    "target" : "https://trackmymachines.com/search?q={search_term_string}"
  },
  "url" : "https://trackmymachines.com"
}
```