> For the complete documentation index, see [llms.txt](https://docs.aitheon.com/industrial-automation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aitheon.com/industrial-automation/type-of-device-plc/mitsubishi-electric-fx5u-plc-modbus-tcp-configuration.md).

# Mitsubishi Electric FX5U PLC Modbus TCP Configuration

## **Instruction for configuration Mitsubishi Electric FX5U PLC as Modbus/TCP Server (Slave)**

1\. Create a new project for FX5U.&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPh_7AST0pzwSYJstTc%2F-MPh_dq4cKrLwPpi8yAr%2Fimage.png?alt=media\&token=07c9feed-57b5-4063-abd1-54b300eda490)

2\. On the left side project tree open *Parameter -> FX5UCPU -> Module Parameter -> Ethernet Port*.&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPh_7AST0pzwSYJstTc%2F-MPh_h4q2VdFk7XEoXPq%2Fimage.png?alt=media\&token=591e41dc-3962-4de6-80da-bc62c3164c22)

3\. Add the **IP address** of FX5U and **Subnet mask**. (Note that the **IP address** of PLC needs to have the same number of the subnet as your PC or another device which are connected to PLC).&#x20;

Press **\<Detailed Setting>** on **External Device Configuration.**&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPhsRiQFKdNfuqZXAlZ%2F-MPhxKipiJjDyNEYKKGr%2Fdetailed.png?alt=media\&token=6495d250-f516-4ff3-8c91-ca0da80eeb50)

4\. Drag **Modbus/TCP Connection** to the blue line near the picture of PLC. And press **Close with Reflecting the Setting**. &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPhsRiQFKdNfuqZXAlZ%2F-MPhyumMW13abDz-EzUY%2Farrow.png?alt=media\&token=c4ad7901-1c52-458c-bcb4-597ed7c4770f)

The result will be:&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPh_7AST0pzwSYJstTc%2F-MPh_s9tcNZYAntQycdZ%2Fimage.png?alt=media\&token=c16f9e76-4d4a-46e3-aeb7-842e2f7d4dba)

5\. To see a relation between Modbus Device № and Device inside FX5U press - **\<Detailed Setting>** on **Modbus/TCP Setting** - **Device Assignment**. &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPhsRiQFKdNfuqZXAlZ%2F-MPi-5uhXgyLxTuHB23i%2Fdetailed.png?alt=media\&token=4d826614-7413-4cf3-98bb-87cd6a76f3ea)

The next window will get opened:

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPh_7AST0pzwSYJstTc%2F-MPh_utUqoC5S7xbrNw7%2Fimage.png?alt=media\&token=84b988c5-85ea-4d4e-9a02-465e4ecb89a6)

6\. Press **Check** and then **Ok** if **No error found**. &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPhsRiQFKdNfuqZXAlZ%2F-MPi-wFH6dBu6VTK6kXm%2Fcheck.png?alt=media\&token=92629409-8095-4339-a677-00ee3adf3714)

7\. Press **Apply** to save the settings. &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPhsRiQFKdNfuqZXAlZ%2F-MPi0GTEl6QMggYjAjPo%2Fapply.png?alt=media\&token=0eca037a-3273-4685-b2a0-b3dcaebc8cc2)

8\. Press **Rebuild All** on the tools palette. &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPhsRiQFKdNfuqZXAlZ%2F-MPi0oom1iZxR_Gy_5a6%2Frebuild.png?alt=media\&token=d262a798-b3ae-48b1-bb4e-09f47f35fed6)

9\. And download the program to PLC. Restart CPU. The connection will be established automatically:&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPh_7AST0pzwSYJstTc%2F-MPhbFlSJ5qdGYx3A7VC%2Fimage.png?alt=media\&token=66918cb7-cd1a-4d7c-ae9d-5be87fff29da)
