background image

7. EtherNet/IP Connection Procedure 

 

 

32 

Create a data type to check the 
Status Signal details of the Input 
Assembly. 
In 

Name

 and 

Base Type

, enter 

the name and data type of each 
signal as shown in the figure on 
the right. 
Assign also the byte offset and 
bit offset values in 

Offset Byte

 

and 

Offset Bit

 as shown in the 

figure. 
Device_status: 
For a detailed explanation of the 
data shown in the figure on the 
right, refer to 

Appendices A-2 

EtherNet/IP Specifications

 in the 

Autofocus Multicode Reader 
MicroHAWK V320-F/V330-
F/V420-F/V430-F Series User 
Manual for Communication 
Settings

 (Cat. No. Z407). 

 
 

 

Right-click in the tab page and 
select 

Create New Data Type

 
 
 
In the 

Name

 field, enter 

S_EIPInput103

 

 

 

 

 

After confirming the entry, right-
click in the field and select 

Create New Member

 from the 

menu. 

 

 

Summary of Contents for MicroHAWK V320-F

Page 1: ...Machine Automation Controller NX series EtherNet IPTM Connection Guide OMRON Corporation Auto Focus Multi Code Reader V330 F V430 F series Z420 E1 01 ...

Page 2: ...poration in the USA and other countries ODVA EtherNet IPTM 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 trademarks of their respective companies ...

Page 3: ...o Use for Tag Data Links 12 6 3 Global Variables 14 6 4 Tag Set 17 6 5 Tag Data Link Table 17 7 EtherNet IP Connection Procedure 18 7 1 Operation Flow 18 7 2 Code Reader Setup 19 7 3 Controller Setup 24 7 4 Checking the EtherNet IP Communications 44 8 Initializing the System 48 8 1 Initializing the Controller 48 8 2 Initializing the Code Reader 48 9 Appendices How to Use the Project File 49 9 1 Op...

Page 4: ...es NX102 CPU Unit Hardware User s Manual W578 NX Series NX series NX1P2 CPU Unit Hardware User s Manual W501 NJ NX Series NJ NX series CPU Unit Software User s Manual W506 NJ NX Series NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W504 SYSMAC SE2 Sysmac Studio Version 1 Operation Manual W502 NJ NX Series Machine Automation Controller Instructions Reference Manual Z432 V320 F V330 F...

Page 5: ...ag Data Link The Implicit communications of the EtherNet IP standard is called a Tag Data Link Tag data links enable cyclic tag data exchange between controllers or between a controller and other devices on an EtherNet IP network Connection A connection is used to exchange data as a unit within which data concurrency is maintained Connection Type You can select multi cast or unicast point to point...

Page 6: ...on 5 The information contained in this document is current as of July 2022 It is subject to change for improvement without notice The following notations are used in this document Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or may result in serious injury or death Additionally there may be severe property damage Indicates a potentially ha...

Page 7: ...g methods and key points to operate EtherNet IP tag data links Note The settings described in 7 3 Controller Setup are already made in advance in the Sysmac Studio project file hereinafter referred to as project file listed below For how to use this project file refer to 9 Appendices How to Use the Project File Obtain the latest version of the project file from OMRON Corporation Name Filename Vers...

Page 8: ... of the equipment Please refer to the instruction manual or contact the equipment manufacturer Note From among the above applicable devices this document uses the devices listed in section 5 2 for the connection check When using devices that are not described in section 5 2 check the connection according to this document Precautions for Correct Use The connection and connection check procedures de...

Page 9: ... Sysmac Studio SYSMAC SE2 Ver 1 28 OMRON Sysmac Studio Project File OMRON_V330_NX_EIP_ V100 csm2 Ver 1 00 PC OS Windows 10 LAN cable STP shielded twisted pair cable of Ethernet category 5 or higher OMRON Code reader V330 F064N12M NNX Ver 2 1 0 OMRON Power over Ethernet PoE single port injector Select one that can be powered via Ethernet 24 VDC power supply PC Windows 10 with Sysmac Studio installe...

Page 10: ...ile OMRON_V430_NX_EIP_ V101 csm2 Ver 1 00 PC OS Windows 10 LAN cable STP shielded twisted pair cable of Ethernet category 5 or higher OMRON Code reader V430 F000M12M SRX Ver 2 1 0 OMRON I O Cable V430 W8 3M OMRON Ethernet cable V430 WE 3M 24 VDC power supply V430 F000M12M SRX I O Cable V430 W8 3M 24 VDC power supply LAN cable NX1P2 9024DT Built in EtherNet IP Port Switching hub W4S1 05C PC Windows...

Page 11: ...Section 7 and later In that case refer to the Sysmac Studio Version 1 Operation Manual Cat No W504 to perform the equivalent procedures 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 Ca...

Page 12: ...ies and two types of Output Assemblies and one type can be selected for each The data structure changes based on the selected assembly Assembly Type Assembly Name Assembly Number Input Assembly Small Input Assembly 100 Input Assembly Large Input Assembly 101 Input Assembly MXL SLC Input Assembly 102 Input Assembly 1 Decode Input Assembly 103 Input Assembly 4 Decode Input Assembly 104 Input Assembl...

Page 13: ...pe Data type Code reader data S_EIPOutput197 STRUCT COMMANDS COMMAND Control signal 32 bits Definition of control signal area access data types structure Data types for accessing the control signal area 6 2 2 Input Area The Input Area is an area where you can check the control status and output character strings of the code reader such as Accept Trigger confirmation and Read OK NG results Definiti...

Page 14: ...INFO BIT RESERVED1 BYTE Reserved for future use RESERVED2 BYTE Reserved for future use RESERVED3 BYTE Reserved for future use DEVICE_STATUS Device_Status Status Signal 32 bits FAULT CODE DINT Error code COUNTERS ARRAY 0 5 OF DINT Read Count Information READ_CYCLE_ REPORT ARRAY 0 3 OF INT Read Cycle Report DECODE_CYCLE_ REPORT ARRAY 0 3 OF DINT Decode Cycle Report CODE_TYPE DINT Read Symbol Type PI...

Page 15: ...put197 For data links to the Output Area EIPInput In S_EIPInput102 For data links to the Input Area EIPOutput Structure 1 Control Signal Assignment Variable EIPOutput COMMAND Assignment 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 TRIG RUN_ MODE 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 TRIG Execute Read Bit When ON Read is executed RUN MODE When ON Trigger can be accepted and Read Cycle is enabled...

Page 16: ...tag data link data is an odd number of bytes declare it as BYTE instead of BOOL Code reader data Variable name Data type INFO BIT EIPInput INFO_BITS BYTE Reserved for future use EIPInput RESERVED1 BYTE Reserved for future use EIPInput RESERVED2 BYTE Reserved for future use EIPInput RESERVED3 BYTE Status Signal 32 bits EIPInput DEVICE_STATUS 1 BOOL 32 Error code EIPInput FAULT DINT Read Count Infor...

Page 17: ...or a data type If an array is specified in 1 it is converted to 2 after input and the data type is always displayed in 2 1 BOOL 16 and 2 ARRAY 0 15 OF BOOL In this document the data type is described in BOOL 16 for simplicity The example above means a BOOL data type with sixteen array elements ...

Page 18: ...in the EDS file of the code reader Connection Name Connection I O Type RPI ms Timeout default_001 Input 1 Decode 10 0 RPI x 32 Connection I O Type Input Output Target Variable Size bytes Originator Variable Tag set name Size bytes Connection Type Input 1 Decode In 103 500 EIPInput 500 Point to Point connection Out 197 4 EIPOutput 4 Point to Point connection Originator Variable Tag set name Data si...

Page 19: ... 6 Setting Up the Connections 7 3 7 Transferring the Project Data 7 4 Checking the EtherNet IP Communications 7 4 1 Checking the Connection Status 7 4 2 Checking the Sent and Received Data Set up the code reader Set the parameters for the code reader Set up the controller Start the Sysmac Studio and set the IP address of the controller Install the EDS file required for EtherNet IP communication wi...

Page 20: ...e 24 VDC power supply In this document only the power supply wires of the I O cable are connected and checked Be careful not to short circuit any other wires Ground the shield wire as needed For more information on grounding please refer to Grounding in Appendices of the MicroHAWK V320 F V330 F V420 F V430 F Series Barcode Reader User Manual Cat No Z432 2 Connect the PC to the switching hub with a...

Page 21: ... Network and Sharing Center 2 Click on Local Area Connection The Local Area Connection Status Dialog Box is displayed Click Properties 3 In the Local Area Connection Properties Dialog Box select Internet Protocol Version 4 TCP IPv4 and click the Properties Button Set the IP Address of the PC to 192 168 188 100 4 Click the OK Button 5 Start your browser and enter http 192 168 188 2 Google Chrome is...

Page 22: ... the IP address of the PC Do a hardware reset of the code reader When turning ON the power supply press and hold the setup button on the code reader body until its light turns on For other measures that can be taken please refer to When unable to access by WebLink in Q A in Appendices of the MicroHAWK V320 F V330 F V420 F V430 F Series Barcode Reader User Manual Cat No Z432 8 The WebLink screen ap...

Page 23: ...connection is Enabled by default so you do not need to change the settings with the default setting If you need to change the IP address for example when connecting multiple code readers change the IP Address and subsequent settings as necessary 12 Click on the Flash Icon shown in the red frame to save the settings to the code reader ...

Page 24: ...reader Click on the gear icon on the upper right of the screen and select About WebLink 14 Check the current version of the code reader in About WebLink Make sure that 2 1 0 or later version is shown in the red frame If a version earlier than 2 1 0 is shown please update the code reader ...

Page 25: ...the PC beforehand 1 Connect a LAN cable to the Built in EtherNet IP Port PORT1 of the controller and connect a PC and a switching hub to the controller as shown in 5 2 Device Configuration 2 Start the Sysmac Studio If a user account control dialog box is displayed at startup select the option to start 3 Start the Sysmac Studio Click New Project Controller End Cover LAN cable Switching hub Code rea...

Page 26: ...t assumes that the project name is New Project Make sure that in Select Device Category and Device are set for the device to use Select an applicable version from the Version pull down list Although 1 16 is selected as an example in this document select the version you actually use 5 Click Create ...

Page 27: ... for the following tab pages are displayed Output Tab Page Build Tab Page 7 Double click Built in EtherNet IP Port Settings under Configurations and Setup Controller Setup in the Multiview Explorer 8 The Built in EtherNet IP Port Settings Tab Page is displayed in the Edit Pane In IP Address set the following information IP address 192 168 188 200 Subnet mask 255 255 0 0 Controller Status Pane Tool...

Page 28: ...EDS file can be downloaded from the OMRON web page Note that for V430 the required EDS file differs depending on the version 1 Select EtherNet IP Connection Settings from the Tools Menu 2 Double click Built in EtherNet IP Port Settings 3 In the Toolbox right click on Target Device and select Display EDS Library ...

Page 29: ... displayed Select Install 5 Select the EDS file that you downloaded and then select Open Note that there are two EDS files one for V330 F and the other for V430 F 6 Select Microscan Systems Inc Generic Device V330 F or V430 F to check that the EDS file has been installed ...

Page 30: ...Net IP Connection Settings from the Tools Menu 2 In the Edit Pane the EtherNet IP Device List Tab Page is displayed Right click on Built in EtherNet IP Port Settings and select Edit from the menu 3 The Built in EtherNet IP Port Settings Connection Settings Tab Page appears in the Edit Pane 4 Click on in the Toolbox ...

Page 31: ...92 168 188 2 In Model name and Revision set the following values by clicking on the corresponding field and selecting from the pull down menu Model name V430 F Revision 2 Example of using V430 with version 2 1 or later 6 Check the settings and click Add 7 192 168 250 2 is registered in Target Device in the Toolbox ...

Page 32: ...ode Input Assembly 103 Output Assembly Output Assembly 197 1 Double click Data Types under Programming Data in the Multiview Explorer 2 The Data Types Tab Page is displayed Click on Structures The Structures Tab Page appears Click in the Name field to enter a new data type In the Name field enter Device_status 3 After confirming the entry right click in the field and select Create New Member from ...

Page 33: ...et Bit as shown in the figure Device_status For a detailed explanation of the data shown in the figure on the right refer to Appendices A 2 EtherNet IP Specifications in the Autofocus Multicode Reader MicroHAWK V320 F V330 F V420 F V430 F Series User Manual for Communication Settings Cat No Z407 5 Right click in the tab page and select Create New Data Type In the Name field enter S_EIPInput103 6 A...

Page 34: ... for Communication Settings Cat No Z407 8 As in steps 5 to 7 create new data types and members Here we create data types for the Output Assembly to control the code reader such as trigger input bits Assign also the byte offset and bit offset values in Offset Byte and Offset Bit as shown in the figure For a detailed explanation of the signals shown in the figure on the right refer to Appendices A 2...

Page 35: ...me field to enter a new variable In the Name field enter EIPOutput In the Data Type field enter S_EIPOutput197 In the Network Publish field select Output from the menu 11 After confirming the entry right click in the field and select Create New from the menu 12 As in steps 2 to 3 enter the following data for the newly created area Name EIPInput Data type S_EIPInput103 Network Publish Input ...

Page 36: ...ow in the Variable to be refreshed field for the added area on the left side of the tab page The variables set in this section are displayed Select EIPOutput S_EIPOutput197 is added Data Type is automatically set No value needs to be entered 15 Using the same procedure as in step 6 add all the variables set in this section to Variable to be refreshed on the left side of the tab page Data Type is a...

Page 37: ...put Tab Page and select Create New Tag Set from the menu 3 You can now enter a new tag set name Select the newly added Input Area Enter EIPInput 4 Right click on EIPInput and select Create New Tag from the menu Under EIPInput you can now enter a new tag name Select the newly added Input Area Enter EIPInput to set it as a tag For preset variables entering the first letter displays a list of the mat...

Page 38: ...d select Create New Tag Set from the menu 6 You can now enter a new tag set name Using the same procedure as in step 3 enter EIPOutput 7 Using the same procedures as in step 4 add the global variable as a tag in order of the OUT No shown in 6 4 Tag Set 8 Confirm that 2 is shown for both Tag Sets and Tags ...

Page 39: ...ns in the tag data link table 1 In the Built in EtherNet IP Port Settings Connection Settings Tab Page select Connection 2 Right click in Connection and select Add from the menu 3 You can now enter a new connection Select the newly added Input Area From the Target Device pull down menu select 192 168 188 2 4 A new connection named default_001 is created In the Connection I O Type field select Inpu...

Page 40: ... a list of matching assembly numbers Select the assembly number In the same way select the Target Variable field for Output 7 Click in Originator Variable field for Input A list of available tag set names is displayed Select the one to use In the same way set the Originator Variable field for Output 8 Set the Connection Type RPI ms and Timeout Value fields as needed 9 Confirm that 2 is shown for C...

Page 41: ...edly regardless of the operating mode of the CPU Unit Before transferring the project data check the safety of the destination slaves 1 Turn ON the power supply to the controller switching hub and code reader 2 Select Check All Programs from the Project Menu 3 The Build Tab Page is displayed Confirm that 0 is shown for both Errors and Warnings 4 Select Rebuild Controller from the Project Menu 5 A ...

Page 42: ...test OK is displayed Click OK 9 Select Online from the Controller Menu A confirmation dialog box appears Confirm the information and click Yes The dialog box displayed differs depending on the status of the controller being used Read the information and select Yes or No to proceed with the operation 10 When you are online a yellow frame appears in the upper part of the Edit Pane Note Refer to Sect...

Page 43: ...nsfer the EtherNet IP connection settings i e tag data link settings Click the Transfer to Controller Button Executing Transfer to Controller transfers the data from the Sysmac Studio to the controller for data comparison 13 A confirmation dialog box appears Confirm that there is no problem and click the Yes Button The Synchronizing Dialog Box appears Another confirmation dialog box appears Confir...

Page 44: ...ion fails check the physical connections and redo the procedure from step 1 15 In Controller Status confirm that the ERR ALM indicator is lit green and that the mode is PROGRAM mode Precautions for Correct Use If you change connection settings in the tag data link table after executing Synchronize you will not be able to transfer the connection settings in the tag data link table by executing Sync...

Page 45: ...N Lit Green NET ERR OFF LINK ACT Blinking Yellow Blinking while sending and receiving packets 2 Check the LED indicators on the code reader Below is the LED status for V330 in normal operation POWER Lit Green Below are the LED status for V430 in normal operation PASS OFF TRIG OFF MODE OFF LINK Lit Orange FAIL OFF PWR Lit Green LED status for V430 3 Select EtherNet IP Connection Settings from the T...

Page 46: ...a blue dot in the Connection Name field Check that 00 0000 is shown in the Status field 7 Select the Tag Status Tab Page Check that all tags are listed with a blue dot in the Tab Name field and shown as Normally resolved in the Status field 8 Start your browser and enter http 192 168 188 2 9 The WebLink screen appears ...

Page 47: ...of the CPU Unit Sufficiently confirm safety before you change the values of variables on a Watch Tab Page when the Sysmac Studio is online with the CPU Unit 1 Select Watch Tab Page from the View Menu 2 Select Watch Tab Page 1 3 Click on Input Name and enter the Name of the variable to monitor To set a new variable name enter the following variable name EIPOutput COMMANDS Trigger EIPInput 4 For EIP...

Page 48: ...ut DECODE_LENGTH 6 EIPInput DECODE_DATA 0 31 1 EIPInput DECODE_DATA 1 32 2 EIPInput DECODE_DATA 2 33 3 EIPInput DECODE_DATA 3 34 4 EIPInput DECODE_DATA 4 35 5 EIPInput DECODE_DATA 5 36 6 DECODE_DATA should be set to output in ASCII 7 When DECODE_DATA is used to change the display format to ASCII the Decoded String can be easily confirmed To check the string in ASCII you need to set the data type o...

Page 49: ...er To initialize the controller initialize the CPU Unit Before initialization place the controller in PROGRAM Mode and select Clear All Memory from Controller Menu in the Sysmac Studio When the Clear All Memory Dialog Box is displayed confirm the contents and click OK 8 2 Initializing the Code Reader For information on initializing the code reader please refer to How to initialize the settings in ...

Page 50: ... Code Reader Setup Set up the code reader 9 2 Controller Setup Set up the controller using the project file 7 3 1 Setting the IP Address Start the Sysmac Studio and set the IP address of the controller 9 2 1 Loading the Project File Load the project file in the Sysmac Studio 7 3 7 Transferring the Project Data Place the Sysmac Studio online and transfer the connection settings and project data to ...

Page 51: ...ect file OMRON_V330_NX_EIP_V100 csm2 or OMRON_V430_NX_EIP_V100 csm2 and click Open Obtain the latest version of the project file from the OMRON website 3 The New Project Dialog Box is displayed Confirm the information and click No 4 The Project Screen is displayed If the error message Cannot compare the repositories the version on the target different from the source is displayed change the Sysmac...

Page 52: ... the Controller Menu 6 The Change Device Dialog Box is displayed Confirm that the Device and Version settings for the device are as shown in the figure on the right Click Cancel If using a different device select the device and version from the pull down menus and click OK ...

Page 53: ...10 Revision History 52 10 Revision History Revision Code Revision Date Revised Page and Reason 01 July 2022 First Publication ...

Page 54: ...10 Revision History 53 ...

Page 55: ......

Page 56: ... 60169 U S A Tel 1 847 843 7900 Fax 1 847 843 7787 Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 Contact www ia omron com Kyoto JAPAN OMRON ASIA PACIFIC PTE LTD No 438A Alexandra Road 05 05 08 Lobby 2 Alexandra Technopark Singapore 119967 Tel 65 6835 3011 Fax 65 6835 2711 OMRON CHINA CO LTD Room 2211 Bank of China Towe...

Reviews: