A plant with Mitsubishi equipment usually has two projects hiding inside one. The M70 or M80 CNCs need one connection method. The MELSEC PLCs on presses, assembly machines and utilities need another. Done in the right order, both land on the same dashboard within days.
This guide walks through the sequence we use in the field. If you are still choosing between the CNC communication interface, MC protocol, OPC UA and MTConnect, read Mitsubishi M70/M80 CNC and MELSEC PLC protocols first.
What you will end up with
- CNC machines: status, spindle speed and load, alarms, part count, cycle time and program number
- PLC machines: status, cycle count, cycle time and machine-specific values (pressure, temperature, stroke count) from D registers
- Everything published to one MQTT broker and shown on one OEE dashboard
Architecture in words
- Mitsubishi CNCs and MELSEC PLCs on an isolated machine network, each with a static IP.
- An edge gateway with one port on the machine network. It reads CNCs over the CNC communication interface (port 683 in our installations) and PLCs over MC protocol or SLMP on the port you configure.
- An MQTT broker on the plant LAN, a local server or the cloud over TLS (Transport Layer Security).
- A monitoring platform subscribed to the broker, storing history and serving dashboards.
Step 1: Survey
| Item | CNC | PLC |
|---|---|---|
| Model and version | CNC diagnosis screen | GX Works / CPU label |
| Ethernet port | Back of the control unit | CPU built-in or Ethernet module |
| Current IP | CNC network parameters | PLC parameters in GX Works |
| Options (OPC UA, MTConnect) | CNC option list | Module list |
| Signal list | Machine builder | PLC program owner |
For PLC machines, get the device list from the programmer: which D register holds the cycle count, which M bit means “auto running”, which bit means “fault”.
Step 2: Plan the network
Assign each controller a unique static IP on one subnet, for example 192.168.30.0/24. Many M70/M80 CNCs leave the factory with the same default address (often 192.168.200.1). Change every one before connecting them to a shared switch.
Record each device in a sheet: machine, controller type, IP, protocol, port.
Step 3: Prepare the CNC
- Set the CNC’s IP address, subnet mask and gateway in the network parameters. Restart the CNC if required.
- Confirm the CNC communication port is reachable from the machine network.
- If OPC UA or MTConnect is installed and you plan to use it, enable it and note its port.
Test from a laptop on the same subnet:
ping 192.168.30.11
nmap -p 683 192.168.30.11
Step 4: Prepare the PLC
In GX Works3 (iQ-F, iQ-R) or GX Works2 (Q, L, FX3):
- Open the Ethernet port settings for the CPU or module.
- Add a connection for SLMP or MC protocol.
- Choose TCP, a port number (for example 5000), and binary code.
- Write the parameters to the PLC and reset it if required.
Get the PLC owner’s agreement first. This is a parameter change, even though it does not touch the ladder logic.
Test the port:
nmap -p 5000 192.168.30.21
Step 5: Build the tag lists
CNC example:
| Data | Source | Poll |
|---|---|---|
| Operation state | CNC status | 200 ms to 1 s |
| Spindle speed / load | CNC spindle monitor | 1 s |
| Alarms | CNC alarm list | On change |
| Part count | CNC work counter | 2 s |
| Program number | CNC | On change |
PLC example (addresses are illustrative; use your program’s device list):
| Data | Device | Poll |
|---|---|---|
| Auto running | M100 | 250 ms |
| Fault active | M200 | 250 ms |
| Cycle count | D500 (32-bit, D500–D501) | 1 s |
| Last cycle time (0.1 s) | D510 | On count change |
| Hydraulic pressure | D520 | 2 s |
Note the data type of every register. A 32-bit counter read as 16 bits wraps at 32,767 and looks like a production crash.
Step 6: Configure the gateway
- Connections: one per controller, with the right protocol, IP, port and code (binary).
- Status rules: fault first, then running, then idle, then offline when the controller stops answering.
- Cycle time: use the PLC’s own cycle-time register where it exists. Otherwise time the gap between cycle-count increments.
- Scaling: apply the programmer’s scale factors (for example 0.1 s per count) in the gateway, not in the dashboard.
- Read-only: do not enable writes to CNC or PLC devices.
- Store and forward: buffer data on the gateway when the broker is unreachable.
Step 7: Publish to MQTT
plant1/turning/m80-lathe-03/status
plant1/press/fx5u-press-01/cycle
Example payload from a PLC press:
{
"ts": "2026-11-27T16:42:10+05:30",
"state": "RUNNING",
"cycle_count": 15872,
"cycle_s": 6.4,
"pressure_bar": 142.0
}
Retain status messages. Use QoS (quality of service) 1 for cycle records and alarms.
Step 8: Dashboard and OEE
- Load the shift calendar and planned breaks.
- Set ideal cycle times per program (CNC) or per product (PLC machines).
- Add stop reasons and reject entry for operators.
- Compare one week of data with the manual log, then correct mappings.
Our virtual machine monitoring overview shows the type of dashboard you end up with.
Step 9: Secure it and hand it over
MC protocol and the CNC interface can both write data, not only read it. A careless client could change a counter, a timer preset or a CNC variable. So:
- Keep the controllers on their own subnet. Only the gateway connects to both the machine network and the plant LAN.
- Block the CNC and PLC ports on the plant firewall.
- Where the PLC supports it, restrict the open connection to the gateway’s IP address and disable online writes.
- Use a VPN through the gateway for remote support. Never port-forward to a controller.
Then hand over. Maintenance owns the network, the gateway and the device sheet. Production owns reason codes and cycle standards. Set an alert when any machine stays offline during a shift, and review downtime reasons every week for the first month.
Why data types matter more than protocols
A typical failure looks like this: a PLC counts strokes in a 32-bit register pair, but a monitoring client reads only the first 16-bit register. Everything looks fine until the count passes 32,767, then it jumps to a negative number or back to zero. The dashboard shows a production crash that never happened, and people stop trusting it. Agree the data type, word order and scale factor for every register with the programmer, and write them in the tag sheet.
Troubleshooting
- PLC answers ping but not the gateway. No SLMP/MC connection configured, wrong port, or TCP vs UDP mismatch.
- Values look like nonsense. Binary vs ASCII mismatch, or the wrong data type (16-bit vs 32-bit, signed vs unsigned).
- Wrong input read on FX/iQ-F. X and Y addresses are octal on FX and iQ-F. X10 is the ninth input, not the tenth.
- CNC connection fails. Default IP still set, CNC on a different subnet, or port 683 blocked by a switch ACL.
- Count jumps backwards. Operator reset the counter. Record increments, not absolute values.
- Dropouts on presses. Electrical noise near large motors. Use shielded cable and proper grounding in the cabinet.
Conclusion
Treat Mitsubishi as two connected jobs: CNC communication for M70/M80, and MC protocol or SLMP for MELSEC PLCs. Fix the IP plan first, open the PLC connection in GX Works, keep tag lists short and typed correctly, and let the edge gateway do the logic before it publishes to MQTT. The result is one dashboard for machines that never used to talk to each other.
The same process works for Siemens CNC and PLCs, Haas machines, FANUC via FOCAS and Delta PLCs over Modbus.
Need help connecting your Mitsubishi CNCs and PLCs? Book a free assessment and we will show you what a gateway-based setup collects on day one.