Edge Computing Gateway Achieves Data From Mitsubishi Tool-Tool Machines in MES
An edge computing gateway achieves data from Mitsubishi tool-tool machines by reading the CNC controller over Ethernet or serial, normalizing it, and pushing it into MES. This page explains the mechanism, the protocol limits, and when a gateway is the wrong answer.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Key takeaways
What an edge computing gateway actually does on the floor
An edge computing gateway achieves data from a Mitsubishi tool-tool machine by sitting between the machine control and the network. It speaks the controller's native language on one side, usually Ethernet with SLMP or MC protocol, sometimes RS-232 or RS-485, and speaks MES-friendly protocols on the other side, typically OPC UA, MQTT, or a REST payload. The gateway is not a historian. It polls, maps, filters, and forwards. That distinction matters when you size it.
The Mitsubishi controller exposes registers, relays, and data registers organized by device type. A gateway reads D registers for part counts and cycle values, M relays for machine status, and X or Y devices for input and output states. Each tag in MES maps to one address. If MES expects a part count and the gateway reads the wrong D register, you get a plausible number that is simply wrong. Address mapping is the step where most pilot projects fail.
Timing is the second mechanism. The gateway runs a scan loop. Every cycle it reads the tag list, compares values, and only publishes what changed. That change-of-value logic is what keeps MES load flat as you add machines. A raw stream from 20 machines will saturate a modest MES endpoint. A filtered event stream will not.
The gateway also does light computation. It can convert raw register values into engineering units, group a start and end signal into a cycle time, and stamp records with a local timestamp before they leave the cabinet. This is the part that earns the word edge. If your gateway only forwards bytes, you have built a network bridge, not an edge layer.
- 1Poll, do not listenMost Mitsubishi CNCs do not push data unsolicited. The gateway drives the conversation.
- 2Map every tag to one addressA tag without a documented address is a future data error.
- 3Filter at the edgeChange-of-value publishing keeps MES ingest predictable.
Protocol choices and what each one costs you
Mitsubishi controllers in the field span several generations. Newer M800 and M700 series controls often expose Ethernet and support SLMP, which is a clean binary or ASCII conversation over TCP. Older M500 and M300 controls may only offer serial, or offer an optional Ethernet card that is not installed. A gateway purchase should start with a controller inventory, not a software shortlist.
OPC UA is the common northbound choice because MES platforms and historians accept it without custom code. It also carries data types and timestamps, which MQTT alone does not define. MQTT is lighter and travels better across segmented networks, but the payload schema is your responsibility. Whichever you pick, the gateway must own the schema. If MES defines the schema, every new machine becomes a software change.
Serial adds latency and cabling constraints. At 9,600 baud, a tag list of 40 registers can take a noticeable fraction of a second to read. If you need sub-second machine status on a serial link, split the tag list. Read status registers every scan and read slower diagnostic data every fifth scan. This is normal practice, not a workaround.
Network segmentation is not optional. Put the gateway on a machine VLAN, terminate it at a firewall, and allow only the outbound session it needs. A gateway with two network interfaces can bridge segments, but bridging is a security decision, not a default. Most plants route the northbound traffic through a single controlled path.
- 1SLMP over EthernetBest fit for M700 and M800 controls with the network option enabled.
- 2Serial MC protocolWorks on older controls; budget for slower scan rates.
- 3OPC UA northboundTyped and timestamped; accepted by most MES platforms.
- 4MQTT northboundLight payloads; you own the schema and the broker.
Why Mitsubishi tool-tool data is harder than machine status
Machine status is simple. A spindle running signal, a cycle start, and a part counter are all accessible from standard PLC devices. Tool data is not. Tool life, tool ID, wear offset, and remaining life often live in the NC side of the control, in areas that PLC register reads do not reach. On Mitsubishi controls, some of this data is available through specific system variables or through the controller's own data window, and some is only visible in the NC program and tool offset tables.
This is where a naive gateway project stalls. The team proves that running and stopped states work, then discovers that tool life numbers are not on the same address map. The fix is usually one of three things: read the tool offset table through the same protocol if the controller supports it, read it from a separate NC data path, or accept that tool life is managed in the machine and only the tool change event is sent to MES.
The third option is often correct. If MES needs to know when a tool changed and which program was running, a tool change event plus a program number is enough. If MES needs to predict tool wear across a fleet, you need the actual offset values, and that requires a documented NC data path. Decide which problem you are solving before you specify the gateway.
One more boundary: tool data sampled at the wrong moment is misleading. Reading a wear offset while the operator is editing the offset table produces a transient value. A gateway should read tool data at tool change, or at cycle end, not continuously. Sampling discipline is part of the data model.
- 1Status is easy, tool life is notPLC devices cover status. NC-side data needs its own path.
- 2Sample at tool changeContinuous reads catch operator edits and transient values.
- 3Event plus program numberOften enough for MES job tracking without offset values.
How the gateway fits into the MES job and OEE model
MES does not want raw machine signals. It wants a job context. A good gateway feeds three record types: machine state changes with a timestamp, cycle completions with a part count and cycle time, and tool change events with the tool and program identifiers. Everything else is diagnostic and belongs in a separate log.
The gateway should carry a machine identifier and, where possible, a work order or program number. Without a work order link, MES can report machine utilization but cannot report job progress. The work order number usually comes from the MES side, pushed down to the gateway and matched to the running program. If the operator loads a program manually, the gateway can still send the program number and let MES map it.
OEE calculation needs three inputs: availability, performance, and quality. A gateway can supply availability and cycle time. Quality usually comes from a separate inspection or first-pass-yield record. Do not ask the gateway to invent quality data. Scope it to what the controller actually knows.
Time synchronization matters more than most teams expect. If the gateway clock drifts from the MES clock, cycle events land in the wrong order and OEE reports show impossible overlaps. Point the gateway at the same NTP source as the MES servers. This is a five-minute configuration that prevents weeks of argument.
- 1Three record typesState change, cycle complete, tool change. Keep it small.
- 2Carry a work order linkWithout it, MES reports utilization but not job progress.
- 3Share one NTP sourceClock drift breaks event ordering and OEE math.
When a gateway is the wrong answer
A gateway is not a fix for an unstable network. If the machine network drops packets during shift changes, adding a gateway will make the data loss visible, not solve it. Fix the physical layer first. Industrial Ethernet in a machining cell sees chips, coolant mist, and vibration. Shielded cable, proper grounding, and a managed switch are prerequisites.
A gateway is also the wrong answer when the controller has no accessible data path and no retrofit option. Some very old controls expose only a serial port used by a tape reader or a proprietary bus. In that case, the honest options are a machine retrofit, a sensor-based approach using current transformers or vibration sensors, or manual entry. A sensor-based layer can give you run state and cycle counting without touching the control, but it cannot give you program numbers or tool data.
Do not use a gateway as a control path. Reading from a machine is safe. Writing to a machine through a gateway means MES or a cloud service can change offsets or start cycles. Keep the gateway read-only unless there is a specific, audited reason to write, and if you do write, put the logic in the controller, not in the gateway.
Finally, budget the engineering time. Hardware is a small fraction of the project. Tag mapping, schema definition, MES configuration, and acceptance testing are the real cost. A pilot on two machines is the right first scope.
- 1Fix the network firstA gateway exposes data loss, it does not repair it.
- 2Sensor retrofit is a valid fallbackGives run state and counts, not program or tool data.
- 3Keep the gateway read-onlyWriting to a control is a separate safety decision.
Step by step: proving the data path on two machines
A pilot scope that surfaces the real problems early.
- 1Inventory the controllersRecord model, firmware, available ports, and installed network options for each machine.
- 2Document the tag listList every tag, its device address, data type, and engineering unit. Keep the first list under 30 tags.
- 3Confirm the northbound schemaAgree on record types and field names with the MES team before configuration starts.
- 4Segment the networkPlace the gateway on a machine VLAN and allow only the outbound session it needs.
- 5Run a 72-hour captureCompare gateway records against a manual shift log. Check counters, cycle times, and event order.
- 6Add the NC data pathOnly after status and cycle data are trusted, add tool offsets or tool life variables.
Gateway versus direct PLC connection versus manual entry
Use this to pick the data path before buying hardware.
| Approach | Best for | Main limit | Typical scan |
|---|---|---|---|
| Edge gateway | Mixed controller fleet, multiple protocols | Needs tag mapping and network segmentation | 0.1–1 s |
| Direct PLC to MES | Single controller family, small tag list | MES must speak the controller protocol | 0.1–0.5 s |
| SCADA in the middle | Plants already running a SCADA layer | Extra license and tag configuration | 1–2 s |
| Manual operator entry | Low-volume, high-mix cells | Human error and delayed records | Minutes |
| Gateway plus NC data path | Tool life and offset tracking | Requires documented NC variables | Event-based |
The short verdict
If you need machine status, cycle counts, and job tracking across a mixed Mitsubishi fleet, an edge gateway is the right layer. If you need tool wear prediction across many machines, confirm the NC data path exists before you buy hardware; without it, plan for a sensor retrofit or manual tool records instead.
Common questions
Can one gateway serve several Mitsubishi controllers?
Yes, if the controllers share a protocol and the gateway has enough scan budget. A single unit can poll 10 to 20 machines when the tag list stays small and the network is stable.
Watch the total tag count and the scan interval. If you need sub-second status from 20 machines, split the load across two gateways.
Does the gateway need a separate network from the office LAN?
It should sit on a machine VLAN with a controlled path northbound. That keeps machine traffic away from office traffic and limits what the gateway can reach.
Allow only the outbound session the gateway needs. Do not bridge networks unless there is a documented reason.
How do we get tool life data if it is not in the PLC registers?
Check whether the controller exposes tool offset and life variables through its data window or a documented NC variable path. If it does, read them at tool change, not continuously.
If no path exists, send the tool change event and program number to MES. That covers most job tracking needs without offset values.
What happens to data when the network or MES is down?
A gateway should buffer locally and forward when the link returns. Size the buffer for at least one shift of records.
Records need a local timestamp so the order survives the outage. Store-and-forward is a basic requirement, not an extra.
Should the gateway ever write to the machine?
Keep it read-only by default. Writing offsets or starting cycles from a gateway turns a data project into a control project with different safety and validation needs.
If a write is required, put the decision logic in the controller and treat the gateway as a transport only.
How long does a two-machine pilot take?
The hardware install is quick. Most of the time goes into tag mapping, schema agreement, and comparing gateway records against a manual shift log.
Plan the pilot around a full production week so you see shift changes, tool changes, and at least one unplanned stop.
Send us your controller list and tag list
We will review the machine models, available ports, and the data you need in MES, then reply with a scoped approach and a quotation within 12 hours.
12-hour quoteDFM reviewNDA on request