Omron CJ2M-CPU Series Connection Manual

Omron CJ2M-CPU Series Connection Manual

Ethernet/ip cj series, omron corporation displacement sensor
Hide thumbs Also See for CJ2M-CPU Series:

Advertisement

CJ Series
TM
EtherNet/IP
Connection Guide
OMRON Corporation
Displacement Sensor
(ZW-7000 series)
P661-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron CJ2M-CPU Series

  • Page 1 CJ Series EtherNet/IP Connection Guide OMRON Corporation Displacement Sensor (ZW-7000 series) P661-E1-01...
  • 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.
  • Page 3: Table Of Contents

    Table of Contents Related Manuals ..................1 Terms and Definitions ................2 Precautions ....................3 Overview ....................4 Applicable Devices and Device Configuration ........5 5.1. Applicable Devices ................5 5.2. Device Configuration ................6 EtherNet/IP Settings .................. 8 6.1. Parameters ..................
  • Page 4: Related Manuals

    1.Related Manuals 1. Related Manuals To ensure system safety, make sure to always read and follow the information provided in all Safety Precautions and Precautions for Safe Use in the manuals for each device which is used in the system. Cat.
  • Page 5: Terms And Definitions

    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 the programmable controllers produced by OMRON Corporation. Tag data link In EtherNet/IP, the tag and tag set can be exchanged cyclically between nodes without using a user program.
  • Page 6: Precautions

    (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 July 2016. It is subject to change for improvement without notice.
  • Page 7: Overview

    This document describes the procedures for connecting Displacement Sensor (hereinafter referred to as Sensor Controller) to CJ-series Programmable Controller + EtherNet/IP Unit (hereinafter referred to as PLC) via EtherNet/IP, both produced by OMRON Corporation (hereinafter referred to as OMRON), and for checking their connections.
  • Page 8: Applicable Devices And Device Configuration

    5.Applicable Devices and Device Configuration 5. Applicable Devices and Device Configuration 5.1. Applicable Devices The applicable devices are as follows: Manufacturer Name Model OMRON CJ2 CPU Unit CJ2[]-CPU[][] OMRON EtherNet/IP Unit CJ1W-EIP21 CJ2H-CPU6[]-EIP CJ2M-CPU3[] OMRON Confocal Fiber Type Displacement Sensor...
  • Page 9: Device Configuration

    OS: Windows 7) LAN cable USB cable 24 VDC power supply 24 VDC power supply (for Sensor Controller) Calibration ROM Manufacturer Name Model Version OMRON CJ2 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...
  • Page 10 5.Applicable Devices and Device Configuration Additional Information For specifications of 24 VDC power supply available for Switching hub, refer to the Switching Hub W4S1-series Users Manual (Cat. No. 0969584-7). Additional Information For specifications of 24 VDC power supply available for Sensor Controller, refer to the Displacement Sensor ZW-7000 series Confocal Fiber Type Displacement Sensor User’s Manual (Cat.
  • Page 11: Ethernet/Ip Settings

    6.EtherNet/IP Settings 6. EtherNet/IP Settings This section describes the contents of parameter and tag data link settings that are all defined in this document. 6.1. Parameters The parameters required for connecting PLC to Sensor Controller via EtherNet/IP are shown below. Item PLC (Node 1) Sensor Controller (Node 50)
  • Page 12: Tag Data Link Settings

    6.EtherNet/IP Settings 6.2. Tag Data Link Settings The following shows the content of tag data link settings for Sensor Controller. Output area Input area D10000 D10100 (PLC to Sensor Controller) (Sensor Controller to PLC) 24 bytes 56 bytes D10011 D10127 ■Output area Address Function name...
  • Page 13 6.EtherNet/IP Settings ■Input area Address Function name Sensor head status signal 1 (lower 16 bits) Control command completion Reserved Ready Reserved Run screen D10100 5 to 10 Reserved Current bank number bit0 Current bank number bit1 Current bank number bit2 Current bank number bit3 Current bank number bit4 Sensor head status signal 1 (upper 16 bits)
  • Page 14 6.EtherNet/IP Settings Address Function name D10104 0 to 15 Extended area (lower 16 bits) D10105 0 to 15 Extended area (upper 16 bits) D10106 0 to 15 Command code echo (lower 16 bits) D10107 0 to 15 Command code echo (upper 16 bits) D10108 0 to 15 Response code (lower 16 bits)
  • Page 15: Ethernet/Ip Connection Procedure

    7.EtherNet/IP Connection Procedure 7. EtherNet/IP Connection Procedure This section describes the procedures for connecting PLC and Sensor Controller on the EtherNet/IP network. The explanations of procedures for setting up PLC and Sensor Controller given in this document are based on the factory default settings. For the initialization, refer to Section 8.
  • Page 16 7.EtherNet/IP Connection Procedure Associate the tags of the target device with the 7.4.4. Setting the Connections tags of the originator device. ↓ Transfer the set tag data link parameters to PLC. 7.4.5. Transferring the Tag Data Link Parameters ↓ Confirm that the EtherNet/IP tag data links operate 7.5.
  • Page 17: Sensor Controller Setup

    7.EtherNet/IP Connection Procedure 7.2. Sensor Controller Setup Set up Sensor Controller. 7.2.1. Hardware Settings Connect cables and others to Sensor Controller. Precautions for Correct Use Make sure that the power supply is OFF when you set up. Make sure that Sensor Controller is powered OFF.
  • Page 18 7.EtherNet/IP Connection Procedure Connect Switching hub and Ethernet connector on Sensor Controller with a LAN cable. Connect 24 VDC power supply LAN cable (for Switching hub) to Switching hub. 24 VDC power supply Connect 24 VDC power supply to 24 V input terminal block. *For details on specifications of 24 VDC power supply available for Sensor Controller, refer to...
  • Page 19 7.EtherNet/IP Connection Procedure 7.2.2. Parameter Settings Set the parameters for Sensor Controller. Check the positions of each key Main Display (White) and displays to use for parameter settings. Sub-display (Green) RUN Indicator (Green) ZERORST/ESC Key ↑(UP) Key →(RIGHT) Key ZERO/SET Key Mode Switching ↓(DOWN) Key ←(LEFT) Key...
  • Page 20 7.EtherNet/IP Connection Procedure The operation mode is switched to the FUNC mode, and SENS is displayed on Main Display. *The RUN Indicator goes out in the FUNC mode. THRESHOLD Keep pressing the →(RIGHT) or the ←(LEFT) Keys until SYSTEM is displayed. Press the ZERO/SET Key.
  • Page 21 7.EtherNet/IP Connection Procedure IPADDR is displayed on Main Display. Press the ZERO/SET Key. IP1 is displayed on Main Display. Press the ZERO/SET Key. Check that 192 is displayed on Sub-display. *The set value here is the first octet "192" of the IP address 192.168.250.50.
  • Page 22 7.EtherNet/IP Connection Procedure IP2 is displayed on Main Display. Press the ZERO/SET Key. Check that 168 is displayed on Sub-display. *The set value here is the second octet "168" of the IP address 192.168.250.50. *If the value is different, change the value in the same way as step 9.
  • Page 23 7.EtherNet/IP Connection Procedure IP4 is displayed on Main Display. Press the ZERO/SET Key. Check that 50 is displayed on Sub-display. *The set value here is the fourth octet "50" of the IP address 192.168.250.50. *If the value is different, change the value in the same way as step 9.
  • Page 24 7.EtherNet/IP Connection Procedure SUB1 is displayed on Main Display. Press the ZERO/SET Key. Check that 255 is displayed on Sub-display. *The set value here is the first octet "255" of the subnet mask 255.255.255.0. *If the value is different, change the value in the same way as step 9.
  • Page 25 7.EtherNet/IP Connection Procedure SUB3 is displayed on Main Display. Press the ZERO/SET Key. Check that 255 is displayed on Sub-display. *The set value here is the third octet "255" of the subnet mask 255.255.255.0. *If the value is different, change the value in the same way as step 9.
  • Page 26 7.EtherNet/IP Connection Procedure ETN is displayed on Main Display. Change the menu to MEMLNK by pressing the →(RIGHT) Key twice. Press the ZERO/SET Key. E-CAT is displayed on Sub-display. e-cat Press the ↑(UP) Key to change the menu to EIP in blinking.
  • Page 27 7.EtherNet/IP Connection Procedure OK/CAN is displayed. Press the ZERO/SET Key. 0kzcan SAVE is displayed on Main Display. Press the ZERO/SET Key. 0kzcan The operation mode is switched to the RUN mode. *5000 THRESHOLD Power cycle Sensor Controller. *The saved setting data become valid after power cycling.
  • Page 28: Plc Setup

    7.EtherNet/IP Connection Procedure 7.3. PLC Setup Set up PLC. 7.3.1. Hardware Settings Set the hardware switches on EtherNet/IP Unit and wire the network. Precautions for Correct Use Make sure that the power supply is OFF when you set up. Make sure that PLC and Switching hub are powered OFF.
  • Page 29 7.EtherNet/IP Connection Procedure Connect a LAN cable to the Switching hub EtherNet/IP port on PLC, and Personal computer connect a USB cable to the USB USB cable LAN cable port. As shown in 5.2. Device Configuration, connect Personal Power Supply Unit CPU Unit computer and Switching Hub to 24 VDC power supply...
  • Page 30 7.EtherNet/IP Connection Procedure 7.3.2. Starting CX-Programmer and Connecting Online with PLC Start CX-Programmer and connect online with PLC. Install CX-One and the USB driver on Personal computer beforehand. Start CX-Programmer. *If the User Account Control Dialog Box is displayed at start, make a selection to start CX-Programmer.
  • Page 31 7.EtherNet/IP Connection Procedure The dialog box on the right is displayed. Check the contents and click No. The dialog box on the right is displayed. CX-Programmer and PLC are automatically connected. Check that CX-Programmer and PLC are normally connected online. *The icon is pressed down during online connection.
  • Page 32 7.EtherNet/IP Connection Procedure 7.3.3. Creating the I/O Table and Setting the IP Address Create the I/O table and set the IP address of PLC. If the operating mode of PLC is Run Mode or Monitor Mode, change it to Program Mode by following the steps below.
  • Page 33 7.EtherNet/IP Connection Procedure Precautions for Correct Use The PLC is 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 in the PLC IO Table Window.
  • Page 34 7.EtherNet/IP Connection Procedure The Transfer from PLC Dialog Box is displayed. Select IO Table and SIO Unit Parameters. Click Transfer. When the transfer is completed, the Transfer Results Dialog Box is displayed. Check that the transfer is successfully completed by referring to the message in the dialog box.
  • Page 35 7.EtherNet/IP Connection Procedure In the PLC IO Table Window, click + to the left of Built-in Port/Inner Board to display CJ2M-EIP21. *The figure on the right displays CPU Unit (Built-in EtherNet/IP port) specified in 5.2. Device Configuration. If you use an other applicable EtherNet/IP Unit, the display position and name are different from the...
  • Page 36 7.EtherNet/IP Connection Procedure The dialog box on the right is displayed. Confirm that there is no problem, and click Yes. Check that a message is displayed stating "Transfer successful". Click Close. The dialog box on the right is displayed. Check the contents and click Yes.
  • Page 37 7.EtherNet/IP Connection Procedure Click Compare to check that the IP address is correctly changed. Check that a message is displayed stating "Compare successful". Click Close. Click OK in the Edit Parameters Dialog Box.
  • Page 38: Network Settings

    7.EtherNet/IP Connection Procedure 7.4. Network Settings Set the EtherNet/IP tag data links. 7.4.1. Starting Network Configurator and Connecting Online with PLC Start Network Configurator and connect online with PLC. Right-click CJ2M-EIP21 in the PLC IO Table Window, and select Start Special Application - Start with Settings Inherited.
  • Page 39 7.EtherNet/IP Connection Procedure Precautions for Correct Use Check that the LAN cables are connected before performing the following steps. If they are not connected, turn OFF each of the devices, and then connect the LAN cables. Select Select Interface - CJ2 USB/Serial Port from the Option Menu.
  • Page 40 7.EtherNet/IP Connection Procedure The Select Connected Network Dialog Box is displayed. Check the contents and click When an online connection is established normally, the color of the icon changes to blue as shown on the right. Additional Information If PLC cannot be connected online, check the cable connection. Or, return to step 3, check the settings and repeat each step.
  • Page 41 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 Yes. The Target Device Dialog Box is displayed.
  • Page 42 7.EtherNet/IP Connection Procedure After uploading, check that the IP addresses of uploaded nodes are updated in the Network Configuration Pane as follows: IP Address of node 1: 192.168.250.1 IP address of node 50: 192.168.250.50...
  • Page 43 7.EtherNet/IP Connection Procedure 7.4.3. Setting the Tags Register tags for input (consume) and output (produce). The following explains the receive and send settings of the target device in order. In the Network Configuration Pane of Network Configurator, right-click the node 1 device and select Parameter - Edit.
  • Page 44 7.EtherNet/IP Connection Procedure The Edit Tags Dialog Box is displayed. Select the In - Consume Tab and click New. Here, register a tag for the area where the node 1 consumes data from the node 50. The Edit Tag Dialog Box is displayed.
  • Page 45 7.EtherNet/IP Connection Procedure Select the Out - Produce Tab and click New. Here, register a tag for the area where the node 1 produces data to the node 50. The Edit Tag Dialog Box is displayed. Enter the following values of the parameters. Name: D10000 (Start address of the output data from node Size: 24 (Byte)
  • Page 46 7.EtherNet/IP Connection Procedure When you finish the registration, click OK in the Edit Tags Dialog Box. The dialog box on the right is displayed. Confirm that there is no problem, and click Yes.
  • Page 47 7.EtherNet/IP Connection Procedure The Edit Device Parameters Dialog Box is displayed again. Select the Connections Tab.
  • Page 48 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 for opening). Select 192.168.250.50 in the Unregister Device List Field. Click the Down Arrow Button that is shown in the dialog box.
  • Page 49 7.EtherNet/IP Connection Procedure Check that the settings are correct. Click Regist. The Edit Connection Dialog Box is displayed again. Click Close. The Edit Device Parameters Dialog Box is displayed again. Click OK. When the connection is completed, the registered node address is displayed under the device icon of node 50 in the Network Configuration Pane.
  • Page 50 7.EtherNet/IP Connection Procedure 7.4.5. Transferring the Tag Data Link Parameters Transfer the set tag data link parameters to PLC. Right-click the device icon of node 1 in the Network Configuration Pane and select Parameter - Download. The dialog box on the right is displayed.
  • Page 51: Ethernet/Ip Communication Status Check

    7.EtherNet/IP Connection Procedure 7.5. EtherNet/IP Communication Status Check Confirm that the EtherNet/IP tag data links operate normally. 7.5.1. Checking the Connection Status Check the connection status of the EtherNet/IP network. Check with LED indicators on PLC (EtherNet/IP Unit) that the EtherNet/IP tag data links operate normally.
  • Page 52 7.EtherNet/IP Connection Procedure The dialog box on the right displays the Status 1 Tab Page in 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 53 7.EtherNet/IP Connection Procedure 7.5.2. Checking the Sent and Received Data Check 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 in the Watch Window, the devices connected to output units may malfunction, regardless of the operating mode of CPU Unit.
  • Page 54 7.EtherNet/IP Connection Procedure Select Display - Hexadecimal from the View Menu. Select Monitor from the Online Menu. The Monitor Memory Areas Dialog Box is displayed. Check that D is selected. Click Monitor. Enter 10000 in the Start Address Field of the D Window. Check that the start address changes to D10000.
  • Page 55 7.EtherNet/IP Connection Procedure Click SetValue. The Set Value Dialog Box is displayed. Enter 4000 in the Value Field. Click OK. The value of D10006 changes to 4000. In the same way as step 10, change the value of D10007 to 0040. *The command code 4000 0040 (system data acquisition) is set.
  • Page 56 7.EtherNet/IP Connection Procedure Select Display - Binary from the View Menu. Enter 10000 in the Start Address Field of the D Window. Check that the start address changes to D10000. Select the bit 0 value of D10000 in the D Window. Click On.
  • Page 57 7.EtherNet/IP Connection Procedure Check that the values of D10108 and D10109 are both 0. *D10108, D10109: Response code (Command execution result (0: OK, -1(FFFF FFFF): NG) is reflected.) Check that the value of D10110 is 1. *D10110: Response data (lower 16 bits) (The number of digits displayed past decimal point is 1 (default).) Additional Information...
  • Page 58: Initialization Method

    8.Initialization method 8. Initialization method The setting procedures in this document are based on the factory default settings. Some settings may not be applicable unless you use the devices with the factory default settings. 8.1. Initializing PLC To initialize the PLC settings, it is necessary to initialize EtherNet/IP Unit and CPU Unit. Change the operating mode of PLC to PROGRAM mode before the initialization.
  • Page 59: Initializing Sensor Controller

    8.Initialization method (4)The Restart Unit Dialog Box is displayed. Select Return to out-of-box configuration, and then emulate cycling power, and click OK. (5)A dialog box is displayed indicating that the execution is completed. Check the contents and click OK. 8.1.2. CPU Unit To initialize the CPU Unit settings, select Clear All Memory Areas from the PLC Menu in CX-Programmer.
  • Page 60: Revision History

    9.Revision History 9. Revision History Revision Date of revision Description of revision code July 7, 2016 First edition...
  • Page 62 2016 P661-E1-01 0716-(-)

Table of Contents