Troubleshooting
Why node-red-contrib-cip-ethernet-ip fails with a Mitsubishi FX5U
Short answer
node-red-contrib-cip-ethernet-ip speaks Allen-Bradley CIP and PCCC services, which the FX5U's built-in Ethernet port does not answer; the port serves MC protocol and Modbus TCP. Install node-red-contrib-mcprotocol, front the PLC with an OPC UA server that has a Mitsubishi driver, or poll the FX5 built-in Modbus TCP. CC-Link IE is a separate network with no known Node.js driver, so reach that data through the CPU that owns it.

On this page
- Can node-red-contrib-cip-ethernet-ip talk to a Mitsubishi FX5U?
- Why does the FX5U not answer EtherNet/IP requests?
- Is CC-Link IE the same as EtherNet/IP?
- What should I use to read FX5U data in Node-RED instead?
- How do I enable MC protocol on the FX5U Ethernet port?
- How many registers can one Modbus TCP poll carry?
- How do I verify the connection before building the flow?
- Why does the MC protocol node still time out?
- Questions asked
node-red-contrib-cip-ethernet-ip will not read a Mitsubishi FX5U over its built-in Ethernet port, and no amount of address, subnet or firewall tuning changes that. The node speaks Allen-Bradley's CIP and PCCC services; the FX5U port answers MC protocol and Modbus TCP. Replace the node, not the network: install node-red-contrib-mcprotocol for native Mitsubishi addressing, front the PLC with an OPC UA server that has a Mitsubishi driver, or poll the FX5 built-in Modbus TCP. CC-Link IE is a different network with no known Node.js driver, so reach its data through the CPU that owns it. The sections below cover the symptom check, the three working routes, the MC protocol setup, poll sizing and verification.
Can node-red-contrib-cip-ethernet-ip talk to a Mitsubishi FX5U? #
No — this node speaks Allen-Bradley's CIP and PCCC services, while the FX5U's built-in Ethernet port answers MC protocol and Modbus TCP requests, so the two sides never agree on an application protocol and the node reports errors or empty results.
The failure pattern is predictable because the mismatch sits above the network layer. Confirm it before touching a single setting:
- Connection timeout to the CPU address — the port has no EtherNet/IP stack to accept the session.
- Connects, then tag reads fail or return nothing — the node issues PCCC and Logix-style services the CPU never implements.
- Ping succeeds while every request fails — the network is fine and the protocol is the problem.
Decision: if the PLC answers ping and this node still cannot read it, stop configuring the node. No parameter on the FX5U side turns its port into an Allen-Bradley services endpoint.
Why does the FX5U not answer EtherNet/IP requests? #
The CPU's built-in Ethernet port answers MC protocol, Mitsubishi's MELSEC communication protocol, and Modbus TCP, while EtherNet/IP is ODVA's CIP over standard Ethernet — a different application protocol the port has no stack for, so your request is never answered.
A Node-RED node can only exchange data with a device that implements the same application protocol. Sharing a cable, a switch and an IPv4 subnet proves nothing at this layer: EtherNet/IP carries CIP services, MC protocol carries Mitsubishi's framed requests, and Modbus TCP carries function codes. The FX5U answers the last two and has nothing for the first.
Mitsubishi does offer an EtherNet/IP adapter for this CPU family, but fitting one does not help here: these nodes request Allen-Bradley-specific services and still will not read Mitsubishi device memory. Decision: match the node to the protocol the port actually serves, not to the connector on it.
Is CC-Link IE the same as EtherNet/IP? #
No — CC-Link IE is a separate industrial network with its own frame format and its own services, and it shares only the physical cable with EtherNet/IP, so a node built for one never exchanges data with a device built for the other.
CC-Link IE is standardized by the CLPA and EtherNet/IP by ODVA; nothing in either stack translates a request from one into a request the other understands. Hunting a Node.js driver for CC-Link IE is a known dead end — none is published — so spend the hours on a route that works instead. Decision: treat CC-Link IE as unreachable from Node.js directly; the FAQ below spells out the practical route through the CPU that owns that network.
What should I use to read FX5U data in Node-RED instead? #
Three routes work today: node-red-contrib-mcprotocol for direct MC protocol access, an OPC UA server with a Mitsubishi driver fronting the PLC, or the FX5 series' built-in Modbus TCP polled with a standard Modbus node.
- MC protocol, direct. node-red-contrib-mcprotocol reads and writes Mitsubishi device memory over TCP or UDP with no middleware; a second node family, installed from the scoped package shown in the setup section below, covers the 3E and 4E frames in binary and ASCII forms. Choose this for native Mitsubishi addressing with the fewest moving parts.
- OPC UA with a Mitsubishi driver. An OPC server that has a Mitsubishi driver — KEPServerEX and Mitsubishi's MX OPC server are established examples — fronts the CPU, and Node-RED connects to it with node-red-contrib-iiot-opcua. Choose this when several clients share the data or you want a supported gateway, and expect connection faults to have their own causes: troubleshooting a Node-RED OPC UA connection that UaExpert accepts covers them.
- Modbus TCP, built in. The FX5 series implements Modbus over the built-in Ethernet port and over RS-485, so you map the devices you need and poll them with a plain Modbus node. Choose this when the downstream system already speaks Modbus. The FX5U is the server in that exchange and your flow is one of possibly several clients — how many clients one Modbus TCP server can serve explains what such a server accepts.
A fourth path exists — hand-framing MC protocol requests over a raw socket — but it leaves framing, timeouts and error recovery to you; keep it as a last resort. Decision: default to MC protocol for a single Node-RED consumer, OPC UA when the data is shared, Modbus TCP when Modbus is already the plant standard.
How do I enable MC protocol on the FX5U Ethernet port? #
Six steps do it: set the CPU's Ethernet parameters, enable an MC protocol connection for the port, write the settings and reset the CPU, install the node package, point the node at the PLC address and port, then deploy and watch the debug sidebar.
- In the FX5 engineering software, set a fixed IP address, subnet mask and default gateway for the built-in Ethernet port, on the same subnet as the Node-RED host.
- Enable an MC protocol connection for that port and choose TCP or UDP; note the port number you assign. The FX5 Ethernet communication manual for your CPU documents the setting and the allowed range.
- Write the parameters to the CPU and restart or reset it as the software requires — settings left only in the project change nothing.
- Install the node and restart Node-RED:
npm install node-red-contrib-mcprotocol
npm install @ap-atiruj/node-red-contrib-mc-protocol
- Configure the node with the PLC's address and the enabled port, and address devices the way the node documents — for example the data registers beginning at D100.
- Deploy, open the debug sidebar, and confirm values return.
For the frame formats, addressing schemes and worked request examples behind these steps, FX5 MC protocol Node.js guide walks through reading and writing PLC data from JavaScript. Decision: when the debug pane returns live values, the MC protocol route is proven and the rest of the flow can move onto it.
How many registers can one Modbus TCP poll carry? #
125 holding registers — the Modbus application protocol caps one response at a 253-byte PDU, and after the function code and byte-count bytes, 250 data bytes remain, which is 125 registers at 2 bytes each.
That ceiling is fixed by the protocol itself, so it does not move with the PLC; coil reads are bit-packed instead and carry up to 2000 coils. Stay inside both the protocol ceiling and the per-function limits the FX5 Modbus communication manual lists for its slave, and remember that which FX5 devices map to holding registers is set by the PLC's Modbus assignment, not by the node.
Worked example: suppose the flow needs 180 data registers refreshed every 1000 ms. One read carries 125, and 180 ÷ 125 = 1.44, which rounds up to 2 requests per cycle. Take a 20 ms round trip per request on the plant LAN — an example figure; measure yours with the node's timing output — and the two requests occupy 2 × 20 ms = 40 ms of the 1000 ms cycle, about 4 percent of it. Tighten the cycle to 100 ms and the same 40 ms occupies 40 percent: still workable, but jitter now bites and poll scheduling becomes the real constraint — polling many Modbus TCP slaves from Node-RED without saturating the CPU is the reference for that side.
Decision: plan requests from 125 registers per read and your measured round trip, and keep polling time below a third of the cycle so a retry still fits.
How do I verify the connection before building the flow? #
Verify four things before you build on the flow: the PLC answers ping, a monitored device value tracks in the Node-RED debug pane, a test write to an unused device shows up in the PLC's device monitor, and the flow recovers when you unplug the cable.
- Ping the PLC address from the Node-RED host. This proves layer 3 only — a passing ping with a failing node is exactly the protocol mismatch this article began with.
- Change a value in the engineering software's device monitor and watch the same change arrive in the debug pane. That proves the read path and the right addresses.
- Write a test value from Node-RED to an unused device and confirm it in the monitor. Write only to devices the program does not use, because a write into a device that drives an output can move machinery without warning.
- Pull the network cable, confirm the node reports an error instead of holding a stale value, then reconnect and confirm it resumes. Recovery matters more than the first successful read.
Decision: all four pass — the link is proven at the addresses and rates you tested; what remains is buffering in the flow for the dropouts step 4 simulates.
Why does the MC protocol node still time out? #
Most remaining timeouts trace to a mismatch the settings screen hides: TCP versus UDP, a port number that differs between the node and the CPU, settings never committed to the CPU, a firewall on the Node-RED host, or duplicate IP addresses on the subnet.
Work the list in order, because each item produces the identical timeout:
- Transport or port mismatch — the node's TCP/UDP choice and port must equal the CPU's connection setting.
- Parameters left in the project — until they are on the CPU and the CPU has restarted, the port still runs the old configuration.
- Frame mismatch — a binary request into a connection expecting ASCII, or the wrong 3E/4E family, returns a framing error rather than data.
- Device addressing — use the device naming the node documents and check word versus bit access before blaming the link.
- Firewall — the host firewall can block the assigned port in both directions.
- Duplicate IP — confirm nothing else on the subnet owns the address before judging the PLC.
- Poll rate — begin at a 1000 ms cycle and tighten only while the CPU's communication load stays flat.
- Unmapped error — capture the error code the node returns and look it up in the Mitsubishi Ethernet communication manual for your CPU before changing anything else.
Decision: ping passes and the EtherNet/IP node fails — replace the node, not the network; ping fails — fix the network first; MC protocol or Modbus TCP times out — this list, top to bottom, clears nearly every case.
Questions asked
Why do EtherNet/IP nodes work against Allen-Bradley PLCs but not the FX5U?
They were built and tested against Allen-Bradley controllers, where those services are the native language. Against a Mitsubishi CPU the same packets arrive at a port that implements MC protocol and Modbus TCP, so a connect attempt either times out or opens a session that no tag service can use. Protocol families do not interoperate just because both ride Ethernet.
Can Node-RED write values back to the FX5U, or only read them?
Yes, both working routes support writes. MC protocol writes device memory directly, and Modbus TCP uses the standard write function codes. Put the write path through the same four checks as the read path, beginning with an unused device and a device-monitor confirmation, before any live tag is touched.
Which frame type do I set between the MC protocol node and the FX5U?
Set the same frame on both ends. The MC protocol node families cover the 3E and 4E frame types in binary and ASCII, so the frame recorded in the CPU's connection setting decides what your flow sends; note it when you enable the connection, and keep the node's frame choice identical. The frame lives in the connection settings, not in the node's address field.
How do I reach FX5U data that sits behind a CC-Link IE network?
Poll the CPU that owns the CC-Link IE network instead. A MELSEC CPU exposes its own device memory over MC protocol or Modbus TCP from its built-in Ethernet port, so data collected from a CC-Link IE network is reachable there without a CC-Link IE driver, for which no Node.js implementation is known.

