Omron CJ2H-CPU6*-EIP Series Connection Manual

Ethernet/ip cj series, zw-series displacement sensor
Hide thumbs Also See for CJ2H-CPU6*-EIP Series:

Advertisement

Quick Links

No. FST-ZTH120036A
No. FST-ZTH120036A
CJ Series
EtherNet/IP™ Connection Guide
OMRON Corporation
ZW-series Displacement Sensor
P536-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron CJ2H-CPU6*-EIP Series

  • Page 1 No. FST-ZTH120036A No. FST-ZTH120036A CJ Series EtherNet/IP™ Connection Guide OMRON Corporation ZW-series Displacement Sensor P536-E1-01...
  • Page 2 About Intellectual Property Right 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. Ethernet is a registered trademark of the Xerox Corporation. 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 Remarks......................3 Overview .....................5 Applicable Devices and Support Software ..........6 5.1. Applicable Devices ................6 5.2. Device Configuration ................7 EtherNet/IP Connection Procedure ............9 6.1. EtherNet/IP Communications Settings..........9 6.2. Work Flow..................12 6.3. Setting Up the Displacement Sensor ..........13 6.4.
  • Page 4: Related Manuals

    1. Related Manuals 1. Related Manuals The table below lists the manuals related to this document. To ensure system safety, make sure to always read and heed the information provided in all Safety Precautions, Precautions for Safe Use, and Precaution for Correct Use of manuals for each device which is used in the system.
  • Page 5: Terms And Definitions

    2. Terms and Definitions 2. Terms and Definitions Term Explanation and Definition Tag data link A function that enables cyclic tag data exchanges on an EtherNet/IP network between PLCs or between PLCs and with other devices without using a user program in the PLCs. A tag is a unit that is used to exchange data with tag data links.
  • Page 6: Remarks

    (4) It is prohibited to copy, to reproduce, and to distribute a part of or whole part of this document without the permission of OMRON Corporation. (5) This document provides the latest information as of April 2013. The information on this...
  • Page 7 3. Remarks The following notation is used in this document. Precautions for Safe Use Precautions on what to do and what not to do to ensure safe usage of the product. Precautions for Correct Use Precautions on what to do and what not to do to ensure proper operation and performance. Additional Information Additional information to read as required.
  • Page 8: Overview

    4. Overview This document describes the procedure to connect the Displacement Sensor (ZW series) of OMRON Corporation (hereinafter referred to as OMRON) with CJ-series Programmable Controller + Ethernet/IP Unit (hereinafter referred to as the PLC ), and the procedure to check their connection.
  • Page 9: Applicable Devices And Support Software

    This document describes the procedure to establish the network connection. Except for the connection procedure, it does not provide information on operation, installation or wiring method. It also does not describe the functionality or operation of the devices. Refer to the manuals or contact your OMRON representative.
  • Page 10: Device Configuration

    OS: Windows 7 ZW-CE10 Switching Hub (W4S1-05C) ZW-S40 Ethernet USB cable cable Calibration ROM Manufacturer Name Model Version OMRON CPU Unit CJ2M-CPU32 Ver.2.0 (Built-in EtherNet/IP port) (with built-in CJ2M-EIP21) (Ver.2.1) OMRON Power Supply Unit CJ1W-PA202 OMRON Switching Hub W4S1-05C Ver.1.0...
  • Page 11 5. Applicable Devices and Support Software Additional Information The system configuration in this document uses USB for the connection between the personal computer and PLC. When installing the USB driver, please refer to A-5 Installing the USB Driver in the CJ-series CJ2 CPU Unit Hardware User's Manual (Cat. No. W472).
  • Page 12: Ethernet/Ip Connection Procedure

    6. EtherNet/IP Connection Procedure 6. EtherNet/IP Connection Procedure This section explains the procedure for connecting the Displacement Sensor to the PLC via EtherNet/IP. 6.1. EtherNet/IP Communications Settings The settings shown in the table below are used to explain the procedure for connecting the PLC.
  • Page 13 6. EtherNet/IP Connection Procedure 6.1.2. Tag Data Link Allocation The tag data link allocation of the Displacement Sensor is as follows: Output area Input area D10000 (PLC → Displacement D10100 (Displacement Sensor → Sensor) PLC) D10011 24 bytes D10127 56 bytes •Output area (PLC →...
  • Page 14 6. EtherNet/IP Connection Procedure •Input area (Displacement Sensor → PLC) 15 14 13 12 11 10 Description BANK BANK BANK BANK BANK SYNC Control D10100 READY output D10101 (2 words) GATE STABLIT RESETS HOLDST D10102 ENABLE1 LIGHT1 Control TAT1 output PASS PASS PASS...
  • Page 15: Work Flow

    6. EtherNet/IP Connection Procedure 6.2. Work Flow Take the following steps to set the tag data link for EtherNet/IP. 6.3 Setting Up the Displacement Sensor Set up the Displacement Sensor. ↓ 6.3.1 Parameter Settings Set the parameters for the Displacement Sensor. ↓...
  • Page 16: Setting Up The Displacement Sensor

    6. EtherNet/IP Connection Procedure 6.3. Setting Up the Displacement Sensor Set up the Displacement Sensor. 6.3.1. Parameter Settings Set the parameters for the Displacement Sensor. Check the keys and display used to set parameters for the Main display (red) Displacement Sensor. Sub-display (green) RUN indicator (green) Connect the Controller to the...
  • Page 17 6. EtherNet/IP Connection Procedure The RUN mode screen is displayed. The RUN indicator is not lit as shown on the right. Press → (RIGHT) Key or ← (LEFT) Key to change the main display content from SENS to SYSTEM. Press the → (RIGHT) Key or ← (LEFT) Key.
  • Page 18 6. EtherNet/IP Connection Procedure RS232C is displayed on the main display. Press the → (RIGHT) Key and change the main display content Press the → (RIGHT) Key once. from RS232C to ETN. Press the ZERO/SET Key. Press the ZERO/SET Key once. IPADDR is displayed on the main display.
  • Page 19 6. EtherNet/IP Connection Procedure IP2 is displayed on the main display. Press the ZERO/SET Key. Confirm that 168 is displayed on the sub-display. *If the setting value is different, change the value by referring to Press the ZERO/SET Key once. step 11 and step 12.
  • Page 20 6. EtherNet/IP Connection Procedure IP4 is displayed on the main display. Press the ZERO/SET Key. Press the ZERO/SET Key once. The default value is displayed on the sub-display. Press the ZERO/SET Key. Press the ZERO/SET Key once. The sub-display content changes and you can change the values.
  • Page 21 6. EtherNet/IP Connection Procedure IPADDR is displayed on the main display. Press the → (RIGHT) Key once and change the main display Press the → (RIGHT) Key once. content to SUBNET. Press the ZERO/SET Key. Press the ZERO/SET Key once. The main display content is changed to SUB1.
  • Page 22 6. EtherNet/IP Connection Procedure ETN is displayed on the main display. Press the → (RIGHT) Key and change the main display content to DELIMI. Press the → (RIGHT) Key once. Press the → (RIGHT) Key and change the main display content Press the →...
  • Page 23 6. EtherNet/IP Connection Procedure A confirmation screen for mode switching is displayed. Press the ZERO/SET Key. Press the ZERO/SET Key once. The save confirmation screen is displayed. Press the ZERO/SET Key. Press the ZERO/SET Key once. The RUN mode screen is displayed.
  • Page 24: Setting Up The Plc

    6. EtherNet/IP Connection Procedure 6.4. Setting Up the PLC Set up the PLC. 6.4.1. Hardware Settings Set the hardware switches on the EtherNet/IP Unit. Precautions for Correct Use Make sure that the power supply is OFF when you perform the setting up. Make sure that the PLC power is OFF.
  • Page 25 6. EtherNet/IP Connection Procedure Connect the LAN cable to the Switching Hub EtherNet/IP port of the PLC, and connect the USB cable to the USB port. As shown in 5.2. LAN cable Device Configuration, connect USB cable the personal computer, Switching Hub and PLC.
  • Page 26 6. EtherNet/IP Connection Procedure 6.4.2. Starting the CX-Programmer and Connecting Online with 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. Select Auto Online - Direct Online from the PLC Menu.
  • Page 27 6. EtherNet/IP Connection Procedure The dialog box on the right is displayed. Click the No Button. The dialog box on the right is displayed and the CX-Programmer and the PLC is automatically connected. Confirm that the CX-Programmer and the PLC are connected online.
  • Page 28 6. EtherNet/IP Connection Procedure 6.4.3. Creating the I/O Table and Setting the IP Address Create the I/O table for the PLC and set the IP address. If the operating mode of the PLC is RUN Mode or Monitor Mode, change it to Program Mode by following steps (1) to (3).
  • Page 29 6. EtherNet/IP Connection Procedure Select Edit - I/O Table and Unit Setup from the PLC Menu of the CX-Programmer. The PLC IO Table Window is displayed. Select Create from the Options Menu of the PLC IO Table Window. The dialog box on the right is displayed.
  • Page 30 6. 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, Transfer Results Dialog Box is displayed.
  • Page 31 6. EtherNet/IP Connection Procedure The Edit Parameters Dialog 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 •Subnet mask: 255.255.255.0 Click the Transfer[PC to Unit] Button. The dialog box on the right is displayed.
  • Page 32 6. EtherNet/IP Connection Procedure The right dialog box is displayed. Click the Yes Button. When the unit is restarted, the dialog box on the right is displayed. Click the OK Button. To confirm that the IP address was correctly changed, click the Compare Button.
  • Page 33 6. EtherNet/IP Connection Procedure On the Edit Parameters Dialog Box, click the OK Button.
  • Page 34 6. EtherNet/IP Connection Procedure 6.4.4. Starting the Network Configurator and Uploading the Configuration Start the Network Configurator and upload the network configuration. Precautions for Correct Use Please confirm that the LAN cable is connected before performing the following procedures. When it is not connected, turn OFF the power supply to each device and then connect the LAN cable.
  • Page 35 6. EtherNet/IP Connection Procedure The Setup Interface Dialog Box is displayed. Confirm that the following settings are made. •Port Type: USB •Port: OMR0 •Baud Rate: 115200 Bit/s Click the OK Button. The Select Connect Network Port Dialog Box is displayed. Select Back Plane - CJ2M-EIP21 - TCP:2, and click the OK Button.
  • Page 36 6. EtherNet/IP Connection Procedure When an online connection is established normally, the color of the icon on the figure changes to blue. Select Upload from the Network Menu to read the device information on the network. The dialog box on the right is displayed.
  • Page 37 6. EtherNet/IP Connection Procedure After uploading is completed, confirm that the Network Configuration Pane shows the updated IP addresses of the devices. IP address of node 1: 192.168.250.1 IP address of node 2: 192.168.250.2...
  • Page 38 6. EtherNet/IP Connection Procedure 6.4.5. Setting Tags Register the tags of the receive area and send area. This section explains the receive settings and then send settings of the target node. On the Network Configuration Pane of the Network Configurator, right-click the node 1 device and select Parameter - Edit.
  • Page 39 6. 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 (node 2 → node 1) where node 1 consumes data. The Edit Tag Dialog Box is displayed.
  • Page 40 6. EtherNet/IP Connection Procedure The Edit Tag Dialog Box is displayed. Click the Close Button. Select the Out - Produce Tab and click the New Button. Here, register the send data of node 1. (Data sent from node 1 to node 2).
  • Page 41 6. EtherNet/IP Connection Procedure The Edit Tag Dialog Box is displayed. Enter the following values in the parameters. •Name: D10000 (Start address of the output data from node 1) •Size: 24 (bytes) After entering, click the Regist Button. The Edit Tag Dialog Box is displayed.
  • Page 42 6. EtherNet/IP Connection Procedure The dialog box on the right is displayed. Click the Yes Button. The Edit Device Parameters Dialog Box is displayed again.
  • Page 43 6. EtherNet/IP Connection Procedure 6.4.6. Setting Connections Associate the tags of target device (node that receives the open request) with the tags of originator (node that requests opening). Select the Connections Tab in the Edit Device Parameters Dialog Box. Then, select 192.168.250.2 in the Unregister Device List Field.
  • Page 44 6. EtherNet/IP Connection Procedure ■Settings of Connection Connection I/O type Consume Data From/Produce Data To Originator device Input Tag Set D10100 - [56Byte] Connection Type Multi-cast connection Output Tag Set D10000 - [24Byte] Connection Type Point to Point connection Target Device Output Tag Set Input_101- [56Byte] Input Tag Set...
  • Page 45 6. 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 46 6. EtherNet/IP Connection Procedure 6.4.7. Transferring the Tag Data Link Parameters Transfer the set tag data link parameters to the PLC. Right-click node 1 device on the Network Configuration Pane and select Parameter - Download. The dialog box on the right is displayed.
  • Page 47: Checking The Ethernet/Ip Communications

    6. EtherNet/IP Connection Procedure 6.5. Checking the EtherNet/IP Communications Confirm that the EtherNet/IP communications are performed normally. 6.5.1. Checking the Connection Status Check the connection status of EtherNet/IP. Confirm that the tag data links are normally in operation by checking the status information on the Device Monitor Window of the Network Configurator.
  • Page 48 6. EtherNet/IP Connection Procedure The dialog box on the right displays the Status 1 Tab Page of the Device Monitor Dialog Box. When the items in the right dialog are selected, the data links are normally in operation. Number: Node number Blue: Connection normal Select Disconnect from the Network Menu to go offline.
  • Page 49 6. EtherNet/IP Connection Procedure 6.5.2. Checking Data that are Sent and Received Confirm that correct data are sent and received. Confirm safety sufficiently before monitoring power flow and present value status in the Ladder Section window or before monitoring present values in the Watch window.
  • Page 50 6. EtherNet/IP Connection Procedure Double-click D from the list in the PLC Memory Window that is displayed. Select Display - Binary from the View Menu. Select Monitor from the Online Menu. The Monitor Memory Areas Dialog Box is displayed. Select the D Checkbox and click the Monitor Button.
  • Page 51 6. EtherNet/IP Connection Procedure Select the bits below and click the On Button. (After turning them ON, the values change to 1.) Bit 14 of DM10006 Bit 6 of DM10007 Bits 2, 7, 8, 9 of DM10008 Then, turn ON bit 0 of DM10000. *DM10006 and DM10007 are an area for a command code and contain 4000 (Hex) and 0040 (Hex)
  • Page 52: Initialization Method

    7. Initialization Method 7. Initialization Method This document explains the setting procedure from 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. 7.1. Initializing the PLC To initialize the settings of the PLC, you need to initialize the CPU Unit and EtherNet/IP Unit.
  • Page 53: Initializing The Displacement Sensor

    7. Initialization Method (3) An execution confirmation dialog is displayed. Click the Yes Button. On the Restart Unit Dialog Box, 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. Click the OK Button. 7.1.2.
  • Page 54: Revision History

    8. Revision History 8. Revision History Revision Date of revision Revision reason and revision page code April 26, 2013 First edition...
  • Page 56 2013 P536-E1-01 0911(-)

Table of Contents