Page 1
CJ Series EtherNet/IP Connection Guide OMRON Corporation Vision System (FH Series) P575-E1-02...
Page 2
About Intellectual Property Rights and Trademarks Microsoft product screen shots reprinted with permission from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the USA and other countries. ODVA and EtherNet/IP are trademarks of ODVA. Company names and product names in this document are the trademarks or registered trademarks of their respective companies.
To ensure system safety, make sure to always read and heed the information provided in all Safety Precautions and Precautions for Safe Use of manuals for each device which is used in the system. The table below lists the manuals of OMRON Corporation (hereinafter referred to as OMRON) related to this document. Manufacturer Cat.
The data unit consisting of two or more tags for the data exchange is called a tag set. Up to eight tags can be configured per tag set for OMRON programmable controllers. Tag data link In the EtherNet/IP, the tag and tag set can be exchanged cyclically between nodes without using the user program.
(4) It is prohibited to copy, to reproduce, and to distribute a part or the whole of this document without the permission of OMRON Corporation. (5) The information contained in this document is current as of March 2015.It is subject to change without notice for improvement.
4.Overview 4. Overview This document describes the procedure for connecting the Vision System (FH series) of OMRON Corporation with CJ-series Programmable Controller + Ethernet/IP Unit (hereinafter referred to as the PLC) via EtherNet/IP, and the procedure to check their connection.
This document describes the procedure to establish the network connection. It does not provide information on operation, installation or wiring method which is not related to the connection procedure. It also does not describe the functionality or operation of the devices. Refer to the manuals or contact your OMRON representative.
USB cable 24 VDC 24 VDC 24 VDC power power power supply supply supply Manufacturer Name Model Version OMRON CPU Unit CJ2M-CPU32 Ver.2.0 (Built-in EtherNet/IP port) (Ver.2.12) OMRON Power Supply Unit CJ1W-PA202 OMRON Switching hub W4S1-05C Ver.1.00 24 VDC power supply...
Page 10
5.Applicable Devices and Device Configuration Precautions for Correct Use Update the CX-Programmer and Network Configurator to the versions specified in this section or higher versions using the auto update function. If a version not specified in this section is used, the procedures described in Section 7. and subsequent sections may not be applicable.
6.EtherNet/IP Settings 6. EtherNet/IP Settings This section describes specifications of parameters and the tag data link allocation that are set in this document. 6.1. Parameters The parameter settings that are set in this document are as follows: 6.1.1. EtherNet/IP Communications Settings The parameters required for connecting the PLC and the FH Sensor Controller via EtherNet/IP are given below.
Page 12
6.EtherNet/IP Settings 6.1.2. Connection Settings The connection settings of the FH Sensor Controller are shown below. On the FH Sensor Controller, set the connection type to Point to Point for both input and output. Set the Timeout Value so that it is longer than the FH Sensor Controller’s measurement processing time.
6.EtherNet/IP Settings 6.2. Allocating the Tag Data Links The tag data links allocation of the FH Sensor Controller is as follows: Output area Input area D10000 (From PLC to D10100 (From FH Sensor FH Sensor Controller) Controller to PLC) D10009 20 bytes D10123 48 bytes...
Page 14
6.EtherNet/IP Settings ■Details on input area Address Meaning 15 14 13 12 11 10 9 Response area D10100 ERR - Control output (2 words) D10101 D10102 Command code CMD-CODE D10103 (2 words) D10104 Response code RES-CODE D10105 (2 words) D10106 Response data RES-DATA (2 words)
7.EtherNet/IP Connection Procedure 7. EtherNet/IP Connection Procedure This section describes the procedure for connecting the FH Sensor Controller to the PLC via EtherNet/IP. This document explains the procedures for setting up the PLC and the FH Sensor Controller based on the factory default setting. For the initialization, refer to Section 8. Initialization Method.
7.EtherNet/IP Connection Procedure 7.2. Setting up the FH Sensor Controller Set up the FH Sensor Controller. 7.2.1. Parameter Settings Set the parameters for the FH Sensor Controller. Check the positions of the Camera connectors on the FH Sensor connector Controller by referring to the Ethernet connector (PORT1) right figure.
Page 17
7.EtherNet/IP Connection Procedure The Language setting Dialog Box is displayed on the Monitor connected to the FH Sensor Controller only at the initial start. Select English from the pull-down list. Check that the English is selected in the Language Field and click the OK Button.
Page 18
7.EtherNet/IP Connection Procedure The Communication module select Field is displayed. Select EtherNet/IP from the Fieldbus pull-down list. Check that the EtherNet/IP is selected in the Fieldbus Field. Click the Apply Button. Click the Close Button to close the System Settings Window. * After the data set in the System Settings Window are saved and then the FH Sensor...
Page 19
7.EtherNet/IP Connection Procedure The Data save Dialog Box is displayed. Check the contents and click the OK Button. Select System restart from the Function Menu. The System restart Dialog Box is displayed. Check the contents and click the OK Button. After restarting, select System Settings from the Tool Menu.
Page 20
7.EtherNet/IP Connection Procedure Select System Settings - Communication - Ethernet(Normal(UDP)) from the tree. The dialog box on the right is displayed. Select the Use the following IP address Option for the Address setting 2 Field and enter the following values. ・IP address: 192.168.250.2 ・Subnet mask: 255.255.255.0 *Even if you use the FH Sensor...
Page 21
7.EtherNet/IP Connection Procedure Select System Settings - Communication - Ethernet/IP from the tree. The Setting Tab is displayed. Check the following values. ・Output control: Handshaking ・Timeout [s]: 10.0 Click the Close Button to close the System Settings Window. In the same way as steps 9 and 10, select Data save from the Function Menu.
7.EtherNet/IP Connection Procedure 7.3. Setting up the PLC Set up the PLC. 7.3.1. Hardware Settings Set the hardware switches on the Ethernet/IP Unit and wire the network. Precautions for Correct Use Make sure that the power supply is OFF when you perform the setting up. Make sure that the power supply to the PLC and the Switching hub is OFF.
Page 23
7.EtherNet/IP Connection Procedure Connect the LAN cable to the Switching hub EtherNet/IP port of the PLC, and Personal computer connect the USB cable to the LAN cable USB cable USB port. Connect the personal computer, Switching Hub, and Power Supply Unit CPU Unit PLC as shown in 5.2.
Page 24
7.EtherNet/IP Connection Procedure 7.3.2. Starting the CX-Programmer and Connecting Online with the PLC Start the CX-Programmer and connect online with the PLC. Install the CX-One and USB driver in the Personal computer beforehand. Start the CX-Programmer. *If a confirmation dialog for an access right is displayed at start, execute a selection to start.
Page 25
7.EtherNet/IP Connection Procedure The dialog box on the right is displayed. Check the contents and click the No Button. The dialog box on the right is displayed, and the CX-Programmer and the PLC are automatically connected. Confirm that the CX-Programmer and the PLC are normally connected online.
Page 26
7.EtherNet/IP Connection Procedure 7.3.3. Creating the I/O Table and setting the IP Addresses Create the I/O table and set the IP address of the PLC. If the operating mode of the PLC is Run Mode or Monitor Mode, change it to Program Mode by following the steps below.
Page 27
7.EtherNet/IP Connection Procedure Precautions for Correct Use The PLC will be reset after creating and transferring the I/O table in step 3 and subsequent steps. Always confirm safety before creating and transferring the I/O table. Select Create from the Options Menu of the PLC IO Table Window.
Page 28
7.EtherNet/IP Connection Procedure The Transfer from PLC Dialog Box is displayed. Select the I/O Table Check Box and the SIO Unit Parameters Check Box, and click the Transfer Button. When the transfer is completed, the Transfer Results Dialog Box is displayed.
Page 29
7.EtherNet/IP Connection Procedure The Edit Parameters Dialog Box is displayed. Select the TCP/IP Tab. Make the following settings in the IP Address Field. ・Use the following address: Select ・IP Address: 192.168.250.1 ・Sub-net Mask: 255.255.255.0 Click the Transfer[PC to Unit] Button. The dialog box on the right is displayed.
Page 30
7.EtherNet/IP Connection Procedure A confirmation dialog box is displayed. Check the contents and click the Yes Button. When the Unit is restarted, the dialog box on the right is displayed. Check the contents and click the OK Button. Click the Compare Button to confirm that the IP address is correctly changed.
7.EtherNet/IP Connection Procedure 7.4. Setting up the Network Set the tag data links for the EtherNet/IP. 7.4.1. Starting the Network Configurator and Connecting Online with the PLC Start the Network Configurator and connect online with the PLC. Right-click CJ2M-EIP21 on the PLC IO Table Window and select Start Special Application - Start with...
Page 32
7.EtherNet/IP Connection Procedure Precautions for Correct Use Confirm that the LAN cable is connected before taking the following procedure. When it is not connected, turn OFF the power supply to each device and then connect the LAN cable. Select Select Interface - CJ2 USB/Serial Port from the Option Menu.
Page 33
7.EtherNet/IP Connection Procedure The Select Connected Network Dialog Box is displayed. Check the contents and click the OK Button. When an online connection is established normally, the color of the icon on the figure changes to blue. Additional Information If an online connection cannot be made to the PLC, check the cable connection. Or, return to step 3, check the settings and repeat each step.
Page 34
7.EtherNet/IP Connection Procedure 7.4.2. Uploading the Network Configuration Upload the network configuration. Select Upload from the Network Menu to upload the device information on the network. The dialog box on the right is displayed. Confirm that there is no problem and click the Yes Button.
Page 35
IP address of node 1: 192.168.250.1 IP address of node 2: 192.168.250.2 *The FH Sensor Controller Icon is displayed as the FH Series device. Right-click the node 2 device and select Parameter - Edit. The Edit Device Parameters Dialog Box is displayed. Check that the following values are set, and click the OK Button.
Page 36
7.EtherNet/IP Connection Procedure 7.4.3. Setting the Tags Register the tags of the send area and receive area. This section explains the receive settings and send settings of the target device in order. On the Network Configuration Pane of the Network Configurator, right-click the node 1 device and select Parameter - Edit.
Page 37
7.EtherNet/IP Connection Procedure The Edit Tags Dialog Box is displayed. Select the In - Consume Tab and click the New Button. Here, register an area where node 1 receives data from node The Edit Tag Dialog Box is displayed. Enter the following values in the parameters.
Page 38
7.EtherNet/IP Connection Procedure Click the Out - Produce Tab, and then click the New Button. Here, register the data sent from node 1 to node 2. The Edit Tag Dialog Box is displayed. Enter the following values in the parameters. Name: D10000 (Start address of the output data from node Size: 20 (bytes)
Page 39
7.EtherNet/IP Connection Procedure When you finish the registration, click the OK Button on the Edit Tags Dialog Box. The dialog box on the right is displayed. Confirm that there is no problem and click the Yes Button. The Edit Device Parameters Dialog Box is displayed again.
Page 40
7.EtherNet/IP Connection Procedure 7.4.4. Setting the Connections Associate the tags of the target device (that receives the open request) with the tags of the originator device (that requests opening). Select 192.168.250.2 in the Unregister Device List Field. Click the Down Arrow Button that is shown in the dialog box.
Page 41
7.EtherNet/IP Connection Procedure The Edit Connection Dialog Box is displayed. Select Consume Data From/Produce Data To from the Connection I/O Type pull-down list. Set the values listed in the following table to the Originator Device Field and the Target Device Field. ■Settings of connection allocation Connection allocation Set value...
Page 42
7.EtherNet/IP Connection Procedure The Detail parameter Field is displayed. Set the following values. ・Packet Interval (RPI): 50.0 ms ・Timeout Value: Packet Interval (RPI) x 4 The same dialog box as step 4 is displayed again if you click the Hide Detail Button. Precautions for Correct Use Set RPI to 4ms or longer for the FH Sensor Controller.
Page 43
7.EtherNet/IP Connection Procedure The Edit Device Parameters Dialog Box is displayed again. Click the OK Button. When the connection setting is completed, the registered node address is displayed under the device icon of node 2 on the Network Configuration Pane.
Page 44
7.EtherNet/IP Connection Procedure 7.4.5. Transferring the Tag Data Link Parameters Transfer the set tag data link parameters to the PLC. Right-click the device icon of node 1 on the Network Configuration Pane and select Parameter - Download. The dialog box on the right is displayed.
7.EtherNet/IP Connection Procedure 7.5. Checking the EtherNet/IP Communications Confirm that the EtherNet/IP tag data links are operated normally. 7.5.1. Checking the Connection Status Check the connection status of EtherNet/IP. Confirm that the EtherNet/IP tag data links are operated normally by checking the LED indicators of the PLC (EtherNet/IP Unit).
Page 46
7.EtherNet/IP Connection Procedure The dialog box on the right displays the Status 1 Tab Page of the Monitor Device Dialog Box. When the same check boxes are selected as shown on the right, the tag data links are normally in operation.
Page 47
7.EtherNet/IP Connection Procedure 7.5.2. Checking the Sent and Received Data Confirm that the correct data are sent and received. If the PLC memory is changed by malfunction during monitoring power flow and present value status in the Ladder Section window or monitoring present values in the Watch window, the connected devices may malfunction, regardless of the operating mode of the CPU Unit.
Page 48
7.EtherNet/IP Connection Procedure Select Display - Binary from the View Menu. Select Monitor from the Online Menu. The Monitor Memory Areas Dialog Box is displayed. Confirm that the D Check Box is selected and click the Monitor Button. Enter 10000 in the Start Address Field in the D Window.
Page 49
7.EtherNet/IP Connection Procedure After completing the measurement, OK is displayed on the Monitor. Enter 10100 in the Start Address Field in the D Window. Confirm that the start address changes to D10100. Confirm that values of D10100 to D10105 are set as shown below. D10100:bit15(ERR): 0 D10103/D10102 (command code):0010/1010...
8.Initialization Method 8. Initialization Method This document provides the explanation of the setting procedure based on the factory default setting. Some settings may not be applicable as described in this document unless you use the devices with the factory default setting. 8.1.
8.Initialization Method (3) A confirmation dialog box on the right is displayed. Confirm that there is no problem and click the Yes Button. Next, the Restart Unit Dialog Box is displayed. Select the Return to out-of-box configuration, and then emulate cycling power Option, and click the OK Button. A dialog box indicating the execution is completed is displayed.
9.Revision History 9. Revision History Revision Date of revision Revision reason and revision page code October 31, 2013 First edition March 19, 2015 Screens changed due to the upgraded version of FH Sensor Controller. Connection settings for both input and output revised to Point to Point connection.
Need help?
Do you have a question about the FH Series and is the answer not in the manual?
Questions and answers