31
Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Embed Size (px)

Citation preview

Page 1: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

EtherNet/IP Profile SwitchStep by Step

Page 2: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Agenda

Commercial Information Integrating the EtherNet/IP Profile Switch

• Assign IP address• Enable EtherNet/IP and register EDS files• Using RSLogix5000 sample files (v16 required)• Using RSView Studio sample files

Page 3: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Commercial Information

The EtherNet/IP Profile is available in the 3.0 firmware release for all Open Rail switches (RS20/30/40 and MS20/30)

This functionality allows the switch to be integrated directly into the RSLogix5000 I/O tree

There is no additional cost Switches already in the field can be flashed

to this firmware level (firmware can be found at ftp.hirschmann-usa.com/firmware or send e-mail to [email protected])

3.1 release (June) will add support for MACH, PowerMICE and Octopus families

Page 4: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Integrating the EtherNet/IP Profile SwitchStep 1 – Assigning IP Address to a new switch

Use HiDiscovery to set the switch’s IP address & subnet mask

HiDiscovery is on the product CD or can be downloaded at ftp.hirschmann-usa.com/software

Page 5: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 2 – Enable EtherNet/IP and register EDS files

Connect to the switch with your web browser – answer Yes when prompted

Page 6: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 2 - continued

Login as “Admin”, default password is “private”

Page 7: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 2 - continued

Expand the “Advanced” menu item, and select “Industrial Protocols”

Page 8: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 2 - continued

Click the box to enable EtherNet/IP Click the Set button at the bottom of the page

*** Be sure to go to the Load/Save screen, and Save your configuration to make this change permanent.***

Page 9: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 2 - continued

Click on the Download EDS File button (the EDS file is generated dynamically based on the switch’s product code, then transferred to your PC)

Register the EDS file using the EDS Hardware Installation Tool (Start > All Programs > Rockwell Software > RSLinx Tools > EDS Hardware Installation Tool)

Alternately, all EDS files are included on the product CD. Youcan register them all at once fromthere.

Page 10: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 – using RSLogix5000 sample files

Sample files are available at http://samplecode.rockwellautomation.com (search Title – Hirschmann) or at ftp.hirschmann-usa.com/EthernetIP

Version 16 is required for this file – it takes advantage of the new Add-On Instruction functionality

Version 16 is NOT required for the EtherNet/IP functionality of the switch to work – only to use these sample files

Page 11: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

You can use the base sample file or import the Add-On Instruction from the XML file into an existing project (right click on Add-On Instructions, and import)

Page 12: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

Add a Generic Ethernet module to the I/O tree Enter the IP address Set the Connection Parameters as shown below Set the RPI to 100

Page 13: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

Click the Add-On tab on the Instruction Bar Add the Hirschmann Instruction to your ladder program

Page 14: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

Enter a name for this switch in the “Hirschmann_Switch” field (datatype = Hirschmann_Switch)

Map the Switch_Inputs and Switch_Output as shown below:• Switch_Inputs – Name of the switch created:I.Data• Switch_Output – Name of the switch created:O.Data[0]

Enter & create tags as shown below:• Switch_Parameters (Datatype = Switch_All)• GetMessage (Datatype = Message)• Set Message (Datatype = Message)• Storage fields (Datatype = SINT[200]

Page 15: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

Your instruction should now look something similar to this

Page 16: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

Configure the GetMessage as shown below

Page 17: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

Configure the SetMessage as shown below

Page 18: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 3 - continued

For both Message instructions, click on the Communication tab, then click browse

Select the appropriate switch from the I/O tree

Page 19: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 – Using RSView Studio sample files

Open your RSView Studio application Make sure the communication path is set up to your PLC Right click on Global Objects – then select Import and

Export Click No – do not backup displays, then click next Select Multiple Displays Import File, then click next Click on the … to open the file browser and point to the file

called BatchImport_Hirschmann Switch.xml Make sure that create new objects is selected Click Finish

Page 20: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Your project tree should now show a number of new global objects

Page 21: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Right click on Parameters and select New Enter an expression similar to the one shown below [Switch_Text] is the RSLinx Enterprise shortcut to the PLC My RailSwitchParams is the name of the tag in the Switch

Parameters field of the RSLogix5000 Add-On Instruction

RSLinx Enterprise shortcut to the PLC

Tag name from RSLogix5000

Page 22: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Save and close the parameter file Creating the graphics

• You will have 1 overview screen for each switch in your application

• You only need to create the “Pop Up” screens once, they will represent the appropriate information using the Parameter files

• Create the 5 “pop up” displays• Diagnostics• Configure IGMP• Configure Ports• Switch Information• Port Stats

Page 23: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

To create a Switch Overview Display:

• Select the appropriate Global Object for your particular switch

• Edit the 5 buttons so that the appropriate Parameter file is used for the Pop Up screens

• Save the file (but leave it open)• Create a new display• On the Global Object file, click Edit >

Select All, then drag the objects to your new display

• Save your new display• Make sure to include the Parameter

file in the button that calls the Switch Overview screen

Page 24: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Before running your project, you will need to create 2 HMI memory tags

• Name: PLC_Port_Number and PC_Port_Number• Type: Analog• Initial Value: 0

These tags are used on the Ports screen You will get error messages if they are not created

Page 25: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

The result should look similar to the following screenshots HINT: The Parameter files don’t initialize in Test Run

mode – you have to actually run the project to test your screens

Overview Screen for an RS20-16

Page 26: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Diagnostics Screen

Read OnlyProvides information found on the Diagnostics screen in the

web interface. Some of these alarms are disabled by default.

Page 27: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Switch Information Screen

Read Only Provides information found on the Main screen in the web

interface.

Page 28: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

IGMP Settings Screen

Read/Write Provides information found on the Multicast screen in the web interface. Users can Enable/Disable IGMP snooping

and querier mode and set the IGMP protocol version (default is 2).

Page 29: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Port Settings Screen

Read/Write Users can Enable/Disable each port of the switch

individually. If you click the “PLC Port” button, you can enter a port number that cannot be disabled.

Page 30: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Port Statistics Screen

Read Only Provides information on an individual port. Click on the Port

button to select the port that you want information on.

Page 31: Automation and Network Solutions EtherNet/IP Profile Switch Step by Step

Automation and Network Solutions

Step 4 - continued

Disclaimer

Please keep in mind that these are sample files – provided to make it easier for users to integrate the Hirschmann EtherNet/IP Profile Switches into their applications.

Careful thought should be given as to how to integrate these files. It is recommended that you password protect or disable some screens to prevent unauthorized access.

The applications should be thoroughly tested and verified before being deployed in a production environment.