How to Configure Omron CJ2M PLC with CJ1W-ETN21 Card for Data Exchange

Question:

Hello everyone, I am seeking guidance on the configuration of the following setup: CJ2M PLC with the IP address 192.168.10.01 and subnet mask 255.255.255.0, along with ETN21 with the IP address 192.168.20.1 and subnet mask 255.255.255.0. The PLC is tasked with gathering tag data from the 192.168.10.XXX network and transmitting/receiving it to the 192.168.20.XXX network. How should I set up the send and receive instructions for this data exchange? Your assistance is greatly appreciated.

Top Replies

Inquiring about setup advice for PLC network configuration, Jothiswarup seeks assistance in setting up communication between a CJ2M PLC with IP address 192.168.10.01 (Subnet: 255.255.255.0) and an ETN21 device with IP address 192.168.20.1 (Subnet: 255.255.255.0). The PLC needs to transfer data between the 192.168.10.XXX and 192.168.20.XXX networks. How should the send and receive instructions be configured in this scenario? It is important to determine if they are on the same LAN or if gateways need to be configured. Additionally, consideration should be given to whether this involves Ethernet/IP routing similar to TCP/IP.

For better understanding, it's recommended that you consult the W420 manual, particularly the section on IP addressing and networking. Make sure to take advantage of the support provided.

Thank you for the response. I have successfully implemented the RECV function. However, I am facing a challenge with the unit number setting on my CJ2M PLC. The RECV function for both the CJ2M and the Omron FB for MODBUS TCP via ETN21 requires the unit number to be set to 0. If I were to set the unit number to 1 on the CJ2M, how can I ensure that the RECV function still works effectively?

This thread can be marked as closed as I have successfully implemented the instructions. Appreciate the assistance. Thank you.

Jothiswarup mentioned that the thread can be closed as they were able to successfully implement the instructions. Thank you for your assistance. I also encountered the same issue, could you provide some guidance on how to resolve it?

Hey there, the task you are attempting to achieve is simple through the use of communication instructions, like SEND and RECV that the CJ2M PLC supports. However, you have different networks for your PLC and the ETN21 which might result in a communication problem. Ensure that both devices are on the same IP network, or that there is a gateway/router configured properly to communicate between these two networks. In terms of SEND/RECV setup, you would typically use the PLC's ADR instruction to convert device addresses to completion flags which are then used in your send/receive commands. Just remember to choose appropriate word addresses not already in use and consider data size when allocating memory spaces. Always run tests to ensure everything works as it should. Hope this helps!

Given your configuration, consider utilizing the SEND (232) and RECV (233) commands in your PLC for data exchange. Ensure that the IP addresses and ports of the PLCs you are sending to and receiving data from are correctly specified. Since these functions use FINS commands (UDP), the ETN21 doesn't have to be in the same subnet as the destination, but both subnets should be routable through the same gateway for successful communication. You might also have to modify your firewall or security settings to allow these data transmissions. A good step-by-step guide explaining these instructions can be found in the Omron data communication manual. Have a look, and let us know if you encounter any issues.

Hey there! Configuring the data exchange between these networks should be quite straightforward. First off, you'll need to establish communication between your CJ2M PLC and the ETN21 module. To do this, you have to add the ETN21 as a unit into your CJ2M PLC Config settings. Once that’s done, you will use the built-in SEND and RECV instructions in the PLC to transmit and receive data. The specifics of these instructions will depend on the specific data and tags you're working with. Lastly, since you're operating on two separate subnets, make sure you've got a router configured correctly to allow traffic flow between them.

To facilitate communication between your CJ2M PLC and the ETN21 module across those different subnets, you'll first need to ensure a router or gateway is configured to handle traffic between the two networks. Once that’s in place, you can use the SEND and RECV instructions in your PLC program to manage the data transfer. For the SEND instruction, specify the appropriate destination IP (192.168.20.1) and ensure you set the correct port number and data size. For the RECV instruction on the ETN21 side, set the corresponding parameters to listen for incoming packets. Also, make sure to handle timeouts and error-checking to maintain reliable communication.

To enable communication between your CJ2M PLC and the ETN21, you'll need to set up a router or use a gateway that connects the two different subnets since they're on separate IP ranges. Configure the PLC to send data out to the ETN21’s IP address (192.168.20.1) using the appropriate SEND instruction, ensuring that the destination port matches what your ETN21 is listening on. For receiving data from the ETN21, set it to send to the PLC’s IP (192.168.10.1). Also, make sure to configure the subnet mask correctly, as it will affect how devices identify each other on the network. Just double-check that all firewall rules allow this traffic, and you should be good to go!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. How do I configure the Omron CJ2M PLC with CJ1W-ETN21 Card for data exchange between different IP networks? - To configure the data exchange between different IP networks using a CJ2M PLC and CJ1W-ETN21 Card, you need to set up the IP addresses and subnet masks correctly for both devices. Ensure the PLC is set to gather tag data from one network and transmit/receive it to the other network using appropriate send and receive instructions.

FAQ: 2. What IP address and subnet mask should be assigned to the CJ2M PLC and CJ1W-ETN21 Card in this setup?

Answer: - In the provided setup, the CJ2M PLC should be assigned the IP address 192.168.10.01 with subnet mask 255.255.255.0, while the ETN21 should have the IP address 192.168.20.1 with the same subnet mask.

FAQ: 3. How can I configure the send and receive instructions on the CJ2M PLC for data exchange between networks?

Answer: - To configure the send and receive instructions on the CJ2M PLC, you need to use the appropriate networking functions provided by Omron. Consult the PLC programming manual for details on setting up communication between different networks using the CJ1W-ETN21 Card.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’