> 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/omron-cp1l-el-modbus-tcp-configuration.md).

# Omron CP1L-EL Modbus TCP Configuration

## Instruction for configuration Omron CP1L-EM(EL) PLC as Modbus/TCP Server (Slave)

1\. Create a new project. Choose **Network Type** and click the **Settings** button to add the **IP address** of your device.&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPmpH3R9-3bUfhMta0w%2F-MPmqJtyelGB4L1dr5Zl%2Fcreate.jpg?alt=media\&token=683b7645-0dfe-4433-b0d7-906998c31de8)

2\. Download a function block for ModbusTCP connection for CP1L-EM from <https://www.myomron.com/index.php?action=kb&article=1245>

3\. Add this FB to the project by right click at the project tree on *Function Block -> Insert Function Block -> From File*.&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Findustrial-automation%2F-MPmnpdrW12r-vOfnxed%2F-MPmopi2w-rWbfsWaKSV%2F1.png?generation=1609317965097656\&alt=media)

4\. Drag-n-drop the **MTCP\_CP1L\_Server** to the program window. &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPmrgQjyNnr_768L8pM%2F-MPn-38xZ9xBdsMbmMur%2Fserv.jpg?alt=media\&token=4480744b-c7cd-4826-acee-acda102d7d50)

5\. Create several variables to fill in the connections of the function block (see the MB\_Server picture on the previous step).&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPn-7eYKE-B1YpZvocT%2F-MPn-dpW5sYSYPbfj4qG%2Fvariables.jpg?alt=media\&token=64026260-e515-41d6-9df0-5daf65b7a2b1)

6\. Drag these variables to the corresponding positions of the function block.&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPn0VOI20hT4BfSCKbI%2F-MPn1SBLdAUDRrbZAjq9%2Fdrag.jpg?alt=media\&token=f8dbc92f-1032-4447-8ee8-f4671c00e922)

7\. Go to Online mode and download the program to the PLC.&#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPn0VOI20hT4BfSCKbI%2F-MPn1zRvKqN7Uhpja5Y2%2Fonline.jpg?alt=media\&token=18a3498d-7ea3-45fe-a532-a314443e3c9b)

8.Right-click on variables **EN** and **StartServer** and **Set** to **TRUE** (**On**). &#x20;

![](https://2932290758-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPhYZyRjl1LMzh5UVLj%2F-MPn4MyYgMx-KhmdvyuD%2F-MPn4boo4e3mq1EIjYgy%2Fon.jpg?alt=media\&token=5f227e2f-1dd9-4a5f-9e1e-2f2a95acbed4)

9\. Check your connection.
