background image

7

EtherNet/IP Connection Procedure

 

  26 

7.3.  Controller Setup 

Set up Controller.   

 

7.3.1.  IP Address Settings 

Set the IP address of Controller.   

 

Connect a LAN cable to the 

built-in EtherNet/IP port 

(PORT1) on Controller, and 

connect a USB cable to the 

peripheral (USB) port. As shown 

in 

5.2. Device Configuration

connect Personal computer and 

Switching hub to Controller.   

 

The Project Properties Dialog 

Box is displayed in Sysmac 

Studio. Select 

Controller

 from 

the pull-down list of Category in 

the Select Device Area.   

 
*In this document, New Project 

is used as the project name.   

 

Select the device to use from 
the pull-down list of Device.   
 
*NJ501-1500 is selected as an 

example of device in this 
document.   

 
 
 
 
 
 
 
 
 
Select an applicable version 
from the pull-down list of 
Version.   
 
*Although 1.10 is selected as an 

example in this document, 
select the version you actually 
use.   

 

 

USB cable

 

CPU Unit 

End Cover 

Power Supply Unit 

LAN cable 

Switching hub 

Sensor Controller 

Controller

 

Personal 

computer 

Summary of Contents for NJ501-1500

Page 1: ...Machine Automation Controller NJ series EtherNet IPT M Connection Guide OMRON Corporation Displacement Sensor ZW 7000 series P653 E1 01...

Page 2: ...ountries ODVA and EtherNet IPTM are trademarks of ODVA EtherCAT R is registered trademark and patented technology licensed by Beckhoff Automation GmbH Germany Sysmac is a trademark or registered trade...

Page 3: ...se for Tag Data Links 10 6 3 Global variables 11 6 4 Tag Sets 14 6 5 Tag Data Link Table 14 7 EtherNet IP Connection Procedure 15 7 1 Work Flow 15 7 2 Sensor Controller Setup 16 7 3 Controller Setup 2...

Page 4: ...s Manual W501 NJ501 NJ301 NJ101 NJ NX series CPU Unit Software User s Manual W506 NJ501 NJ301 NJ101 NJ NX series CPU Unit Built in EtherNet IPTM Port User s Manual W504 SYSMAC SE2 Sysmac Studio Versio...

Page 5: ...nk In EtherNet IP the tag and tag set can be exchanged cyclically between nodes without using a user program This standard feature on EtherNet IP is called a tag data link Connection A connection is u...

Page 6: ...riable and a target variable In Sysmac Studio the instance number is specified in the target variable Tag data link parameter A tag data link parameter is the setting data to operate tag data links It...

Page 7: ...in this document is current as of June 2016 It is subject to change for improvement without notice The following notations are used in this document Indicates a potentially hazardous situation which i...

Page 8: ...Section 7 EtherNet IP Connection Procedure to understand setting methods and key points to operate EtherNet IP tag data links Additional Information Settings described in 7 3 Controller Setup are made...

Page 9: ...scribe the procedures for connecting the devices and checking their connections You cannot use devices with versions lower than the versions listed in 5 2 To use the above devices with models not list...

Page 10: ...N Sensor Head ZW S7030 OMRON Calibration ROM Supplied with Sensor Head OMRON 24 VDC power supply for Sensor Controller 24 VDC 2 5A 60W S8VS 06024 Precautions for Correct Use Update Sysmac Studio to th...

Page 11: ...ply available for Sensor Controller refer to the Displacement Sensor ZW 7000 series Confocal Fiber Type Displacement Sensor User s Manual Cat No Z362 Additional Information The system configuration in...

Page 12: ...e parameters required for connecting Personal computer for setting and Sensor Controller using Ethernet communications are shown below Item Personal computer for setting Sensor Controller IP address 1...

Page 13: ...ructure Data type to access the response and output areas Data type name Data type Sensor Controller data S_EIPInput STRUCT SensorHeadStatusFlag1 U_EIPFlag Sensor head status signal1 32 bit SensorHead...

Page 14: ...SensorHeadControlReserve W DWORD Command code EIPOutput CommandCode DWORD Command parameter 1 EIPOutput CommandParam1 UINT Command parameter 2 EIPOutput CommandParam2 UINT Command parameter 3 EIPOutpu...

Page 15: ...adStatusReserve F BOOL 32 EIPInput SensorHeadStatusReserve W DWORD Command code Echo EIPInput CommandCodeEcho DWORD Response code EIPInput ResponseCode UDINT Response data EIPInput ResponseData DINT O...

Page 16: ...SDSTAT Hold execution status RESETSTAT Reset execution state LIGHT Logical beam lighting state STABILITY1 Measurement position ENABLE Measurement state GATE Data output completed OR Overall judgment r...

Page 17: ...of tag data link table settings connection settings is shown below The values marked with red squares are taken from the values defined in the EDS file for Sensor Controller Connection Name Connectio...

Page 18: ...s Set the parameters for Sensor Controller 7 3 Controller Setup Set up Controller 7 3 1 IP Address Settings Set the IP address of Controller 7 3 2 Target Device Registration Register the target device...

Page 19: ...ou set up 1 Make sure that Sensor Controller is powered OFF If it is ON the settings described in the following steps and subsequent procedures may not be applicable 2 Check the position of connectors...

Page 20: ...ower supply for Switching hub to Switching hub LAN cable LAN cable 24VDC power supply 6 Connect 24 VDC power supply to 24 V input terminal block For details on specifications of 24 VDC power supply av...

Page 21: ...mputer and Sensor Controller are connected with LAN cables set the IP address of Personal computer to 192 168 250 100 Precautions for Correct Use The Parameters for Sensor Controller are checked using...

Page 22: ...the environment settings of Personal computer 2 The Local Area Connection Status Dialog Box is displayed Click Properties 3 The Local Area Connection Properties Dialog Box is displayed Select Interne...

Page 23: ...start Sysmac Studio 4 Sysmac Studio starts Click New Project 5 The Project Properties Dialog Box is displayed 6 Select Measurement Sensor from the pull down list of Category in the Select Device Area...

Page 24: ...troller and Sensor Head is displayed Check that the information displayed there indicates the connected devices Click OK If Sensor Controller is not specified the IP address and other settings may not...

Page 25: ...ing tabs are displayed in the Edit Pane Center Sensing Monitor Pane Right Toolbox 11 Double click 1 ZW 7000 2 0 Online under Configurations and Setup DeviceGroup in the Multiview Explorer 12 The 1 ZW...

Page 26: ...ed Click the Ethernet communication settings Button 17 The Ethernet communication settings view is displayed Select EtherNet IP from the pull down list of Fieldbus Check that the following fieldbus se...

Page 27: ...The Online view is displayed on the 1 ZW 7000 2 0 Online Tab Page Click Save settings sensor internal memory in the Save settings Field 20 The Save settings Dialog Box is displayed Check the contents...

Page 28: ...ct Dialog Box is displayed Check the contents and click Yes 23 The connection goes offline and the yellow frame surrounding the Edit Pane disappears 24 Select Close from the File Menu The New Project...

Page 29: ...s Dialog Box is displayed in Sysmac Studio Select Controller from the pull down list of Category in the Select Device Area In this document New Project is used as the project name 3 Select the device...

Page 30: ...bottom middle of this window Output Tab Page Build Tab Page 6 Double click Built in EtherNet IP Port Settings under Configurations and Setup Controller Setup in the Multiview Explorer 7 The Built in E...

Page 31: ...and select Edit from the menu while Built in EtherNet IP Port Settings is selected 3 The Built in EtherNet IP Port Settings Connection Settings Tab Page is displayed in the Edit Pane 4 Click the Butto...

Page 32: ...7 EtherNet IP Connection Procedure 29 6 Check the settings and click Add 7 192 168 250 50 is registered in Target Device of the Toolbox...

Page 33: ...the Multiview Explorer 2 Click the Union Side Tab Click on a space in the Name Column to enter a new data type Enter U_EIPFlag in the Name Column 3 After entering right click and select Create New Me...

Page 34: ...he menu 8 Enter SensorHeadControlFlag1 in the Name Column Enter U_EIPFlag in the Base Type Column 9 In the same way as steps 7 and 8 enter the following data in the newly added rows Name SensorHeadCon...

Page 35: ...eadStatusFlag1 Base type U_EIPFlag Name SensorHeadStatusFlag2 Base type U_EIPFlag Name SensorHeadStatusReserve Base type U_EIPFlag Name CommandCodeEcho Base type DWORD Name ResponseCode Base type DINT...

Page 36: ...Name Column Enter S_EIPOutput in the Data Type Column Select Output from the pull down list of Network Publish 14 After entering right click and select Create New from the menu 15 In the same way as s...

Page 37: ...igure The variables set in the previous steps are displayed Select EIPOutput EIPOutput is added Since the data types are displayed automatically you do not need to set them 18 In the same way as step...

Page 38: ...reate New Tag Set from the menu 3 A new tag name can be entered Select the newly added entry cell Enter EIP050_IN 4 Right click and select Create New Tag from the menu while EIP050_IN is selected A ne...

Page 39: ...from the menu 6 A new name can be entered in the Tag Set Name Column In the same way as step 3 enter EIP050_OUT 7 In the same way as step 4 set the global variable of OUT No 1 as a tag which is liste...

Page 40: ...can be entered Select the newly added entry cell Select 192 168 250 50 from the pull down list of Target Device 4 The default_001 connection is created Check that Consume Data From Produce Data To is...

Page 41: ...Variable Column The pull down list is displayed Select the tag set name to use Likewise set the originator variable for Output 8 Set the connection type RPI ms and timeout value as required In this d...

Page 42: ...rm unexpected operation regardless of the operating mode of CPU Unit Always confirm safety at the destination node before you transfer the project data 1 Turn ON Controller Switching hub and Sensor Co...

Page 43: ...mation dialog box is displayed Check the contents and click OK The displayed dialog depends on the status of Controller Check the contents and click on an appropriate button to proceed with the proces...

Page 44: ...t IP connection settings i e tag data link settings Click Transfer To Controller After executing Transfer To Controller the Sysmac Studio data is transferred to Controller and the data is compared 13...

Page 45: ...e Controller data If the synchronization fails check the wiring and repeat from step 1 15 Check that ERR ALM indicator in the Controller Status Pane changes to green color and that PROGRAM mode is dis...

Page 46: ...NK ACT Yellow flashing Flashing while packets are being sent and received 2 Check the LED indicators on Sensor Controller The LED indicators in normal status are as follows Red LED Lighting Green LED...

Page 47: ...played next to the applicable connection listed in the Connection Name Column Check that the Status is 00 0000 8 Select the Tag Status Tab Check that all the tags in the Tag Name Column are displayed...

Page 48: ...y operate regardless of the operating mode of CPU Unit Always ensure safety before you change the variable values on a Watch Tab Page when Sysmac Studio is online with CPU Unit 1 Select Watch Tab Page...

Page 49: ...eadStatusFlag1 F 0 is False Click TRUE for EIPOutput SensorHeadControlFlag 1 F 0 in the Modify Column True is displayed for EIPOutput SensorHeadControlFlag 1 F 0 in the Online value Column and the com...

Page 50: ...ment Sensor ZW 7000 series Confocal Fiber Type Displacement Sensor User s Manual for Communications Settings Cat No Z363 Additional Information For details on system data refer to 8 2 System data list...

Page 51: ...alize CPU Unit Change the operating mode of Controller to PROGRAM mode and select Clear All Memory from the Controller Menu in Sysmac Studio The Clear All Memory Dialog Box is displayed Check the cont...

Page 52: ...to make the EtherNet IP tag data link settings using the project file Refer back to each of the following procedures for details except for 9 2 1 Importing the Project File marked with a red square 7...

Page 53: ...g Box is displayed Select P653_NJ_EIP_OMRON_ZW 70 00_EV100 csm2 project file and click Open Obtain the project file from OMRON 3 The dialog box on the right is displayed Check the contents and click N...

Page 54: ...e Dialog Box is displayed Check that the Device and the Version Fields are set as shown on the right Click Cancel If the settings are different select the setting items from the pull down list and cli...

Page 55: ...10 Revision History 52 10 Revision History Revision code Date of revision Description of revision 01 June 24 2016 First edition...

Page 56: ...2016 0616 P653 E1 01...

Reviews: