Skip to main content

Haas Next Generation Control

Next Generation controls connect over Ethernet with no extra hardware. Start with MTConnect — it covers execution, program, part count and alarms. Add a second Haas Serial connection only if you need macro or system variables that MTConnect does not expose.

Connect to: the control's Ethernet port · MTConnect port: 8082 · Haas Serial port: 4001 · Control setting: for serial, 143 MACHINE DATA COLLECT = 4001 (on Next Gen it takes a port number, not ON/OFF)

MTConnect (Primary Connection)​

Best option for Next Gen Haas machines. Provides comprehensive data with no additional hardware.

Prerequisites​

  • Haas machine with Next Generation control (2017+)
  • Ethernet connection capability
  • Network access between machine and Edge device
  • MTConnect enabled on machine (usually enabled by default)

Configure the Control for MTConnect​

Step 1: Enable MTConnect​

  1. Press SETTINGS button
  2. Navigate to NETWORK → WIRED CONNECTION
  3. Configure network settings:
    • IP Address: Set static IP or note DHCP address
    • Subnet Mask: Match your network (typically 255.255.255.0)
    • Gateway: Your network gateway

Haas Next Gen control — Settings → Network → Wired Connection screen showing IP Address, Subnet Mask, Default Gateway, and DNS Server fields; set a static IP and press F4 to Apply Changes

Haas NGC Wired Connection screen. Enter IP Address, Subnet Mask, Default Gateway, and DNS Server, then press [F4] Apply Changes. Changes are lost if you navigate away without pressing F4.

  1. Navigate to NETWORK → MTCONNECT
  2. Verify settings:
    • MTConnect: ON
    • Port: 8082 (default)
    • Adapter: AGENT (default)

Step 2: Test MTConnect Connection​

From a computer on the same network, open a web browser:

http://[MACHINE-IP]:8082/current

Replace [MACHINE-IP] with your machine's IP address.

Expected Response: You should see XML data showing machine information and data items.

Add MTConnect Adapter in MachineMetrics​

  1. Log into MachineMetrics

  2. Go to Assets → Machines

  3. Click Add Machine

  4. Enter machine details:

    • Machine Name: (e.g., "Haas VF-2")
    • Make: Haas
    • Model: (e.g., "VF-2")
    • Edge Device: Select your Edge
  5. Click Next

  6. Select adapter type: MTConnect Agent

  7. Enter connection details:

    • Connection address: [IP-ADDRESS]:[PORT] (e.g., 10.26.5.142:8082)
      • Format is IP address followed by colon and port number
      • Port 8082 is the standard MTConnect port for Haas Next Gen
    • Adapter IP/Port: Will auto-populate (e.g., supervisor:8022)
    • Adapter version: Will auto-populate after connection
  8. Click Test Connection

  9. If successful, click Save

Example:

  • Connection address: 192.168.1.100:8082
  • This connects to machine at IP 192.168.1.100 on MTConnect port 8082

Available MTConnect Data Items​

Next Gen Haas machines provide via MTConnect:

  • Execution State (execution) - ACTIVE, READY, INTERRUPTED, etc.
  • Controller Mode (mode) - AUTO, MANUAL, MDI, JOG, etc.
  • Program Name (program)
  • Tool Number (tool)
  • Spindle Speed (Sspeed)
  • Spindle Load (Sload)
  • Axis Positions (Xabs, Yabs, Zabs, etc.)
  • Feed Rate (Fovr, path_feedrate)
  • Part Count (PartCountAct)
  • Alarms (message)
  • And many more...

Haas Serial over Ethernet (Secondary Connection)​

For Next Gen machines (2017+) when you need macro/system variables not available via MTConnect.

⚠️ Important: This should only be used as a secondary adapter alongside MTConnect. MTConnect must be your primary connection for Next Gen controls.

When to Use This​

Only add Haas Serial to a Next Gen machine if:

  • You need specific macro variables (e.g., #3901, #3027, #13013)
  • You need system variables not exposed by MTConnect
  • MTConnect is already configured as your primary adapter

If you just need basic machine data, use MTConnect only.

Configure the Control for Haas Serial​

  1. Press SETTINGS button
  2. Navigate to I/O or MISCELLANEOUS page
  3. Find Setting 143 - MACHINE DATA COLLECT
  4. Set value to 4001 (port number)

Add Haas Serial Adapter in MachineMetrics​

  1. Go to Assets → Machines

  2. Select your existing Haas machine (with MTConnect already configured)

  3. Click Add Secondary Adapter

  4. Select adapter type: Haas Serial

  5. Enter connection details:

    • Connection address: [IP-ADDRESS]:[PORT] (e.g., 10.26.5.142:4001)
      • Use same machine IP as MTConnect
      • Port 4001 is the Haas Serial/MDC port
  6. Click Test Connection

  7. If successful, click Save

Example:

  • Connection address: 192.168.1.100:4001
  • This connects to machine at IP 192.168.1.100 on Haas Serial port 4001
  • MTConnect on same machine uses port 8082

Using Both MTConnect and Serial Together​

For Next Gen Haas machines, the recommended setup is to use MTConnect as the primary adapter and Haas Serial as a secondary adapter to access macro variables.

Why Use Both?​

  • MTConnect provides comprehensive machine data (execution, program, speeds, positions, etc.)
  • Haas Serial provides access to macro variables and system variables not exposed via MTConnect
  • Combine to get the most complete data set

Setup Process​

Step 1: Add MTConnect Adapter (Primary)​

  1. Go to Assets → Machines
  2. Click Add Machine
  3. Configure as MTConnect — see MTConnect (Primary Connection) above
  4. Connect to port 8082
  5. Save and verify data collection

Step 2: Add Haas Serial Adapter (Secondary)​

  1. On the same machine, click Add Secondary Adapter
  2. Select adapter type: Haas Serial
  3. Enter connection details:
    • Connection address: [MACHINE-IP]:4001 (e.g., 10.26.5.142:4001)
      • Use same machine IP as MTConnect, but port 4001
  4. Enable Setting 143 on machine (set to 4001)
  5. Add macro variables configuration (JSON)
  6. Save adapter

Step 3: Create Transform to Prevent Conflicts​

The Haas Serial connection may provide a RunStatus data item that conflicts with MTConnect's execution data item. Use a transform adapter to filter it out.

Create Transform Adapter:

  1. On the same machine, click Add Secondary Adapter
  2. Select adapter type: Transform
  3. Add this configuration:
version: 2

# Do NOT pass all data through automatically (use false to control what passes)
mtconnect-passthrough: false

# Deny the RunStatus from Haas Serial to prevent conflict with MTConnect execution
deny-keys:
- RunStatus

# Pull data items from parent adapters (MTConnect and Haas Serial)
declare-keys:
- execution # From MTConnect (primary execution state)
- program # From MTConnect
- tool # From MTConnect
- Sspeed # From MTConnect (spindle speed)
- opt-stop-enabled # From Haas Serial (macro variable)
- part-timer-seconds # From Haas Serial (macro variable)
- spindle-rpm-actual # From Haas Serial (macro variable)
- coolant-level-percent # From Haas Serial (macro variable)

# Output all declared data items
data-items:
- execution
- program
- tool
- Sspeed
- opt-stop-enabled
- part-timer-seconds
- spindle-rpm-actual
- coolant-level-percent

Important:

  • mtconnect-passthrough: false means only declared keys are passed through
  • mtconnect-passthrough: true means all parent data passes through automatically (in addition to declared keys)
  • Use false when you want explicit control over which data items are output
  1. Save transform adapter

Result:

  • MTConnect provides execution state (primary)
  • Haas Serial provides macro variables
  • RunStatus is blocked to prevent conflicts
  • All data flows to MachineMetrics cleanly

Data Flow Diagram​

Haas Next Gen Machine
│
├─→ Port 8082 (MTConnect)
│ └─→ execution, program, tool, speeds, positions, etc.
│
└─→ Port 4001 (Haas Serial/MDC)
└─→ opt-stop, part-timer, macro variables
│
└─→ Transform Adapter
└─→ Denies: RunStatus
└─→ Passes: macro variables

Final Output: Complete machine data from both sources

  • Macro Variables — the reason to add the secondary serial connection
  • Part Count — counting parts once the connection is up
  • DPRNT — sending custom data from the program
  • Troubleshooting — MTConnect faults and conflicts between the two adapters