background image

6

EtherNet/IP Settings

 

  11 

6.3.  Global variables 

The Controller treats the data in tag data links as global variables.   

The content of global variable settings is shown below.   

 
■Output area (Controller to Sensor Controller) 

Variable 

Data type 

Data size 

EIPOutput 

S_EIPOutput 

24 bytes 

 

Sensor Controller data 

Variable name 

Base type 

Sensor head control signal1 
(Data type: U_EIPFlag) 

EIPOutput.SensorHeadControlFlag1.F *

1

 

BOOL[32] 

EIPOutput.SensorHeadControlFlag1.W 

DWORD 

Sensor head control signal2 
(Data type: U_EIPFlag) 

EIPOutput.SensorHeadControlFlag2.F *

2

 

BOOL[32] 

EIPOutput.SensorHeadControlFlag2.W 

DWORD 

Extended area 
(Data type: U_EIPFlag) 

EIPOutput.SensorHeadControlReserve.F 

BOOL[32] 

EIPOutput.SensorHeadControlReserve.W 

DWORD 

Command code 

EIPOutput.CommandCode 

DWORD 

Command parameter 1 

EIPOutput.CommandParam1 

UINT 

Command parameter 2 

EIPOutput.CommandParam2 

UINT 

Command parameter 3 

EIPOutput.CommandParam3 

DINT 

 

*1: Assignment of Sensor Head control signal1 

Variable: EIPOutput.SensorHeadControlFlag1.F 

 

15  14  13  12  11  10 

 

 

 

 

 

 

 

 

 

 

 

 

 

   

 

EXE

 

 

 

31  30  29  28  27  26  25  24  23  22  21  20  19  18  17 

16 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ERCLR 

EXE   

 

: Control command execution 

ERRCLR   

: Error clear 

 

*2: Assignment of Sensor Head control signal2   

Variable: EIPOutput.SensorHeadControlFlag2.F 

 

15  14  13  12  11  10 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LIGHT 

OFF

 

RESET  TIMING 

 

 

31  30  29  28  27  26  25  24 

23 

22 

21 

20 

19 

18 

17 

16 

 

 

 

 

 

 

 

 

 

ZERO 

CLR_T4 

ZERO 

CLR_T3 

ZERO 

CLR_T2 

ZERO 

CLR_T1 

ZERO_ 

T4 

ZERO_ 

T3 

ZERO_ 

T2 

ZERO_ 

T1 

TIMING 

 

: Timing 

RESET 

 

: Reset 

LIGHTOFF  

: Light metering OFF 

ZERO_Tn   

: TASK n Zero reset execution (n: 1 to 4) 

ZEROCLR_Tn  : TASK n Zero reset cancel (n: 1 to 4) 

 

 

 

Содержание NJ501-1500

Страница 1: ...Machine Automation Controller NJ series EtherNet IPT M Connection Guide OMRON Corporation Displacement Sensor ZW 7000 series P653 E1 01...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 55: ...10 Revision History 52 10 Revision History Revision code Date of revision Description of revision 01 June 24 2016 First edition...

Страница 56: ...2016 0616 P653 E1 01...

Отзывы: