Troubleshooting
Making an FX5U a Modbus TCP server for a KTP700 panel
Short answer
A SIMATIC KTP700 BASIC can only open Modbus TCP requests, so the FX5U must answer them as the server; enabling Modbus TCP in GX Works3 and TIA Portal together opens nothing. Prove the Ethernet path, enable the FX5U's Modbus TCP slave service in its Ethernet module parameters, point the panel connection at the FX5U address on port 502, and bind one test tag to a known register before scaling up.
On this page
- Why will a KTP700 BASIC not talk to an FX5U over Modbus TCP?
- How do I prove the Ethernet path before blaming the Modbus settings?
- How do I make the FX5U a Modbus TCP server in GX Works3?
- How do I set up the KTP700 BASIC as the Modbus TCP client in TIA Portal?
- How do I bind one test tag to a known FX5U register?
- What does each Modbus result tell me about which end is misconfigured?
- When is the KTP700 to FX5U link finished and safe to build on?
- Questions asked
The SIMATIC KTP700 BASIC and the MELSEC iQ-F FX5U exchange data over Modbus TCP only when the panel works as the client and the FX5U answers as the server. Enabling Modbus TCP in GX Works3 and in TIA Portal does not create that request-and-response pair; it configures two ends and opens nothing. The working sequence is: prove the Ethernet path, enable the FX5U's Modbus TCP slave service in its Ethernet module parameters, point the panel's Modbus TCP connection at the FX5U address, and bind one test tag to a known register before any real data moves. The sections below follow that order, and each ends with the check that tells you whether to step forward or stay and fix what you just touched.
Why will a KTP700 BASIC not talk to an FX5U over Modbus TCP? #
Because enabling Modbus TCP in both projects does not set the roles: the SIMATIC panel always works as the Modbus TCP client, so the FX5U must answer as the server, and two enabled settings never form a request-and-response pair by themselves.
The client opens the TCP connection and issues the read and write requests; the server only listens and answers. A SIMATIC panel implements the client side, so the FX5U has to carry the listening side, which Mitsubishi provides as the Modbus TCP slave function on the FX5U's built-in Ethernet port. The classic failure in this pairing looks symmetric from the desk: the TIA Portal project holds a Modbus TCP connection with tags on it, while the GX Works3 project has the slave function switched off, so every panel attempt arrives at an address where nothing is listening. Decide the roles once and keep them fixed: panel = client, FX5U = server. If both projects show the client side enabled and neither end listens, no amount of address editing will make them meet.
How do I prove the Ethernet path before blaming the Modbus settings? #
Prove the path before the protocol: check link lights, read the real IP addresses out of both running devices, confirm they share one subnet, and ping the FX5U from your engineering station, because no Modbus parameter repairs a dark port or a duplicate address.
Work down this list and stop at the first check that fails:
- Confirm power and Ethernet link LEDs at the panel port, the FX5U port and every switch port between them.
- Read the IP address and subnet mask from each running device, not from the offline projects; the online values are the ones the connection will meet.
- On a direct cable or a flat switch, both addresses must sit in one subnet and be unique; across a router, the gateway and the return path must exist.
- From an engineering station on that network, ping each device. A device that answers no ping is not necessarily unreachable: rule out ping filtering with each device's own diagnostics, the GX Works3 connection test for the FX5U and the panel's transfer settings screen for the KTP700.
- If the FX5U shows RUN and ERROR LEDs together and even GX Works3 cannot reach it, clear that fault first; the guide to an FX5U with RUN and ERROR LEDs on that cannot connect via GX Works3 walks the recovery.
When both devices answer through the intended path, the network is exonerated and the Modbus configuration is the only suspect left.
How do I make the FX5U a Modbus TCP server in GX Works3? #
In the project tree open Parameter → FX5UCPU → Module Parameter → Ethernet, and in Basic settings open the detail setting page and enable the Modbus TCP slave (server) application on the built-in Ethernet port; the FX5U ships this slave function by default, so no added module is required.
Set or confirm the FX5U's IP address and subnet mask in the same Ethernet module parameters, because the panel will target exactly that address. Mitsubishi's MELSEC iQ-F FX5 user's manual (MODBUS), document JY997D56101, is the reference for this parameter set and for the address mapping the server applies, and its settings are made in GX Works3 rather than in code, which is why the server side of this link needs no program. The same ground rules, which role listens and which data the client may touch, are set out for any controller in what you must configure on the PLC side for Modbus TCP.
Write the parameters to the CPU with the line in an approved commissioning state, and restart only where Mitsubishi's procedure calls for one. If the CPU then refuses to return to RUN after the write, follow resolving an FX5U remote RUN failure after a GX Works3 write; that is a known recovery, not a reason to rework the parameters. Once the parameter set is active, the FX5U listens for Modbus TCP on its Ethernet port and the PLC side of this link is done.
How do I set up the KTP700 BASIC as the Modbus TCP client in TIA Portal? #
In the panel's connection settings under HMI devices, add one connection with the Modbus TCP driver, enter the FX5U's IP address as the remote end, and target the Modbus TCP service on port 502, the port the protocol registers for servers.
Every HMI tag that uses Modbus hangs off this one connection, so its three settings decide everything: the driver, the remote address and the service port. The mistakes are predictable. A driver picked for the PLC family instead of the Modbus channel opens a protocol the FX5U never answers; a remote address copied from the engineering station instead of the FX5U aims every request at your own laptop; and a panel project left offline produces no attempts at all, which the results table below separates from a genuine rejection. With driver, address and port set, download the panel project and start the runtime: the KTP700 BASIC now opens the connection as the client whenever a tag on it needs data, and nothing on the panel side needs reversing, because this role never changes.
How do I bind one test tag to a known FX5U register? #
Bind one tag first: choose a holding-register location the FX5U mapping exposes, write a value you chose into it from GX Works3, and keep the rest of the project parked until the panel displays that exact value.
Modbus addresses name protocol objects, meaning holding registers, input registers and coils, not the device addresses you see in GX Works3. The FX5U server configuration and the FX5 MODBUS manual between them define which PLC devices stand behind each Modbus object, so read the mapping from there instead of guessing an offset. Then run one tag through this sequence:
- Pick a location in the holding-register area that the program never writes; a spare data register is ideal.
- Note the protocol address the mapping assigns it. This is a zero-based offset.
- Convert it to whatever the tag field expects: a classic 1-based reference adds 40001; a zero-based field takes the offset as typed.
- Create one tag on the Modbus TCP connection, 16-bit unsigned, no scaling, no alarm.
- From GX Works3, place a recognizable value in the chosen device, for example 12345.
- Start the panel project and read that tag.
Worked example. Say the mapping lists your test location at protocol address 100. The 1-based entry is 40001 + 100 = 40101; the zero-based entry is 100. Type 40102 into the 1-based field and the panel asks for 40102 - 40001 = 101, so it reads the neighbouring register: a clean reply carrying the wrong value. Type 40101 into a field set zero-based and the request carries raw address 40100, far outside the mapped range, so the server refuses it with an exception. Same tag, two different faults, and the subtraction tells you which one you built.
When the panel shows 12345, you have proven the connection, the mapping and the addressing convention in one shot, and every remaining tag can copy this pattern.
What does each Modbus result tell me about which end is misconfigured? #
An exception reply proves the request reached the FX5U's Modbus service and was refused, so fix the request; a normal reply carrying a wrong value proves the transfer works end to end and points at mapping or interpretation instead.
Separate the transport layer from the Modbus layer before touching anything: a TCP connection that opens proves the panel found a listening service and says nothing about whether the register exists or the data type matches. Score your symptom against this table:
| What you observe | What it proves | Where to look next |
|---|---|---|
| No TCP attempt leaves the panel | The client side is idle or mis-aimed | Downloaded project, runtime state, driver, remote address |
| Attempts go out, nothing returns | The path or the listener is missing | Ethernet checks above, the server application enabled, the service port |
| The connection opens, then drops | The PLC side refused the client | Server parameters, access restrictions, connection limits in the FX5 MODBUS manual |
| An exception comes back | The request reached the server and was refused | Function code and address range against the FX5U mapping |
| A good reply carries the wrong value | The transfer works | Address convention, data type, word order in multi-register tags |
One exception deserves its own handling: if the panel driver issues a function the server does not implement, no address edit will help. Mask write is the usual case, and what to do when a Modbus TCP server lacks FC22 support shows the substitution with ordinary read and write functions.
When PLC diagnostics stay silent, capture the traffic on a switch mirror port; an ordinary port does not expose the panel-to-PLC conversation flowing through the switch.
When is the KTP700 to FX5U link finished and safe to build on? #
The link is finished when one chosen value moves in both directions without an exception and panel writes reach only registers the machine can spare; only then copy the proven pattern onto the real tags.
Close the loop in this order. Repeat the read test across small groups of real tags, re-checking one known value after each group, because a convention error repeats exactly. Then prove a write: send a value from a panel test tag into a scratch register and watch that device online in GX Works3. One safety note belongs here: a Modbus TCP client writes straight into PLC data with no interlock beyond what your project grants, so keep panel writes off outputs and mode words the machine acts on until those writes are proven and deliberately restricted; the guard conditions are laid out in safe Modbus writes to PLC output registers from SCADA.
If the panel is not on site yet, rehearse the exchange without hardware: simulating a Modbus TCP SCADA link on one PC pairs a client and a server in software so you can practise the addressing conventions before commissioning day.
The decision for this pairing stands as stated at the top: the KTP700 BASIC is the Modbus TCP client and the FX5U is the Modbus TCP server on its built-in port, enabled once in the GX Works3 Ethernet module parameters, with the tag list grown group by group against a known value.
Questions asked
What test value exposes a signed-versus-unsigned tag mistake?
Write -1 into the test register. A 16-bit register holds -1 as 65535, so a tag defined unsigned shows 65535 while a signed tag shows -1; both transfers are correct and the data type on the tag decides what you see. Proving this once on the test tag saves re-checking every analogue value later.
Does the FX5U need added hardware to run as the Modbus TCP server?
No. The FX5U's built-in Ethernet port provides the Modbus TCP slave, which is the server role, through GX Works3 parameters, so this side of the link is configuration only. The client role is the one that needs more than parameters on a Mitsubishi CPU, and this link never uses it, because the panel already implements the client.
Why does a read from the FX5U work but a write return an error?
Reads and writes travel as different Modbus function codes, so a server mapping can open an area for reads and refuse writes to it. Compare the write function the panel tag uses with the ranges the FX5U mapping opens for writing, and during commissioning point panel writes only at scratch locations the program ignores.
Can I prove the FX5U server before the panel is available?
Yes. Drive any Modbus TCP client test tool from a laptop against the FX5U's address and read the same protocol address the test tag uses. If the tool displays the value you placed in the register, the server side is proven, and any fault that remains sits in the panel project or its connection settings.
What goes in the unit identifier field if the driver shows one?
The unit identifier travels inside the Modbus TCP request and is separate from the IP address and the TCP port. Take the value for the FX5U's built-in Ethernet port from the MELSEC iQ-F FX5 user's manual (MODBUS) rather than reusing a serial slave station number, and keep it consistent between the panel connection and the server.