My Haas Welcome,
!
Haas Tooling MyHaas/HaasConnect Sign In Register Haas Tooling MyHaas/HaasConnect Sign Out Welcome, My Machines Latest Activity My Quotes My Account My Users Sign Out
Find Your Distributor
  1. Select Language
    1. English
    2. Deutsch
    3. Español - España
    4. Español - México
    5. Français
    6. Italiano
    7. Português
    8. Český
    9. Dansk
    10. Nederlands
    11. Magyar
    12. Polski
    13. Svenska
    14. Türkçe
    15. 中文
    16. Suomi
    17. Norsk
    18. الإنجليزية
    19. български
    20. Hrvatski
    21. Ελληνικά
    22. Română
    23. Slovenský
    24. Slovenščina
    25. 한국어
    26. 日本語
    27. Українська
  • machines Main Menu
    • Vertical Mills
      Vertical Mills
      Vertical Mills View All
      • Vertical Mills
      • VF Series
      • Universal Machines
      • VR Series
      • VP-5 Prismatic
      • Pallet-Changing VMCs
      • Mini Mills
      • Mold Machines
      • High-Speed Drill Centers
      • Drill/Tap/ Mill Series
      • Toolroom Mills
      • Pocket Mill
      • Compact Mills
      • Gantry Series
      • SR Sheet Routers
      • Extra-Large VMC
      • Double-Column Mills
      • 3+2 Positioning Machines
    • Multi-Axis Solutions
      Multi-Axis Solutions
      Multi-Axis Solutions View All
      • Multi-Axis Solutions
      • Y-Axis Lathes
      • 5-Axis Mills
    • Lathes
      Lathes
      Lathes View All
      • Lathes
      • ST Series
      • Dual-Spindle
      • Box Way Series
      • Toolroom Lathes
      • Chucker Lathe
      • Haas Bar Feeders
    • Horizontal Mills
      Horizontal Mills
      Horizontal Mills View All
      • Horizontal Mills
      • 50-Taper
      • 40-Taper
    • Rotaries & Indexers
      Rotaries & Indexers
      Rotaries & Indexers View All
      • Rotaries & Indexers
      • Rotary Tables
      • Indexers
      • 5-Axis Rotaries
      • Extra-Large Rotaries
    • Special Series
      Special Series
      Special Series View All
      • Special Series
      • EU_Series_Redirect
    • Automation Systems
      Automation Systems
      Automation Systems View All
      • Automation Systems
      • Mill Automation
      • Lathe Automation
      • Automatic Parts Loaders
      • Automation Models
    • Desktop Machines
      Desktop Machines
      Desktop Machines View All
      • Desktop Machines
      • Desktop Mill
      • Desktop Lathe
      • Control Simulator, Standard
      • Control Simulator, Premium
    • Shop Equipment
      Shop Equipment
      Shop Equipment View All
      • Shop Equipment
      • Knee Mill
      • Haas Manual Lathes
      • Haas Saws
    • Fabrication Machines
      Fabrication Machines
      Fabrication Machines View All
      • Fabrication Machines
      • Laser Cutting Machines
      • CNC Press Brakes
    • QUICK LINKS Special Series  Special Series 
      EU SERIES EU SERIES BUILD & PRICE | PRICE LIST BUILD & PRICE | PRICE LIST In-Stock Machines In-Stock Machines WHAT’S NEW WHAT’S NEW YOUR FIRST CNC YOUR FIRST CNC
      SHOPPING TOOLS
      • Build & Price a Haas
      • Price List
      • Available Inventory
      • CNCA Financing
      WANT TO TALK TO SOMEONE?

      A Haas Factory Outlet (HFO) can answer your questions, and walk you through your best options.

      CONTACT YOUR DISTRIBUTOR >
  • Options Main Menu
    • The Haas Control Value Option Packages
      Value Option Packages
      Value Option Packages View All
      • Value Option Packages
    • Product Image Spindles
      Spindles
      Spindles View All
      • Spindles
    • Product Image Tool Changers
      Tool Changers
      Tool Changers View All
      • Tool Changers
    • Product Image 4th- | 5th-Axis
      4th- | 5th-Axis
      4th- | 5th-Axis View All
      • 4th- | 5th-Axis
    • Product Image Turrets & Live Tooling
      Turrets & Live Tooling
      Turrets & Live Tooling View All
      • Turrets & Live Tooling
    • Product Image Probing
      Probing
      Probing View All
      • Probing
    • Haas Chip & Coolant Management Chip & Coolant Management
      Chip & Coolant Management
      Chip & Coolant Management View All
      • Chip & Coolant Management
    • The Haas Control The Haas Control
      The Haas Control
      The Haas Control View All
      • The Haas Control
    • Product Image Product Options
      Product Options
      Product Options View All
      • Product Options
    • Product Image Tooling & Fixturing
      Tooling & Fixturing
      Tooling & Fixturing View All
      • Tooling & Fixturing
    • Product Image Workholding
      Workholding
      Workholding View All
      • Workholding
    • Product Image 5-Axis Solutions
      5-Axis Solutions
      5-Axis Solutions View All
      • 5-Axis Solutions
      • 5 Easy Steps to 5-Axis
    • QUICK LINKS Special Series  Special Series 
      EU SERIES EU SERIES BUILD & PRICE | PRICE LIST BUILD & PRICE | PRICE LIST In-Stock Machines In-Stock Machines WHAT’S NEW WHAT’S NEW YOUR FIRST CNC YOUR FIRST CNC
      SHOPPING TOOLS
      • Build & Price a Haas
      • Price List
      • Available Inventory
      • CNCA Financing
      WANT TO TALK TO SOMEONE?

      A Haas Factory Outlet (HFO) can answer your questions, and walk you through your best options.

      CONTACT YOUR DISTRIBUTOR >
  • Why Haas Main Menu
      Discover the Haas Difference
    • Why Haas
    • MyHaas
    • Education Community
    • Industry 4.0
    • Haas Certification
    • Customer Testimonials
  • Service Main Menu
      Welcome to Haas Service
      SERVICE HOME Operator’s Manuals How-To Procedures Troubleshooting Guides Preventive Maintenance Haas Parts Haas Tooling Videos
  • Videos Main Menu
  • Main Menu
    • View All
    • View All
    • View All
    • View All
      • HTEC Curriculum Support
      • Haas Value Option Packages (VOP) Journey
    • View All
      • Haas 10 kg Cobot Package
      • Cobot Kits
      • DC-1 Drill Center
      • CNC Sales News
      • Do More With Your Haas
    • View All
    • View All
      • contact-us-test
      • 4 - AUTOMATION SYSTEMS
      • Carousel-V2
      • expert test
      • Demo_Day_Trident-test
      • Link Test
      • image-sale-tag-test
      • article-list-test
      • Haas 25 kg Robot Package
      • test-algolia-page
    • View All
    • View All
    • View All
    • View All
      • calc-test
    • View All
    • QUICK LINKS Special Series  Special Series 
      EU SERIES EU SERIES BUILD & PRICE | PRICE LIST BUILD & PRICE | PRICE LIST In-Stock Machines In-Stock Machines WHAT’S NEW WHAT’S NEW YOUR FIRST CNC YOUR FIRST CNC
      SHOPPING TOOLS
      • Build & Price a Haas
      • Price List
      • Available Inventory
      • CNCA Financing
      WANT TO TALK TO SOMEONE?

      A Haas Factory Outlet (HFO) can answer your questions, and walk you through your best options.

      CONTACT YOUR DISTRIBUTOR >
  • Haas Tooling Main Menu
  • Haas Service Parts Main Menu
My Haas Welcome,
!
Haas Tooling MyHaas/HaasConnect Sign In Register Haas Tooling MyHaas/HaasConnect Sign Out Welcome, My Machines Latest Activity My Quotes My Account My Users Sign Out
Find Your Distributor
  1. Select Language
    1. English
    2. Deutsch
    3. Español - España
    4. Español - México
    5. Français
    6. Italiano
    7. Português
    8. Český
    9. Dansk
    10. Nederlands
    11. Magyar
    12. Polski
    13. Svenska
    14. Türkçe
    15. 中文
    16. Suomi
    17. Norsk
    18. الإنجليزية
    19. български
    20. Hrvatski
    21. Ελληνικά
    22. Română
    23. Slovenský
    24. Slovenščina
    25. 한국어
    26. 日本語
    27. Українська
×

Search Results

Web Pages

Images

    • <
    • 1
    • >

Machine Data Collection - NGC

Service Home How To Procedures Machine Data Collection - NGC
Recently Updated Last updated: 03/03/2021

Machine Data Collection - NGC


Machine Data Collection - NGC

- Jump to Section - 1. Introduction Back to Top

Introduction

This procedure will show you different ways you can collect machine data from a NGC Control.

Output Your Machine Data for Analysis - Video

The following service video shows you how to collect machine data from a NGC Control.

  NOTE:  This  service video is for reference only and does not replace the written procedure. 

MT Connect

The transfer of information between an MTConnect Agent and a client software application is based on a Request/Response information exchange approach.

 A client software application requests specific information from an MTConnect Agent. 

An MTConnect Agent responds to the  Request by publishing a Response Document.  

In normal operation, a client software application can issue three types of MTConnect Requests, which will result in different Responses from an MTConnect Agent.

 Note: To get the best functionality of the Haas MT Connect, we recommend software version 100.20.000.1200 or higher.

 Note: Machines that have a "/" in their name need to be updated to software 100.24.000.1200 or higher. Contact your HFO to have your machine updated. 

MT Connect - Request/Response

The transfer of information between an MTConnect Agent and the user is based on a Request/Response information exchange approach.

In normal operation, there are three types of MTConnect Requests that can be issued by a client software application that will result in different Responses by an MTConnect Agent. These Requests are:

  1. Probe Request–A client software application requests the Equipment Metadata for each piece of equipment that MAY publish information through an MTConnect Agent.

    The Agent publishes a MTConnectDevices Response Document that contains the requested information.

  2. Current Request –A client software application requests the current value for each of the data types that have been published from a piece(s) of equipment to an MTConnect  Agent.

    The Agent publishes a MTConnectStreams Response Document that contains the requested information.

  3. Sample Request –A client software application requests a series of data values from the buffer in an MTConnect Agent by specifying a range of sequence numbers representing that data.

    The Agent publishes a MTConnectStreams Response Document that contains the requested information.

 

MT Connect HTTP Request Format

MTConnect follows the rules of HTTP to fetch and transmit the requested MTConnect command:

  1. Haas machine IP address.
  2. 8082 fixed TCP port.
  3. Model of the machine (i.e, "UMC-750" or "VF-2SSYT")
  4. MT Connect agent request type: Probe, Current, Sample

MT Connect Request - Examples

http://172.21.16.31:8082/UMC/probe

http://172.21.16.31:8082/UMC/current

http://172.21.16.31:8082/UMC/sample

MDC - Ethernet Q Commands

Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet port or the Wireless Networking option. Setting 143 both enables the feature and specifies the data port that the control uses to communicate.

The Haas control uses a TCP server to communicate over networks. On the remote computer, you can use any terminal program that supports TCP; this example uses PuTTY.

Note: The Putty program can handle up to (2) simultaneous connections. Output requested by one connection is sent to all connections.

Note: To use MDC in this example the machine must already be connected to the network.

1

Make sure the machine is connected to the network. 

2

Set Setting 143 Machine Data Collect port to 5051.

Note: Do not use ports 8082 and 9090 - 9999 because they are already used by the Haas CNC control for other purposes. Check with your system adminstrator to make sure the port you want to used is not being use by another device in the network.

3

Go to Settings/Network tab and write down the IP Address of the machine.

Note: Make sure the Status is showing UP, if it shows DOWN the connection is not active, make sure the networking option is working correctly.

4

In the Host Name (or IP address) field. Set the machine's IP Address [1].

5

In the Port field. Set the Port number you specified in Setting 143, for this example it will be 5051 [2].

6

Set the Connection type to Telnet [3].

7

Click on Connection and check the box for Enable TCP keepalives (SO_KEEPALIVE option).

8

In Save Sessions type in Machine Data Collect. This will save the settings, next time you open the PuTTY program.

9

  1. Run the PuTTY program. Click on the Session Category.

10

Select Open to start the connection.

11

Turn the Caps Lock on your keybord.

12

Type ?Q100 .

Important: The letters must be uppercase. If the connection is active, the machine control responds with SERIAL NUMBER, XXXXXX, where XXXXXX is the machine’s actual serial number. For the initial connection, ?Q100 may have to be entered twice.

13

Refer to the next section for more Queries and Commands.

Query Format

The correct query format is ?Q###, where ### is the query number, terminated with a new line.

Response Format

Responses from the control begin with > and end with /r/n. Successful queries return the name of the query, then the requested information, separated by commas. For example, a query of ?Q102 returns MODEL, XXX, where XXX is the machine model. The comma lets you treat the output as comma-separated variable (CSV) data.

An unrecognized command returns a question mark followed by the unrecognized command; for example, ?Q105 returns ?, ?Q105.

Data Collection Queries and Commands Table

Command Definition Example Response
?Q100 Machine Serial Number SERIAL NUMBER, 1234567
?Q101 Control Software Version SOFTWARE VERSION, 100.17.000.2037
?Q102 Machine Model Number MODEL, CSMD-G2
?Q104 Mode (LIST PROG, MDI, etc.) MODE, ZERO
?Q200 Tool Changes (total) TOOL CHANGES, 35
?Q201 Tool Number in use USING TOOL, 4
?Q300 Power-on Time (total) P.O. TIME, 06282:17:13
?Q301 Motion Time (total) C.S. TIME, 00098:18:29
?Q303 Last Cycle Time LAST CYCLE, 00000:00:13
?Q304 Previous Cycle Time PREV CYCLE, 00000:00:01
?Q402 M30 Parts Counter #1 (resettable at control) M30 #1, 380
?Q403 M30 Parts Counter #2 (resettable at control) M30 #2, 380
?Q500 Three-in-one (PROGRAM, Oxxxxx, STATUS, PARTS, xxxxx PROGRAM, MDI, IDLE, PARTS, 380
?Q600 Read a Macro or system variable MACRO, 0.0
?Exxxx yyyyy.yyyyy Write to Macro or system variable. See E Commands section

Q600 Command (Read Variable)

You can request the contents of any macro or system variable with the ?Q600 command; for example, ?Q600 xxxx. This shows the contents of macro variable xxxx on the remote computer.

E Command (Write to Variable)

You can use an E command to write to any writable macro variable, but we suggest only writing to variables #1-33 and #10000-#10999, as values outside this range are set aside for other purposes. 

Note: Macro variables #10550-#10580 are unavailable if the mill has a probing system. See the Operator's Manual for a list of available system variables.

The correct E Command format is ?Exxxx yyyyyy.yyyyyy where xxxx is the macro variable and yyyyyy.yyyyyy is the new value.

Control will respond to Exxxx yyyyy.yyyyy command with either '!' character if macro could be set or with '?' if it can not set. Set if within the valid range of 6 digits negative or 6 digits positive.

Note: When you write to a global variable, make sure that no other programs on the machine use that variable.

Caution: Use extreme caution when you write to a system variable. Incorrect values for a system variable can cause damage to the machine.

MDC - 8M Option Status Relays

The NGC control has the ability to communicate the status of the control using the 8M PCB relays.   The status of 8M PCB relays (outputs 90 - 97 ) will change state depending on the condition of the machine. 

 Note: To monitor the Power On or E-stop state an extra contactor will need to be added to the Power On and Emergency Stop button.

To use this feature you will need  to have a 8M option installed and a service key. 

 Note: If the machine is equipped with a non-servo autodoor option it will have the 8M PCB installed you cannot use this 8M PCB. In this case you need to install a secondary 8M PCB, refer to 8M Option - Installation.

To enable the feature go into service mode and change Factory Setting: 

  • 315.26 [315:26] STATUS RELAYS = TRUE

To see the outputs of the 8M PCB status relays on the control:

Press the [DIAGNOSTIC] button.

Go to the I/O tab.

Type in: 8M and press the [F1] button.

Machine Status / 8M PCB Relay Status Table

The following table shows you which relays will be turned on, when the machine is at a certain mode.

Machine Status 8M PCB Output Relay 
Control is In-Cycle (Running) 90 (M21)
MEM Mode - No Alarms (Auto Mode) 91 (M22), 92 (M23)
MDI Mode - No Alarms (Manual Mode) 91 (M22)
Single Block Mode 92 (M23)
Feed Hold Stop 93 (M24), 94 (M25)
M00 or M01 Stop 93 (M24)
M02 or M30 Stop 94 (M25)
Feed Rate Override is not at 100% 95 (M26)
Spindle Speed Override is not at 100% 96 (M27)
Edit Mode 97 (M28)
Other Modes (Zero, DNC, JOG, List Prog, etc) All relays are turned OFF.

Recently Viewed Items

You Have No Recently Viewed Items Yet

Feedback
Haas Logo

Haas Delivered Price

This price includes shipping cost, export and import duties, insurance, and any other expenses incurred during shipping to a location in France agreed with you as a buyer. No other mandatory costs can be added to the delivery of a Haas CNC Product.

KEEP UP WITH THE LATEST HAAS TIPS AND TECHNOLOGY...

Sign up now!   

HAAS TOOLING ACCEPTS THE FOLLOWING:

  • Service & Support
  • Owners
  • Request Service
  • Operator Manuals
  • Haas Parts
  • Rotary Repair Request
  • Pre-Install Guides
  • Shopping Tools
  • Build & Price a New Haas
  • Available Inventory
  • The Haas Price List
  • CNCA Financing
  • About Haas
  • Accessibility Statement
  • DNSH Statement
  • Export Compliance
  • Careers
  • Certifications & Safety
  • Contact Us
  • History
  • Terms & Conditions
  • Haas Tooling Terms & Conditions
  • Privacy
  • Warranty
  • Haas Community
  • Haas Certification Program
  • Haas Motorsports
  • Gene Haas Foundation
  • Haas Technical Education Community
  • Events
  • Join the Conversation
  • Facebook
  • X
  • Flickr
  • YouTube
  • LinkedIn
  • Instagram
  • TikTok
© 2026 Haas Automation, Inc – CNC Machine Tools

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

2800 Sturgis Rd., Oxnard, CA 93030
Toll Free: (888) 817-4446 / Fax: 805-278-8554