Omron V330-F Series Connection Manual

Omron V330-F Series Connection Manual

Auto focus multi code reader general ethernet (tcp/ip) connection guide
Hide thumbs Also See for V330-F Series:

Advertisement

Quick Links

Programmable Controller CJ-series
General Ethernet (TCP/IP) Connection Guide
OMRON Corporation
Auto Focus Multi Code Reader
V330-F / V430-F-series
Z431-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron V330-F Series

  • Page 1 Programmable Controller CJ-series General Ethernet (TCP/IP) Connection Guide OMRON Corporation Auto Focus Multi Code Reader V330-F / V430-F-series Z431-E1-01...
  • Page 2 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. Company names and product names in this document are the trademarks or registered...
  • Page 3: Table Of Contents

    Contents Related Manuals ..................4 Terms and Definitions ................5 Restrictions and Precautions ..............6 Overview ..................... 7 Applicable Products and Support Tools ..........8 5.1. Applicable Products ................8 5.2. Device Configuration ................9 Ethernet Settings ..................12 6.1. Ethernet Communication Settings ............
  • Page 4: Related Manuals

    1. Related Manuals 1. Related Manuals The following manuals are related to this document. 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.
  • 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 February 2023.
  • Page 7: Overview

    In this project file, the Ethernet connection is checked by sending a read trigger command to the code reader and receiving the read data from it. Obtain the latest version of the CX-Programmer Project File from OMRON in advance. Name...
  • Page 8: Applicable Products And Support Tools

    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

    (W4S1 -05C) USB cable LAN cable LAN cable PoE injector 24 VDC power supply LAN cable Manufact Name Model Version urer 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 Precautions for Correct Use Obtain the latest version of the above protocol macro data in advance. (Contact OMRON for information on how to obtain these files.) Precautions for Correct Use This document assumes that the USB is used to connect a CJ2 CPU Unit. For information on...
  • Page 11 5. Applicable Products and Support Tools Note Refer to the Industrial Switching Hub W4S1 Series User Manual (0969584-7) for power supply specifications that can be used for 24 VDC power supply (for the switching hub). Note Refer to the MicroHAWK V320-F/V330-F/V420-F/V430-F Series Barcode Reader User Manual (Cat.
  • Page 12: 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 13: 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 (V330/V430 Series).
  • Page 14: 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 15: 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 16 7. Connection Procedure Set the IP Address of the PC. For the IP address, enter 192.168.188.100. For the subnet mask, enter 255.255.0.0. For how to open the screen shown on the right in Windows 10, please refer to step 4. (1) From the Windows Start Menu, select Control Panel –...
  • Page 17 7. Connection Procedure If the WebLink startup screen does not appear, it means that communications are not established between the code reader and the PC. Please check the following. ・ The code reader and the PC have a proper physical (cable) connection. →...
  • Page 18 7. Connection Procedure The Advanced Settings Screen appears. Select the Communications Tab and check the settings shown in the red frame for Ethernet. To use the defaults, you do not need to change the settings. If you need to change the IP address, for example when connecting multiple...
  • Page 19 7. Connection Procedure Finally, check version number of the code reader. Click on the gear icon on the upper right of the screen and select About WebLink. About WebLink is displayed, so you can check the current version of the code reader. Please update the code reader to the latest version if necessary.
  • Page 20: 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 21 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. Please consult your OMRON representative and obtain the ladder program to use. Connect the PC and the PLC with a USB cable, and turn ON the power supply to the PLC.
  • Page 22 7. Connection Procedure After the loading of the ladder program is completed, select Programs project workspace. (Project Workspace) 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.
  • Page 23 7. Connection Procedure Device Type Settings Dialog Box is displayed. Select the CPU type (CPU11 in the figure on the right) from the CPU Type pull-down menu, and click...
  • Page 24 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 25 7. Connection Procedure Select Programs in the project workspace, and select Work Online from the PLC Menu. A dialog box as shown in the figure on the right appears. Click Yes. Confirm that Programmer is online with the PLC. * The CX-Programmer is online if icon appears to be depressed.
  • Page 26 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. CX-Programmer, select Operating Mode – Program from the PLC Menu.
  • Page 27 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 28 7. Connection Procedure successfully completed. Click OK. 7.3.4. Editing the Parameters Set the parameters for the Ethernet Unit. In the PLC IO Table Window, double-click [0000] Main Rack to open the tree. Right-click on 00 [1500] CJ1W- ETN21(ETN21Mode) and select Unit Setup from the menu.
  • Page 29 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 30 7. Connection Procedure A confirmation dialog box as shown in the figure on the right appears. Read the information and click Yes. After you restart the unit, another dialog box as shown in the figure on the right appears. Read the information and click OK.
  • Page 31 7. Connection Procedure 7.3.5. Transferring the Ladder Program Transfer the ladder program to the CPU Unit. In the CX-Programmer, select Programs 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 32 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 displayed) as shown on the right, and then click OK.
  • Page 33: 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 34 7. Connection Procedure A dialog box as shown in the figure on the right appears. Click Yes. Confirm that the operating mode indication changed 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 35 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 36 7. Connection Procedure The Monitor Memory Area 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 37: 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 38: Software Part

    However, we do not guarantee its operations where there are electrical noise or other disturbances, or variations in the performance of the devices themselves. Note Contact OMRON for information on how to obtain the software part.
  • Page 39 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 40 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 Constructions of Applications Operation Manual (Cat.
  • Page 41 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 42 9. Software Part Send and Receive Messages  Send message (Remote command) Terminator Remote command {, parameters (if any)} Code reader Receive message (Response) Terminator Remote command, parameters {, warning code (if any)} Receive message (Error response) Remote command, error code Terminator Communications Sequence ...
  • Page 43: Code Reader Command

    9. Software Part 9.2. Code Reader Command This section describes the code reader command of the software part. 9.2.1. Command Overview The software part uses a “read trigger” (< >) command to read the software version information from the code reader. Command Description <...
  • Page 44 9. Software Part 9.2.2. Detailed Description of Command This section describes in detail the read trigger (< >) command to read information from the code reader. Send Data (Command) Settings (D9000)  Code Reader Specifications: ・ The command must be entered in ASCII code. ・...
  • Page 45: Error Judgment Processing

    9. Software Part 9.3. Error Judgment Processing This section describes error judgment processing by the software part. 9.3.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.7. Error Code List for information on error codes. CJ2M-CPU12 with CJ1W-ETN21 Code reader...
  • Page 46 9. Software Part 9.3.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 47 9. Software Part Times of Processing First resend Last resend Last timeout resend After approx. After approx. Open request (TCP active) After approx. 75 s 41 s After approx. Send request Within 1 s After approx. 510 s 446 s Receive request Resending and time monitoring via TCP/IP not supported After approx.
  • Page 48 9. Software Part 9.3.3. TCP Connection Status Error 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 49: Memory Map

    9. Software Part ・ Resend processing is ended by the TCP/IP time monitoring (timeout) function. ・ The Ethernet Unit is restarted or turned OFF. 9.4. Memory Map This section describes the memory map of the software part. 9.4.1. List of Used Bits The tables below show bits, words, and timers that are required to execute the software part.
  • Page 50 9. Software Part Address Data Variable name Description type 5020 UINT Input_ReceiveProcessingRequired/NotRequired Sets whether or not receive processing is required, taking into account whether the code reader returns a response to the command sent from the PLC. * If receive processing is not required: Set &0.
  • Page 51 9. Software Part Address Data Variable name Description type H402 WORD Output_ReceiveErrorCode Stores the error code for s communications error or timeout error detected in receive processing. “#0000” is stored when the processing ends normally. H403 WORD Output_CodeReaderErrorC Stores the error code of a code reader error detected as a result of receive processing.
  • Page 52 9. Software Part Address Data Variable name Description type 5002.03 BOOL Internal_SendResponseCodeError Turns ON when an error is set in the response code in the Socket Service Parameter Area (allocated DM Area) as a result send processing. 5002.04 BOOL Internal_SendTimeout Turns when send...
  • Page 53 9. Software Part Address Data Variable name Description type 5005 UINT Internal_TCPConnectionStatus Extracts and sets the lower 4 bits of the TCP Connection Status in the allocated DM Area to determine the TCP connection status as a result of close processing. 5030 UINT Internal_SendDataAddressType...
  • Page 54 9. Software Part Timers  The following timers are used for the software part. Address Data Variable name Description type T1000 BOOL Internal_OpenMonitorTimerON Measures the monitoring time for open processing. T1001 BOOL Internal_SendMonitorTimerON Measures the monitoring time for send processing. T1002 BOOL Internal_ReceiveMonitorTimerON...
  • Page 55: Ladder Program

    9. Software Part 9.5. Ladder Program 9.5.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 command settings, parameter 1.2.
  • Page 56 9. Software Part 9.5.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.
  • Page 57 9. Software Part 1: Start and Setup ...
  • Page 58 9. Software Part Overview Description 1.1. Start Processing Turns ON the INPUT_START switch to start communications 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 59 9. Software Part...
  • Page 60 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 1.5. Receive Data Storage Area Clears the receive area.
  • Page 61 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 62 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. 2.3.
  • Page 63 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. 2.5. Error Code Storage Area Sets #0 in the error code storage area if the judgment in 2.4.
  • Page 64 9. Software Part 3. Send Processing ...
  • Page 65 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 66 9. Software Part 4. Receive Processing ...
  • Page 67 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. 4.2. Socket Service Parameter Sets parameters required for receive processing.
  • Page 68 9. Software Part Overview Description 4.5. Normal/Error Judgment Makes judgment “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 69 9. Software Part...
  • Page 70 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 71 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 72 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 73: Timing Chart

    9. Software Part 9.6. 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 74 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 75 9. Software Part Receive Processing  Send Normal End Send Normal End Send Normal End 5002.01 5002.01 5003.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 76 9. Software Part Close Processing  Receive Normal Receive Normal Receive Normal End, etc. End, etc. End, etc. 5003.01 5003.01 5003.01 Close Executing Close Executing Close Executing 5004.00 5004.00 5004.00 Close Monitor Timer Close Monitor Timer Close Monitor Timer T1003 T1003 T1003 Close Request Bit...
  • Page 77: Error Code List

    9. Software Part 9.7. 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 78 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 79: Revision History

    10. Revision History 10. Revision History Revision Revision Date Revised Reason and Page Code February 2023 First Publication...
  • Page 82 Hoffman Estates, IL 60169 U.S.A. Tel: (31) 2356-81-300 Fax: (31) 2356-81-388 Tel: (1) 847-843-7900 Fax: (1) 847-843-7787 ©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.

This manual is also suitable for:

V430-f series

Table of Contents