Omron V460-H Series Network Connection Manual

Industrial handheld dpm reader
Hide thumbs Also See for V460-H Series:

Advertisement

Quick Links

Programmable Controller CJ-series
General Ethernet (TCP/IP) Connection Guide
OMRON Corporation
Industrial Handheld DPM Reader
V460-H-series
Z479-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron V460-H Series

  • Page 1 Programmable Controller CJ-series General Ethernet (TCP/IP) Connection Guide OMRON Corporation Industrial Handheld DPM Reader V460-H-series Z479-E1-01...
  • Page 2 Windows is a registered trademark of Microsoft Corporation in the USA and other countries. ODVA, EtherNet/IP are trademarks of ODVA. Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products.
  • Page 3: Table Of Contents

    Contents Related Manuals ..................1 Terms and Definitions ................. 2 Restrictions and Precautions ..............3 Overview ...................... 4 Applicable Products and Device Configuration ........5 5.1. Applicable Products ................5 5.2. Device Configuration ................6 Ethernet Settings ..................8 6.1. Ethernet Communication Settings ............
  • Page 4: Related Manuals

    CJ1W-ETN21 Ethernet Units Operation Manual Construction of Applications W446 ― CX-Programmer Operation Manual W474 CJ2-CPU CJ Series Instructions Reference Manual Z461 V460-H Series V460-H Industrial Handheld DPM Reader User Manual Z462 V460-H Series V460-H Industrial Handheld DPM Reader Communication Manual...
  • Page 5: Terms And Definitions

    2. Terms and Definitions 2. Terms and Definitions Below is a list of terms used in this manual and their definitions. Term Description/Definition IP Address Ethernet uses IP addresses to achieve communications. Each IP address (specifically, Internet Protocol address) identifies a specific node (host computer, controller, etc.) on an Ethernet network, IP addresses must be set and managed so that they are not duplicated.
  • Page 6: Restrictions And 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 November 2023.
  • Page 7: Overview

    4. Overview This document describes the procedures for connecting the OMRON Industrial Handheld DPM Reader products (V460-H Series) to a CJ Series Programmable Controller (hereinafter referred to as the controller) via Ethernet and for checking their connections. You can establish an Ethernet communication connection by understanding the setting procedures and key points of setup through the Ethernet communications settings in the “CX-Programmer Project File”...
  • Page 8: Applicable Products And Device Configuration

    For details on the above products (other than communication connection procedures), please refer to the instruction manual for the product or contact OMRON. Precautions for Correct Use The connection and connection check procedures described in this document use the devices listed in section 5.2, from among the above applicable devices.
  • Page 9: Device Configuration

    CX-One Installed) (W4S1-05C) USB cable cable Ethernet cable V430-WE-3M PoE hub 24 VDC power supply LAN cable Manufacturer Name Model Version OMRON CPU Unit CJ2M-CPU11 Ver. 2.0 OMRON Ethernet Unit CJ1W-ETN21 Ver. 1.5 OMRON Power Supply Unit CJ1W-PA202 OMRON CX-One CXONE-ALC-V4...
  • Page 10 5. Applicable Products and Device Configuration Precautions for Correct Use Obtain the latest version of the above CX-Programmer Project File from OMRON in advance. (Contact OMRON for information on how to obtain this file.) Precautions for Correct Use This document assumes that the USB is used to connect the PLC. For information on how to install the USB driver, refer to the CX-Programmer Operation Manual (Cat.
  • Page 11: Ethernet Settings

    6. Ethernet Settings 6. Ethernet Settings This section shows the specifications of the communication parameter settings, variable names and other information provided in this document. Note This document and the project file only cover the operations that you can perform using the settings and commands described in this section.
  • Page 12: Example Of Connection Check For Communications

    6. Ethernet Settings 6.2. Example of Connection Check for Communications This document assumes that you use a ladder program (also referred to as the software part) to execute “socket open”, “send and receive”, and “socket close” from the PLC to the code reader (V460 Series).
  • Page 13: Connection Procedure

    7. Connection Procedure 7. Connection Procedure This section describes the procedures for connecting the controller to an Ethernet network. In this document, it is assumed that the controller and the code reader use the factory default settings. For how to initialize the devices, refer to Section 8. Initializing the System. 7.1.
  • Page 14: Code Reader Setup

    7. Connection Procedure 7.2. Code Reader Setup Set up the code reader. Precautions for Correct Use Use a PC (personal computer) to set the parameters for the code reader. Note that you may need to change the PC settings depending on the condition of your PC. 7.2.1.
  • Page 15 7. Connection Procedure Static connection (Setting the fixed IP address) (1) Click the Start Button at the lower left corner of the screen, and then click Settings. (2) Select Windows Settings – Network & Internet. (3) Under Change your network settings, click Change adapter options. (4) In Network Connections, right-click on the Ethernet icon and select Properties.
  • Page 16 7. Connection Procedure The WebLink screen appears. Click on the gear icon on the upper right of the screen and select Advanced. The Advanced Settings Screen appears. Select the Communications Tab and check the settings shown in the red frame for Ethernet.
  • Page 17 7. Connection Procedure Click on the icon shown in the red frame to save the settings to the code reader. Finally, check the version number of the code reader. Click on the gear icon on the upper right of the screen and select About WebLink.
  • Page 18: Plc Setup

    7. Connection Procedure 7.3. PLC Setup Set up the PLC. 7.3.1. Setting the Hardware Set the physical switches on the Ethernet Unit. Precautions for Correct Use Turn OFF the power supply before setting the hardware. Confirm that the power supply to the PLC is OFF.
  • Page 19 Start the programming tool “CX-Programmer”, load the ladder program, and go online with the PLC. Install the Tool Software and USB driver on the PC beforehand. Obtain the “ladder program” to use from the OMRON website. Connect the PC and the PLC with a USB cable, and turn ON the power supply to the PLC.
  • Page 20 7. Connection Procedure Select Change Model from the PLC Menu. The Change PLC Dialog Box is displayed. Select the PLC type (CJ2M in the figure on the right) from the Device Type pull-down menu, and click Settings. The Device Type Settings Dialog Box is displayed.
  • Page 21 7. Connection Procedure In the Change PLC Dialog Box, select the network type (USB in the figure on the right) from the Network Type pull-down menu, and click OK. * If you change the PLC type in step 7 or CPU type in step. 8, a confirmation dialog box as shown in the figure on the right will appear.
  • Page 22 7. Connection Procedure A dialog box as shown in the figure on the right appears. Click Yes. Confirm that the CX-Programmer is online with the PLC. * The CX-Programmer is online if the icon appears to be depressed. Note If you cannot go online with the PLC, check the physical cable connections, etc. If the physical cable connections are correct, return to step 6 and check the device type and other settings in steps 7 to 9.
  • Page 23 7. Connection Procedure 7.3.3. Creating the I/O Table Create the I/O table for the PLC. If the PLC Operating Mode is set to either Run or Monitor, follow steps (1) to (3) to change it to Program. (1) In the CX-Programmer, select Operating Mode –...
  • Page 24 7. Connection Procedure In the PLC IO Table Window, select Create from the Options Menu. A dialog box as shown in the figure on the right appears. Click Yes. A dialog box as shown in the figure on the right appears. Click Yes.
  • Page 25 7. Connection Procedure When the transfer is complete, the Transfer Results Dialog Box appears. Check the messages in this dialog box to confirm that the transfer process is successfully completed. The figure on the right shows Transfer Success: 1 Unit and Transfer Unsuccessful: 0 Unit, which means I/O table creation is successfully completed.
  • Page 26 7. Connection Procedure The Edit Parameters Dialog Box is displayed. Select the Setting Tab Page, and enter 192.168.188.1 in the IP Address field and 255.255.0.0 in the Sub-net Mask field. After entering the above values, click Transfer [PC to Unit]. A confirmation dialog box as shown in the figure on the right appears.
  • Page 27 7. Connection Procedure Click Compare to confirm that the IP address is correctly changed. Confirm that Compare successful is displayed and click Close. Click OK in the Edit Parameters Dialog Box.
  • Page 28 7. Connection Procedure 7.3.5. Transferring the Ladder Program Transfer the ladder program to the CPU Unit. In the CX-Programmer, select Programs in the project workspace, and select Transfer – To PLC from the PLC Menu. Select the check boxes for Program(s), Comments, and Program index, and click the OK Button.
  • Page 29 7. Connection Procedure If the PLC is not in PROGRAM Mode, a dialog box as shown in the figure on the right appears. Click Yes. Confirm that the download is successfully completed (Download successful is displayed) as shown on the right, and then click OK.
  • Page 30: Checking The Connection Status

    7. Connection Procedure 7.4. Checking the Connection Status Execute the transferred ladder program to check that Ethernet communications work correctly. Precautions for Correct Use Before performing the following steps, confirm that the LAN cable is connected securely. If it is not connected, first turn OFF the power supply to the device and then connect the LAN cable.
  • Page 31 7. Connection Procedure A dialog box as shown in the figure on the right appears. Click Yes. Confirm that the operating mode indication has changed to Monitor Mode. In the Ladder Window, right-click Input_Start in Block 0 and select Set – On from the menu. Confirm that the Input_Start contact is ON.
  • Page 32 7. Connection Procedure Select Edit – Memory from the PLC Menu. In the PLC Memory Window displayed, double-click D from the list in the left pane of the PLC Memory Window. PLC Memory Window In the D Window displayed, enter 10000 in the Start Address field.
  • Page 33 7. Connection Procedure The Monitor Memory Areas Dialog Box is displayed. Select the check box next to D and click Monitor. Check the received data in D Window shown in the figure on the right. * In word D10000, the number of bytes of receive data is stored.
  • Page 34: Initializing The System

    8. Initializing the System 8. Initializing the System In this document, it is assumed that the Ethernet Unit and the code reader use the factory default settings. If you change their settings from the defaults, you may not be able to perform various setting procedures as described.
  • Page 35: Software Part

    9.1. Overview This section describes the specifications and functions of the software part used for connecting a code reader (V460-H Series) to a PLC (Ethernet Unit). The software part refers to a ladder program for the PLC. The software part performs TCP socket communications by manipulating dedicated control...
  • Page 36 9. Software Part 9.1.1. Communications Data Flow This is the flow from issuing a TCP socket communications command from the PLC (Ethernet Unit) to the code reader and receiving response data from the code reader. The software part executes a processing sequence of TCP open to TCP close in a continuous manner. If response data is divided and arrives as multiple pieces of receive data, receive processing will be repeated.
  • Page 37 9. Software Part 9.1.2. TCP Socket Communications by Manipulating Dedicated Control Bits This section provides an overview of TCP socket communications by manipulating dedicated control bits and the general movement of send and receive messages. Note For details, refer to Section 6 Socket Services in the CS/CJ-series Ethernet Units Operation Manual Construction of Applications (Cat.
  • Page 38 9. Software Part (3) m+20 and m+21: Remote IP address • Specify the IP address of the remote node. The first and second octets of the remote IP address are stored in m+20. The third and fourth octets of the remote IP address are stored in m+21. (m+20) (m+21) Remote IP...
  • Page 39 9. Software Part  Send and Receive Messages Send message (Remote command) Remote command {, parameters (if any)} Terminator Code reader Receive message (Response) Remote command, parameters {, warning code (if any)} Terminator Receive message (Error response) Remote command, error code Terminator ...
  • Page 40: Error Judgment Processing

    9. Software Part 9.2. Error Judgment Processing This section describes error judgment processing by the software part. 9.2.1. Error Judgment by the Software Part This software part performs error judgment processing for the following four types of errors (1) to (4). Refer to 9.6. Error Code List for information on error codes. CJ2M-CPU12 with CJ1W-ETN21 Code reader...
  • Page 41 9. Software Part 9.2.2. Time Monitoring Function This section describes the time monitoring function of the software part.  Time Monitoring Using Internal Timers of the Software Part Assuming that processing has the executing status and does not end due to an error, the software part uses its internal timers to interrupted the processing (i.e., timeout).
  • Page 42 9. Software Part 9.2.3. TCP Connection Status Error Situation and Correction This section describes the situation and corrections if a TCP connection status error occurs.  Effect of a TCP Connection Status Error If, after the occurrence of a TCP connection status error, you execute the software part again without taking any corrective action or without noticing the error, a state of “code reader not passive open”...
  • Page 43: Memory Map

    9. Software Part 9.3. Memory Map This section describes the memory map of the software part. 9.3.1. List of Used Bits The tables below show bits, words, and timers that are required to execute the software part. You can change the following allocations to any addresses. Precautions for Correct Use When you change the address allocations, be careful not to cause address duplication.
  • Page 44 9. Software Part  Output Bits The following bits reflect the execution results of the software part. Address Data type Variable name Description D10000 Output_NumberOfReceiveD Stores the number of bytes of receive data. ataBytes D10001 WORD Output_ReceiveData[0] Stores receive data (response). (An area of 2000 [2000] words is secured.) D10002...
  • Page 45 9. Software Part Address Data type Variable name Description 5002.03 BOOL Internal_SendResponse Turns ON when an error is set in the response CodeError code in the Socket Service Parameter Area (allocated DM Area) as a result send processing. 5002.04 BOOL Internal_SendTimeout Turns ON when send processing times out.
  • Page 46 9. Software Part  Timers The following timers are used for the software part. Address Data type Variable name Description T1000 BOOL Internal_OpenMonitorTimer Measures the monitoring time for open processing. T1001 BOOL Internal_SendMonitorTimer Measures the monitoring time for send processing. T1002 BOOL Internal_ReceiveMonitor...
  • Page 47: Ladder Program

    9. Software Part 9.4. Ladder Program 9.4.1. Functional Components of Ladder Program The functional components of the software part are as follows. Category Subcategory Description 1. Start and Setup 1.1. Start Processing Starts communications processing and initializes 1.2. Send Data Setting command settings, parameter 1.3.
  • Page 48 9. Software Part 9.4.2. Detailed Description of Functional Components The software part is shown on the following pages. To change the communications settings or send data (command) of the code reader, modify the data enclosed in the red frames. 1. Start and Setup ...
  • Page 49 9. Software Part Overview Description Turns ON the INPUT_START switch to start communications 1.1. Start Processing processing. The communications processing ends after the end of close processing. 1.2. Send Data Setting Sets the number of bytes of send data and send data (command).
  • Page 50 9. Software Part...
  • Page 51 9. Software Part Overview Description 1.3. Control Data Setting Sets the monitoring time for each processing phase. Set whether or not receive processing is required. 1.4. Common Parameter Setting Sets the common parameters for TCP socket communications. Overview Description Receive Data Storage Area 1.5.
  • Page 52 9. Software Part Overview Description 1.7. Error Code Storage Area Initializes the error code storage area in the event of an error. Initialization 1.8. Initial Setup End Processing Turns ON the Initial Setup End Flag.
  • Page 53 9. Software Part 2. Open Processing  Overview Description 2.1. Open Processing Start Starts open processing. The open processing ends by moving to send or close processing. 2.2. Socket Service Parameter Sets parameters required for open processing. Area Setting • Clears the response code storage area. Starts the open processing monitor timer and turns ON the 2.3.
  • Page 54 9. Software Part Overview Description 2.4. Normal/Error Judgment Makes judgment of “normal/error end” or “timeout error” as a result of Processing open processing. The processing goes to send processing if normal end or to close processing if error end. Error Code Storage Area Sets #0 in the error code storage area if the judgment in 2.4.
  • Page 55 9. Software Part 3. Send Processing ...
  • Page 56 9. Software Part Overview Description 3.1. Send Processing Start Starts send processing. The send processing ends by moving to receive or close processing. 3.2. Socket Service Parameter Sets parameters required for send processing. Area Setting • Sets the number of bytes of send data. •...
  • Page 57 9. Software Part 4. Receive Processing ...
  • Page 58 9. Software Part Overview Description 4.1. Receive Processing Start Starts receive processing when “Receiving processing required” is set. Receiving process is skipped when “Receiving process not required” is set. The receive processing ends by moving to close processing. Socket Service Parameter 4.2.
  • Page 59 9. Software Part Overview Description 4.5. Normal/Error Judgment Makes judgment of “receive processing repetition”, Processing “normal/error end, timeout error”, or “code reader error” as a result of receive processing. The processing goes to close processing after the end of receive processing.
  • Page 60 9. Software Part...
  • Page 61 9. Software Part Overview Description 4.6. Receive Processing Performs the processing below if judgment in 4.5. Normal/Error Repetition Information Judgment Processing is “receive processing repetition”. Calculation • Adds the number of bytes of the receive data to the total number of bytes of receive data.
  • Page 62 9. Software Part Overview Description 5.4. Normal/Error Judgment Makes judgment of “normal/error end”, “timeout error”, or “close Processing status error” as a result of close processing. The communications processing ends after the end of close processing.
  • Page 63 9. Software Part Overview Description 5.5. Error Code Storage Area Sets #0 in the error code storage area if the judgment in 5.4. Setting Normal/Error Judgment Processing is “normal end”. Sets the following values in the error code storage area if judgment in 5.4.
  • Page 64: Timing Chart

    9. Software Part 9.5. Timing Chart The timing chart for the ladder program is shown below.  Start and Setup Input_Start 5000.00 Communications Processing Executing 5000.01 Send Data Area **** D9000 to D9128 Control Data **** 5010 to 5020 Common Parameter Area **** D30088 to D30092...
  • Page 65 9. Software Part  Send Processing Open Normal End Open Normal End Open Normal End 5001.01 5001.01 5001.01 Send Executing Send Executing Send Executing 5002.00 5002.00 5002.00 Send Monitor Timer Send Monitor Timer Send Monitor Timer T1001 T1001 T1001 Send Request Bit Send Request Bit Send Request Bit 1522.11...
  • Page 66 9. Software Part  Receive Processing Send Normal End Send Normal End Send Normal End 5003.01 5002.01 5002.01 Receive Executing Receive Executing Receive Executing 5003.00 5003.00 5003.00 Receive Request Receive Request Receive Request 5003.07 5003.07 5003.07 Receive Monitor Receive Monitor Receive Monitor Timer Timer...
  • Page 67 9. Software Part  Close Processing Receive Normal Receive Normal End, etc. End, etc. Receive Normal 5003.01 5003.01 End, etc. 5003.01 Close Executing Close Executing Close Executing 5004.00 5004.00 5004.00 Close Monitor Timer Close Monitor Timer T1003 T1003 Close Monitor Timer T1003 Close Request Bit Close Request Bit...
  • Page 68: Error Code List

    9. Software Part 9.6. Error Code List  Response Codes The response codes for open processing, send processing, receive processing, and close processing are set in H400, H401, H402, and H404, respectively. The table below shows the main response codes. (O: Open processing, S: Send processing, R: Receive processing, C: Close processing, ○: Applicable processing) Response Description...
  • Page 69 9. Software Part  Timeout Error/TCP Connection Status Error The timeout error codes for open processing, send processing, and receive processing are set in H400, H401, and H402, respectively. The timeout error code/TCP connection status error code for close processing is set in H404. (O: Open processing, S: Send processing, R: Receive processing, C: Close processing, ○: Applicable processing) Error code Description...
  • Page 70: Revision History

    10. Revision History 10. Revision History Revision Code Revision Date Revised Reason and Page November 2023 First Publication...
  • Page 72 Hoffman Estates, IL 60169 U.S.A. Tel: (1) 847-843-7900 Fax: (1) 847-843-7787 Tel: (31) 2356-81-300 Fax: (31) 2356-81-388 ©OMRON Corporation 2023 All Rights Reserved. OMRON ASIA PACIFIC PTE. LTD. OMRON (CHINA) CO., LTD. In the interest of product improvement, 438B Alexandra Road, #08-01/02 Alexandra Room 2211, Bank of China Tower, specifications are subject to change without notice.

Table of Contents