Document

advertisement
PNSPO!
!
!
EtherNet IP
Network Configurator
Omron CJ2 to Rockwell Control Logix
Tag Datalink Example
Revision 1.0
1
Table of Contents
Table of Contents................................................................................................................ 2
Overview............................................................................................................................. 3
1-1
Hardware and Network configuration .................................................................... 3
1-2
Shared Data Areas................................................................................................... 3
1-3
Omron CX-Programmer Settings ........................................................................... 4
1-3-1
CX-Programmer New PLC Settings........................................................... 4
1-3-2
CX-Programmer Create New Consume Variable....................................... 4
1-3-3
CX-Programmer Create New Produce Variable......................................... 5
1-3-4
CX-Programmer I/O Table ......................................................................... 5
1-3-5
CX-Programmer Set IP Address................................................................. 6
1-3-6
CX-Programmer Transfer Program Symbols to PLC................................. 6
1-4
Omron Network Configurator Settings................................................................... 7
1-4-1
Network Configurator Start up Screen ....................................................... 7
1-4-2
Network Configurator create new EtherNet IP Project .............................. 7
1-4-3
Add Omron CJ2 PLC to Project ................................................................. 8
1-4-4
Change the IP Address to match your Network.......................................... 9
1-4-5
Edit the Connection and Tag Data Parameters ......................................... 10
1-4-6
Import the Tag Data from CX-Programmer ............................................. 10
1-4-7
Imported Consume Tag Set from CX-Programmer.................................. 11
1-4-8
Imported Produced Tag Set from CX-Programmer.................................. 11
1-4-9
Add the Rockwell Control Logix PLC to the Project ............................... 12
1-4-10 Change the IP Address to match your Network........................................ 14
1-3-10 Edit the 1756-EN2T/A Device Parameters............................................... 15
2-1
Configure the Rockwell Control Logix Processor........................................ 19
3-1
Configure the Connection to the AB PLC .................................................... 25
3-2
Connect to Network and Download Settings................................................ 27
3-2
Network Connections are complete. ............................................................. 30
2
Overview
This document will allow a user to setup an Ethernet IP Tag Datalink between an
Omron CJ2 PLC and a Rockwell Control Logix 5561 PLC. This tag datalink will share
an array of 100 Channels (200 Bytes) from the Omron CJ2 PLC to the Rockwell PLC
and an array of 100 Integers (200 Bytes) from the Rockwell PLC to the Omron CJ2
PLC.
1-1 Hardware and Network configuration
1-2 Shared Data Areas
Omron CJ2 PLC Tags
Produced Tag Set Name
Length
To_AB
Produced Tag Name
To_AB[0]
To_AB[1
|
To_AB[99
Consumed Tag Set Name
From_AB
Consumed Tag Name
From_AB[0]
From_AB[1]
|
From_AB[99]
200 Bytes
2 Bytes
2 Bytes
2 Bytes
2 Bytes
Length
12 Bytes
2 Bytes
2 Bytes
2 Bytes
Rockwell Logix 5550 Tags
Consumed Tag Set
Length
Name
Input_From_CJ2
100 Int.
Consumed Tag Name
Input_From_CJ2.In[0]
1 Int.
Input_From_CJ2.In[1]
1 Int.
|
1 Int.
Input_From_CJ2.In[99]
1 Int.
Produced Tag Set Name
Length
Output_to_CJ2
100 Int.
Produced Tag Name
Output_to_CJ2.Out[0]
1 Int.
Output_to_CJ2.Out[1]
1 Int.
|
1 Int.
Output_to_CJ2.Out[99]
1 Int.
3
1-3 Omron CX-Programmer Settings
CX-Programmer version 8.01 is used in this example.
1-3-1 CX-Programmer New PLC Settings
Select File and New Project Select CJ2H and select either Ethernet or USB connection.
1-3-2 CX-Programmer Create New Consume Variable
Insert New Symbol Name “From_AB”, D2000, Net Variable Input, Advanced Settings Array 100
4
1-3-3 CX-Programmer Create New Produce Variable
Insert New Symbol Name “To_AB”, D1000, Net Variable Output, Advanced Settings Array 100
1-3-4 CX-Programmer I/O Table
Go Online with the PLC and Open the I/O Table and Select Built-in Port/Inner Board
5
1-3-5 CX-Programmer Set IP Address
Right Click the Ethernet IP Module and Select Unit Setup. Enter the appropriate IP and Subnet.
Select the Transfer(PC to Unit) Button
1-3-6 CX-Programmer Transfer Program Symbols to PLC
Download the Program(s) / Network Symbols to the PLC
6
1-4 Omron Network Configurator Settings
Start the Network Configurator for Ethernet IP program from the CX-ONE Start Menu
1-4-1 Network Configurator Start up Screen
1-4-2 Network Configurator create new EtherNet IP Project
Select File, New, and EtherNet IP
7
1-4-3 Add Omron CJ2 PLC to Project
Click the + Sign beside Vendor Omron Corporation
Click the + Sign beside Communications Adapter
8
Drag CJ2-EIP21 from Project Workspace to the Ethernet IP Network View
Note: The Default IP Address is 192.168.250.1
1-4-4 Change the IP Address to match your Network.
Right Click the CJ2 Icon and Select Change Node Address. Enter the IP Address (192.168.1.2)
9
1-4-5 Edit the Connection and Tag Data Parameters
Right Click on the CJ2 Icon and Select Parameter and then Edit
1-4-6 Import the Tag Data from CX-Programmer
Select the Tag Sets Tab on the Import Button. A warning message appears Click OK
10
1-4-7 Imported Consume Tag Set (From_AB) 200 Bytes from CX-Programmer
1-4-8 Imported Produced Tag Set (To_AB) 200 Bytes from CX-Programmer
11
1-4-9 Add the Rockwell Control Logix PLC to the Project
Select “EDS File” and ‘Install” Select the 1756-L61 Logix5561 EDS File and Click the Open Button.
Select the 1756 EN2T-A Ethernet Module EDS File and Click the Open Button..
12
Click the No Button to “Install the Icon” of the Rockwell Ethernet Module.
Click the Yes Button to Install the Chassis EDS File.
Select the Rockwell 1756 Chassis EDS File.
13
Drag 1756-ENBT/A from Project Workspace to the Ethernet IP Network View
Note: The Default IP Address is 192.168.250.1
1-4-10
Change the IP Address to match your Network.
Right Click the 1756-EN2T/A and Select Change Node Address.
14
Enter the IP Address (192.168.1.4) for the 1756-EN2T/A Module. Then Select OK.
1-3-10
Edit the 1756-EN2T/A Device Parameters
Right Click on the 1756-EN2T/A and Select Parameter and then Edit
15
Click on “Slot 00” and Select the 1756-L61 LOGIX 5561 Rev16.01.
Click on “Slot 01” and change to 1756-EN2T/A Rev1.01 Ethernet Module.
16
Click on “Slot 0” and Click “Edit”. The Receive Data From Window Opens
Click on “New” Button and Enter “Output_To_CJ2” 200 Bytes and Click OK.
This will be the Produced Tag From the Rockwell Controller.
17
Click OK, OK, OK to complete Rockwell Configuration in the Omron configurator.
The Omron Network Configurator Settings are Complete.
18
2-1
Configure the Rockwell Control Logix Processor.
Open the RS-Logix Programming Software using the current project that is in the PLC.
Right Click the 1756-EN2T/A Ethernet Module in the I/O Configuration section of the Project Workspace
and Select Module, Communications, Generic Ethernet Module.
19
Set the Name to “OS3_Demo”, Comm Format to “None”, and the IP Address to 192.168.1.4
Click “OK” to complete the Ethernet Module Setup.
20
Create New User Defined Data Type Named Input, Tag = In, INT Array[100] Decimal
Create New User Defined Data Type Named Output, Tag = Out, INT Array[100] Decimal
21
Create a New Controller Tag for the Data from Omron.
Select “Controller Tags”, Right Click and Select “New Tag”. Name the Tag “Input_From_CJ2”, Type =
“Consumed”, Data Type = “Input”
Click the “Connection” Button. Select “OS3_Demo” from the Producer Drop Down. Enter “To_AB” in
the Remote Data area. This is the Produced Tag defined in the CJ2.
22
Create a New Controller Tag for the Data To Omron.
Select “Controller Tags”, Right Click and Select “New Tag”. Name the Tag “Output_To_CJ2”, Type =
“Produced”, Data Type = “Output”
Click the “Connection” Button. Enter the Maximum number of consumers for this data.
Default is 1.
23
The Control Logix Configuration is complete.
Select “Communications” and “Download” to send this configuration to the PLC.
The configuration is complete.
24
3-1
Configure the Connection to the AB PLC
Right Click the CJ2 Icon and Select the Parameter Edit Function.
The connections form will open
Use the Down Arrow Button to move the AB to registered connection area.
25
Double Left Click the Registered Device and Enter a Connection Name, Desired RPI, Consume
Variable, and Produce Variable. Then Click Regist.
Left Click on Close and the following screen will appear. The connection is now defined.
26
3-2
Connect to Network and Download Settings
Select Connection Interface. Select Option, Select Interface, and Ethernet I/F.
Connect to Network. Select Network, and Connect.
Select TCP:2 and Click OK.
27
Click the “Use the exiting network” Radio Button and Click OK.
Right Click the Omron CJ2B-EIP21 Icon and Select “Parameter” and “Download”.
28
Click the Yes Button to Start Downloading to the Module.
The Downloading to Device Dialog box will appear.
29
Click the OK Button to complete the Download procedure.
3-2
Network Connections are complete and Tag DataLink should be
Operational.
Use the Indicators on the EIP Module and the Monitor functions of the Omron
Software to verify the network status.
30
Download