Omron V330-F Series Quick Start Manual

Omron V330-F Series Quick Start Manual

Corporation auto focus multi code reader
Hide thumbs Also See for V330-F Series:

Advertisement

Quick Links

Machine Automation Controller NJ-series
General Ethernet (TCP/IP) Connection Guide
OMRON Corporation
Auto Focus Multi Code Reader
V330-F / V430-F-series
Z412-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron V330-F Series

  • Page 1 Machine Automation Controller NJ-series General Ethernet (TCP/IP) Connection Guide OMRON Corporation Auto Focus Multi Code Reader V330-F / V430-F-series Z412-E1-01...
  • Page 2 Microsoft product screen shots used with permission from Microsoft. Windows is a registered trademark of Microsoft Corporation in the USA and other countries. 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 Support Tools ..........5 5.1. Applicable Products ................5 5.2. Device Configuration ................6 Ethernet Settings ..................9 6.1. Ethernet Communication Settings ............
  • Page 4: 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. The following OMRON Corporation (hereinafter referred to as “OMRON”) manuals are related to this document: Cat. No.
  • Page 5: Terms And Definitions

    2. Terms and Definitions 2. Terms and 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. Socket A socket is an interface that allows you to directly use TCP or UDP functions from a user program.
  • 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 March 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 Sysmac Studio 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. Note From among the above applicable devices, this document uses the devices listed in section 5.2 for the connection check.
  • Page 9: Device Configuration

    Windows 10) USB cable LAN cable LAN cable LAN cable PoE injector 24 VDC power supply Manufacturer Name Model Version OMRON NJ Series CPU Unit NJ301-1200 Ver. 1.19 (Built-in EtherNet/IP Port) OMRON Power Supply Unit NJ-PA3001 OMRON Switching hub W4S1-05C...
  • Page 10 I/O Cable USB cable V430-WE-3M V430-W8-3M LAN cable 24 VDC power supply 24 VDC power supply Manufacturer Name Model Version OMRON NJ Series CPU Unit NJ301-1200 Ver. 1.19 (Built-in EtherNet/IP Port) OMRON Power Supply Unit NJ-PA3001 OMRON Switching hub W4S1-05C...
  • Page 11 5. Applicable Products and Support Tools Precautions for Correct Use Obtain the latest version of the Sysmac Studio Project File from OMRON in advance. (Contact OMRON for information on how to obtain this file.) Note The configuration may not be reproduced if the system component models or versions differ.
  • 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 program in structured text (hereinafter, ST) language to execute “socket open”, “send and receive”, and “socket close” from the controller to the code reader. The controller sends a “read trigger”...
  • Page 14: Connection Procedure

    Execute the project file and check that correct data Checking the Receive Data is written to controller variables. Precautions for Correct Use Obtain the latest version of the Sysmac Studio Project File from OMRON in advance. (Contact OMRON for information on how to obtain this file.)
  • 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 Connect the PC to the switching LAN cable hub with a LAN cable. Connect 24 VDC power supply (for the switching hub) to the switching hub. 24 VDC power supply Set the IP Address of the PC. For the IP address, enter 192.168.188.100.
  • Page 17 7. Connection Procedure When the WebLink startup screen is displayed, go to step If you cannot access by WebLink, go to step 7. 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. •...
  • Page 18 7. Connection Procedure The Advanced Settings Screen appears. Select the Communications Tab and check the settings for Ethernet shown in the red frame. 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 code readers, change the IP Address...
  • Page 19 7. Connection Procedure 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: Controller Setup

    TCP)_V100. smc2 (Sysmac Studio Project File) and click Open. * Obtain the latest version of the Sysmac Studio Project File from the OMRON website. The OMRON_V330_V430_ETN (TCP)_V100 Project Window is displayed. The window consists of three panes: “Multiview Explorer” on the left side, “Edit Pane”...
  • Page 21 7. Connection Procedure 7.3.2. Checking Parameters and Executing builds Check the setting parameters. Then, perform program checks and builds on project data. Double-click Built-in EtherNet/IP Port Settings under Configurations and Setup – Controller Setup in the Multiview Explorer. The Built-in EtherNet/IP Port Settings Tab Page is displayed in the Edit Pane.
  • Page 22 7. Connection Procedure Select Check All Programs from the Project Menu. The Build Tab Page is displayed under the Edit Pane. Confirm that 0 is shown for both Errors and Warnings. Select Rebuild Controller from the Project Menu. A dialog box showing the progress of conversion appears.
  • Page 23 7. Connection Procedure 7.3.3. Going Online and Transferring the Project Data Place the Sysmac Studio online and transfer the project data to the controller. Select Communications Setup from the Controller Menu. The Communications Setup Dialog Box is displayed. In Connection type, select the Direct connection via USB Option.
  • Page 24 7. Connection Procedure When you are online, a yellow border appears in the upper part of the Edit Pane. Select Synchronize from the Controller Menu. The Synchronization Dialog Box is displayed. Confirm that the check box for the data to transfer (i.e., NJ301 on the figure on the right) is selected, and click Transfer to Controller.
  • Page 25 7. Connection Procedure Confirm that the synchronized data is now shown in the text color of Synchronized and the following message is displayed: The Synchronization process successfully finished. If there is no problem, click Close. * If synchronization fails, check the physical connections and redo the procedure.
  • Page 26: Checking The Connection Status

    7. Connection Procedure 7.4. Checking the Connection Status Execute the transferred project file 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 27 7. Connection Procedure Check that the controller is in a Monitor state by the Monitor and Stop Monitoring Buttons in the Sysmac Studio toolbar. Monitor The controller is in a Monitor state if the Monitor Button is Stop Monitoring selected (not selectable) and the Stop Monitoring Button is selectable, as shown in the figure on the right.
  • Page 28 7. Connection Procedure Click TRUE in the Modify column of Input_Start. The Online value of Input_Start changes to True. The program starts running and the controller performs Ethernet communications with the code reader. When the communications have ended normally, the values of the error codes are 0.
  • Page 29: Initializing The System

    8. Initializing the System 8. Initializing the System This document assumes that each device uses the factory default settings. If you change their settings from the defaults, you may not be able to perform various setting procedures as described. 8.1. Initializing the Controller To initialize the controller, initialize the CPU Unit.
  • Page 30: Project File

    9. Project File 9. Project File This section describes the details of the project file used in this document. 9.1. Overview This section describes the specifications and functions of the project file used for connecting a V330-F/V430-F Series Code Reader (hereinafter referred to as “code reader”) to a controller’s built-in EtherNet/IP port (hereinafter referred to as “built-in EtherNet/IP port”).
  • Page 31 9. Project File 9.1.1. Communications Data Flow This is the flow from issuing a TCP socket communications command from the built-in EtherNet/IP port to the code reader and receiving response data from the code reader. The project file executes a processing sequence of TCP open to TCP close in a continuous manner.
  • Page 32 9. Project File 9.1.2. TCP Socket Communications Using Socket Service Instructions This section provides an overview of function blocks for TCP socket services (hereinafter referred to as “socket service instructions”) and the general movement of send and receive messages. Note For details, refer to EtherNet/IP Communications Instructions in Section 2 Instruction Descriptions of the Machine Automation Controller NJ/NX-series Instructions Reference Manual (Cat.
  • Page 33 9. Project File ● Send and Receive Messages Send message Header Command data Footer Controller Code read Receive message (Response) Header Response data Footer Receive message (Error response) Header Response data (Error code) Footer ● Communications Sequence The figure below shows the processing flow of TCP communications between the code reader (server) and the controller (client).
  • Page 34: Code Reader Command

    9. Project File 9.2. Code Reader Command This section describes the code reader command in the project file. 9.2.1. Command Overview This project file uses the “< >” (Read trigger) command to trigger Ethernet communications with the code reader. The code reader sends the read data back to the controller. Command Description <...
  • Page 35 9. Project File 9.2.2. Command Settings This section describes in detail the settings of the “< >” (Read trigger) command. ● Send Data (Command) Settings Send data is set by the function block SendMessageSet_instance. Code Reader Specifications: • The data is stored in ASCII code. Variable Setting (Data format) Setting...
  • Page 36: Error Judgment Processing

    9. Project File 9.3. Error Judgment Processing This section describes error judgment processing in the project file. 9.3.1. Error Judgment in the Project File In this project file, error judgment processing is executed for the following three types of errors (1) to (3). Refer to 9.7.1. Error Code List for information on error codes. Controller Code reader Ethernet cable...
  • Page 37 9. Project File 9.3.2. Time Monitoring Function This section describes the time monitoring function in the project file. The monitoring time settings can be changed by using variables in the function block ParameterSet. ● Time Monitoring Using Internal Timers of the Project File Assuming that processing has the executing status and does not end due to an error, the project file uses its internal timers to interrupted the processing (i.e., timeout).
  • Page 38: Variables Used

    9. Project File 9.4. Variables Used This section describes variables used in the project file. 9.4.1. Lists of Variables Used Below are lists of variables required in order to execute this project file. ● Input Variable The following variable is used to manipulate the project file. Variable name Data type Description...
  • Page 39 9. Project File ● Internal Variables The following variables are used only for the purpose of calculation in the project file. Variable name Data type Description Local_Status sStatus Program execution status (STRUCT) Busy BOOL Changes to TRUE when the project file is executed and to FALSE when it is not executed.
  • Page 40 9. Project File Variable name Data type Description Local_ExecFlgs sControl Socket service instruction execution flag (STRUCT) Send BOOL Send Processing instruction: Executed (TRUE)/Not executed (FALSE) Recv BOOL Receive Processing instruction: Executed (TRUE)/Not executed (FALSE) Open BOOL Open Processing instruction: Executed (TRUE)/Not executed (FALSE) Close BOOL...
  • Page 41 9. Project File Variable name Data type Description Recv Receive processing: Required (TRUE)/Not required BOOL (FALSE) * If both send processing and receive processing are required: The program will wait for the arrival of receive data after send processing. The program will go to receive processing after checking the arrival of receive data.
  • Page 42 9. Project File 9.4.2. Lists of Variables Used in User-defined Function Blocks/Functions Below are lists of function blocks that must be user-defined in programs in order to execute this project file. For information on the following function block variables, refer to 9.5.3. Detailed Explanation of Function Blocks.
  • Page 43: Programs (St Language)

    9. Project File 9.5. Programs (ST Language) 9.5.1. Functional Components of the ST Language Program This project file is written in the ST language. The functional components of the project file are as follows. Category Subcategory Description 1. Communications 1.1. Communications Executes communications Processing Processing Start...
  • Page 44 9. Project File Category Subcategory Description 4. Send Processing 4.1. Send Processing Status Starts processing if the Send Judgment and Execution Processing Required Flag is set to Flag Setting Required and open processing has 4.2. Send Processing Time ended normally. Monitoring Timer Execution 4.3.
  • Page 45 9. Project File 9.5.2. Detailed Explanation of the Main Program A detailed explanation of the project file is given below. Communication settings that need to be changed depending on the code reader, send data (command) settings, and receive data (response data) are checked in function blocks (ETN_ParameterSet_instance, ETN_SendMessageSet_instance, and ETN_ReceiveCheck_instance).
  • Page 46 9. Project File 2. Initialization...
  • Page 47 9. Project File...
  • Page 48 9. Project File 3. Open Processing...
  • Page 49 9. Project File 4. Send Processing...
  • Page 50 9. Project File 5. Receive Processing...
  • Page 51 9. Project File...
  • Page 52 9. Project File 6. Close Processing...
  • Page 53 9. Project File 7. Processing No. Error Processing...
  • Page 54 9. Project File 9.5.3. Detailed Explanation of Function Blocks This project file uses the following function blocks. In the printout of function blocks given below, data that is variable depending on the code reader is shown in red frames. ● Details of the ETN_ParameterSet_instance Function Block (ParameterSet) Graphic Instruction Name...
  • Page 55 9. Project File • Program...
  • Page 56 9. Project File ● Details of the ETN_SendMessageSet_instance Function Block (SendMessageSet) Graphic Instruction Name FB/FUN ST expression expression Ethernet ETN_SendMessageSet_ SendMessageSet Communications None instance (Execute, Send_Data, Sequence Setting ComType); • In-out Variable Table • Input Variable Data Valid Initial Name Description Unit name...
  • Page 57 9. Project File • Program...
  • Page 58 9. Project File ● Details of the ETN_ReceiveCheck_instance Function Block (ReceiveCheck) Graphic Instruction Name FB/FUN ST expression expression Ethernet ETN_ReceiveCheck_instance Communications ReceiveCheck None (Execute, Recv_Data, Recv_Buff, Receive Error, ErrorID, ErrorIDEx); Processing • In-out Variable Table • Input Variable Data Initial Name Description Valid range...
  • Page 59 9. Project File • Program...
  • Page 60: Timing Chart

    9. Project File 9.6. Timing Chart The timing chart for the ST language program is shown below. Start and Setup Input_Start Local_Status. BoolData[0](Busy) Send data **** Control data **** Common **** parameters Receive data 0000 Output_sktCmds 0000 ErrorID Local_Status. BoolData[1](Done) or Local_Status.
  • Page 61 9. Project File ● Open Processing Input_Start Input_Start SktTCPConnect SktTCPConnect _instance.Execute _instance.Execute Topen_TON Topen_TON _instance.Q _instance.Q SktTCPConnect SktTCPConnect _instance.Busy _instance.Busy SktTCPConnect SktTCPConnect _instance.Busy _instance.Busy SktTCPConnect SktTCPConnect _instance.Done _instance.Done SktTCPConnect SktTCPConnect _instance.Error _instance.Error SktTCPConnect SktTCPConnect 0000 0000 _instance.ErrorID **** _instance.ErrorID Local_ErrCode.b[2] Local_ErrCode.b[2] Open processing Open processing...
  • Page 62 9. Project File ● Send Processing SktTCPConnect SktTCPConnect _instance.Done _instance.Done SktTCPSend SktTCPSend _instance.Execute _instance.Execute Tfs_TON Tfs_TON _instance.Q _instance.Q SktTCPSend SktTCPSend _instance.Busy _instance.Busy SktTCPSend SktTCPSend _instance.Done _instance.Done SktTCPSend SktTCPSend _instance.Error _instance.Error SktTCPSend SktTCPSend 0000 **** 0000 _instance.ErrorID _instance.ErrorID Local_ErrCode.b[8] Local_ErrCode.b[8] Timeout Timeout Output_sktCmds Output_sktCmds...
  • Page 63 9. Project File ● Receive Processing SktTCPSend _instance.Done SktTCPSend _instance.Done SktGetTCPStatus instance.DatRcvFlag SktGetTCPStatus SktTCPRcv instance.DatRcvFlag _instance.Execute SktTCPRcv Tr_TON_instance.Q _instance.Execute Receive Standby Time Tfr_TON_instance.Q SktTCPRcv Tr_TON_instance.Q _instance.Busy SktTCPRcv SktTCPRcv _instance.Busy _instance.Busy SktTCPRcv SktTCPRcv **** _instance.RcvDat _instance.Busy SktTCPRcv SktTCPRcv _instance.Done 0000 **** **** _instance.RcvDat SktTCPRcv...
  • Page 64 9. Project File SktTCPSend SktTCPSend _instance.Done _instance.Done SktGetTCPStatus SktGetTCPStatus _instance. _instance. SktTCPRcv SktTCPRcv _instance.Execute _instance.Execute Tfr_TON_instance.Q Tfr_TON _instance.Q SktTCPRcv SktTCPRcv _instance.Busy _instance.Busy SktTCPRcv SktTCPRcv _instance.Busy _instance.Busy SktTCPRcv SktTCPRcv 0000 0000 _instance.RcvDat _instance.RcvDat SktTCPRcv SktTCPRcv _instance.Done _instance.Done SktTCPRcv SktTCPRcv _instance.Error _instance.Error SktTCPRcv SktTCPRcv 0000...
  • Page 65 9. Project File ● Close Processing SktTCPRcv _instance.Done, etc. SktClose SktTCPRcv _instance.Execute _instance.Done, etc. Tclose_TON SktClose _instance.Q _instance.Execute SktClose _instance.Busy Tclose_TON SktClose _instance.Q _instance.Busy SktClose SktClose _instance.Busy _instance.Done SktClose SktClose _instance.Error _instance.Busy SktClose 0000 SktClose _instance.ErrorID _instance.Done SktGetTCPStatus _instance.Execute SktClose SktGetTCPStatus _instance.Error _instance.Busy...
  • Page 66: Error Processing

    9. Project File 9.7. Error Processing 9.7.1. Error Code List This section lists error codes that can occur during the execution of the ST language program. ● TCP Connection Status Error (Output_EtnTcpSta) If the TCP connection status does not return to the normal state (_CLOSED) within the specified time after close processing, the TCP connection status code is set in the variable Output_EtnTcpSta.
  • Page 67 9. Project File ● Error Codes (Output_SktCmdsErrorID, Output_SkTcloseErrorID) If an error occurs in open processing, send processing, or receive processing, the error code is set in the variable Output_SktCmdsErrorID before execution of close processing. If an error occurs in close processing, the error code is set in the variable Output_SkTcloseErrorID and the processing ends.
  • Page 68 9. Project File ● Error Flags (Error End, Timeout) (Output_ErrCode) If open, send, receive, or close processing ends with an error or times out, an error flag is set in the variable Output_ErrCode, and an error code is stored in the variable Output_SktCmdsErrorID or Output_SkTcloseErrorID.
  • Page 69 9. Project File 9.7.2. 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 project file again without taking any corrective action or without noticing the error, the following error may occur: The remote node specified by the input variable DstAdr (Destination Address) or DstTcpPort (Destination Port) is not waiting for a connect request.
  • Page 70: Revision History

    10. Revision History 10. Revision History Revision Code Revision Date Revised Page and Reason March 2023 First Publication...
  • Page 72 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.

Table of Contents