Skip to main content
INDUSTRIAL PROTOCOLS · MACHINE TOOLS

What Is MTConnect?

MTConnect is an open, royalty-free standard for reading data from CNC machine tools and other manufacturing equipment. An agent publishes each machine’s state, program, spindle, axis and alarm data as XML or JSON over HTTP, using a common vocabulary, so monitoring software can read different brands of machine the same way.

01

What MTConnect is

MTConnect is an open, royalty-free manufacturing standard for getting data out of CNC machine tools and other shop-floor equipment in a consistent form. It defines both a protocol, based on HTTP and XML (JSON is also supported in current versions), and a common vocabulary: a spindle speed, an execution state or an emergency stop means the same thing whichever company built the machine.

The standard grew out of a 2006 call by the Association for Manufacturing Technology (AMT) for an open way to connect machine tools to the internet. It was developed with the University of California, Berkeley and Georgia Tech, version 1.0 was released in December 2008, and it is maintained by the MTConnect Institute. It is also published as an American National Standard, ANSI/MTC1.4-2018, and has continued through the 2.x series since.

MTConnect is deliberately read-only. It describes how software reads data from a machine, not how it writes to one, which keeps it out of the control path and makes it a natural fit for machine monitoring and analysis.

02

How MTConnect works: adapter, agent and client

An MTConnect system has three roles. They can run on the machine’s own controller, on a small computer beside it, or on a server elsewhere on the network.

  • //
    Adapter. Reads the machine’s native data, from the controller’s own interface, a PLC, I/O or a serial port, and turns it into a simple stream for the agent. Many adapters use SHDR, a pipe-delimited text format over TCP, often on port 7878.
  • //
    Agent. Collects data from one or more adapters, maps it to the MTConnect information model, keeps a short buffer of recent values and serves it over HTTP, often on port 5000.
  • //
    Client. Any application that queries the agent, such as a machine monitoring dashboard, an MES, a historian or an analytics tool.
  • //
    Requests. Clients use four main requests: probe (what the device contains), current (latest values), sample (a time series from the buffer) and asset (tools, programs and other assets).
03

The MTConnect information model

Each agent describes its devices as a tree of components: a controller with one or more paths, linear and rotary axes, spindles, coolant, door and other systems. Every value in that tree is a data item in one of three categories.

Samples are continuously changing numbers, such as spindle speed, load, feed rate and axis position. Events are discrete states and values, such as execution state, controller mode, program name, part count and tool number. Conditions report health as normal, warning or fault, with the alarm text. Because the names and measurement conventions are standardised, a monitoring system can show utilisation and alarms for different brands of machine without custom mapping for each one.

04

MTConnect vs OPC UA

MTConnect and OPC UA are often compared, and many newer machines support both. In 2019 the MTConnect Institute and the OPC Foundation published a joint companion specification that maps the MTConnect model into OPC UA.

Feature MTConnect OPC UA
Scope Manufacturing equipment, especially machine tools Any industrial equipment and software
Direction Read-only Read, write, subscribe and call methods
Data model One fixed vocabulary for machine tools Generic model, specialised by companion specifications
Transport HTTP REST with XML or JSON Binary over TCP (port 4840), HTTPS, PubSub
Security Relies on the network and HTTPS where configured Built-in certificates, signing and encryption
Standard MTConnect Institute, ANSI/MTC1.4 OPC Foundation, IEC 62541

In practice the choice is often made by the machines on site. Where both are available, MTConnect is quick to set up for monitoring, while OPC UA suits plants that also need to write data back or standardise on one protocol across all equipment. Our white paper on OPC UA vs MQTT covers how the data then travels on to the cloud.

05

Connecting older machines to MTConnect

CNC machine tools often run for 25 years or more, so most shops have a mix of machines with native MTConnect, machines with another Ethernet interface and machines with only an RS-232 port, often used for DNC program transfer. An adapter running on an edge computer can cover all three: it reads the controller over Ethernet, reads status over serial, or reads the stack light through digital inputs, and feeds a single agent.

Our industrial IoT gateways and DIN rail PCs run Linux or Windows, so the open-source MTConnect agent and adapters can be installed on them. Most of our gateways list RS-232/422/485 ports, and where a computer needs more, our serial I/O modules add ports for a row of older machines.

FAQ · 01
What does an IIoT gateway do in an MTConnect system?
It sits between the machines and the network. A gateway can host MTConnect adapters for several machines, run the agent, buffer data during network outages and keep the machine network separate from the plant network.
Read the full FAQ —
06

Quick answers on MTConnect

MTConnect: common questions

What is MTConnect used for?

Machine monitoring and analysis. It feeds utilisation dashboards, OEE reports, alarm tracking, MES and maintenance systems with consistent data from different brands of machine tool.

What is an MTConnect adapter?

The translator at the machine. It reads the controller’s native data, or I/O and serial signals, and passes it to the agent, usually as SHDR text over TCP.

What is an MTConnect agent?

The HTTP server that clients query. It maps adapter data to the MTConnect model, buffers recent values and answers probe, current, sample and asset requests.

Is MTConnect open source?

The standard is open and royalty-free. The MTConnect Institute also publishes an open-source reference agent, and several open-source adapters and client libraries are available.

Which machines support MTConnect?

Many current CNC controls, either as standard or as an option. Support depends on the builder, the control and its software version, so check before you buy. Machines without it can usually be added through an adapter on an edge computer.

Can MTConnect control a machine?

No. MTConnect is read-only by design. Writing programs or settings to a machine needs another interface, such as the builder’s own protocol, DNC or OPC UA.

We supply gateways and DIN rail PCs for MTConnect projects with the operating system, serial and network interfaces configured as standard, ready for the agent and adapters your machines need.