48
Connecting a Rockwell Logix CPU Using EtherNet/IP Communications Directly to a A800 VFD using the A8NEIP_2P Module Version 1.1

Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

Embed Size (px)

Citation preview

Page 1: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

eth1000_large.jpg

Connecting a Rockwell Logix CPU Using EtherNet/IP Communications Directly to a A800 VFD using the A8NEIP_2P Module Version 1.1

Page 2: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

i

R72-137-SLSASG-005

This book applies to the Mitsubishi Electric Corporation product components and to all subsequent releases

and modifications until otherwise indicated in new editions. Make sure you are using the correct edition for the

level of the product.

MITSUBISHI ELECTRIC CORPORATION PROVIDES THIS BOOK "AS IS," WITHOUT WARRANTY OF ANY

KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES

OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

This book could contain technical inaccuracies or typographical errors. Changes are made periodically to the

information herein. Mitsubishi Electric Corporation may make improvements and changes at any time to the

product(s) and/or program(s) described in this book.

Page 3: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

ii

R72-137-SLSASG-005

Contents

Contents ................................................................................................................................................................... ii

FURTHER READING REFERENCE LIST .............................................................................................................. iii Mitsubishi Manuals .................................................................................................................................................. iii

Mitsubishi................................................................................................................................................................. iii

Rockwell Programs ................................................................................................................................................. iii

Chapter 1 Introduction ....................................................................................................................................... 1-1

Chapter 2 System Overview .............................................................................................................................. 2-1

2.1 ControlLogix ......................................................................................................................................... 2-1 2.2 CompactLogix....................................................................................................................................... 2-1 2.3 VFD ...................................................................................................................................................... 2-1 2.4 Ethernet switch ..................................................................................................................................... 2-1

Chapter 3 A800 VFD Configuration .................................................................................................................. 3-1

3.1 EtherNet/IP Base Parameters Selection .............................................................................................. 3-1 3.2 Calculating Read and Write Process Data Parameter Values ............................................................. 3-5 3.3 Supported Instances of Output and Input Assemblies ....................................................................... 3-11

Chapter 4 RSLogix5000 Configuration ............................................................................................................. 4-1

4.1 Electronic Data Sheet (EDS) File Import .............................................................................................. 4-1 4.2 Ethernet Device Setting ........................................................................................................................ 4-2 4.3 EtherNet/IP A800 Controller Tags ........................................................................................................ 4-8 4.4 Rockwell User-Defined Data Types and Sample Code ..................................................................... 4-12 4.5 Rockwell Add-On Instruction (AOI) and Sample Code ...................................................................... 4-18 4.6 Rockwell Explicit Messaging and Sample Code ................................................................................ 4-21

Terminology ............................................................................................................................................................. 1

Revisions ................................................................................................................................................................. 1

Page 4: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

iii

R72-137-SLSASG-005

FURTHER READING REFERENCE LIST

Mitsubishi Manuals

ME_A8NEIP_2P_instruction_manual_1_00

FR-A800 Instruction Detailed Manual IB(NA)0600503ENG-A

ATTACHMENTS

Mitsubishi

A8NEIP_2P ExtendedSpeedControl.frc2 - FR-Configurator2 File

A8NEIP_2P ExclusiveOwnerControl.frc2 - FR-Configurator2 File

A8NEIP-2P.EDS – EDS File for Option Module

Rockwell Programs

CompactLogix_A800EIP_ExclusiveOwnerCtrl.ACD – RSLogix5000 Program

CompactLogix_A800EIP_ExtendedSpeedCtrl.ACD – RSLogix5000 Program

ControlLogix_A800EIP_ExclusiveOwnerCtrl.ACD – RSLogix5000 Program

ControlLogix_A800EIP_ExtendedSpeedCtrl.ACD – RSLogix5000 Program

A8NEIP_2P_ACDC_Drive_Profile_AOI.L5X – AOI RSLogix5000 File

Page 5: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

1-1

Chapter 1 Introduction This Quick Start Guide (QSG) provides instructions on how to configure an Allen-Bradley CompactLogix or ControlLogix Programmable Logic Controller (PLC) to communicate with a Mitsubishi A800 Variable Frequency Drive (VFD) with an EtherNet/IP interface card A8NEIP_2P. The objective of this document is to assist the users to quickly set up a Logix PLC to send commands to the VFD and receive status information and data from the VFD. The manual contains the necessary configuration information for the A8NEIP-2P Module, the Mitsubishi A800 VFD parameters and the Logix CPU using User Define Data types and Add On Instructions.

It is assumed that the user of this manual is familiar with the operation of Mitsubishi A800 drives and has sufficient knowledge of the A8NEIP_2P interface card. It is critical for the user to refer to the A8NEIP_2P and A800 instruction manuals when setting up the system for EtherNet/IP applications.

Figure 1 A800 EtherNet/IP Connection to Rockwell PLCs.

All Rockwell and EtherNet/IP Images are Copyright © 2014 Rockwell Automation, Inc. All Rights Reserved.

Page 6: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

2-1

Chapter 2 System Overview This QSG was setup using the following test system. A ControlLogix OR a CompactLogix CPU can be used.

The PLC Programming software is RSLogix5000 V20.01.00 or Greater.

The VFD Programming software is FR-Configurator2 V1.00A or Greater.

Figure 2 Architecture of Test System

2.1 ControlLogix The ControlLogix hardware used in this validation system consists of:

Rack: 1756-A17

Power supply: 1756-PA72/B

Processor: 1756-L61 (Firmware 20.54)

Ethernet/IP card: 1756-EN2TR

Address: 192.168.1.100

2.2 CompactLogix The CompactLogix hardware used in this validation system consists of:

Processor: 1769-L32E (Firmware 20.12)

Address: 192.168.1.100

2.3 VFD The VFD hardware used in this validation system consists of:

VFD: FR-A800

Ethernet /IP card: A8NEIP_2P

Address: 192.168.1.51

2.4 Ethernet switch An unmanaged Ethernet switch was used in this validation system.

Page 7: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-1

Chapter 3 A800 VFD Configuration

3.1 EtherNet/IP Base Parameters Selection This section describes the parameters of an A800 VFD that will need to be configured to enable EtherNet/IP communication through the A8NEIP_2P card. The configuration will enable communication of both control and status information. There are two sets of Parameters for the two Demo Programs detailed in this QSG. Extended Speed Control Mode and Exclusive Owner Control Mode with User Specific Data Mapping Enabled. It is recommended to start with the Extended Speed Control Mode. Refer to Section 4.2 Option Board Parameters in the Manual for full details.

1. Ensure the A8NEIP_2P has been properly installed in the VFD per the instructions in the manual.

Page 8: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-2

2. Configure the parameters described in the following table with the new values (Items in RED are only needed in the Exclusive Owner Control Mode with User Specific Data Mapping Enabled mode) :

Pr# Name Description Initial Value

New Value

128 PID Enable (If Needed) PID Enable NET Mode 0 60 or 61

340 CommsStartup Mode

NET mode = enabled 0 10

1300 General Settings Data Mapping Mode Disabled (Extended Speed Control Mode)

0 0

1300 General Settings Data Mapping Mode Enabled (Exclusive Owner Mode – User Data Mapping Mode*)

0 13

(01101)

1305 IP Address 1 192.168.1.51 0 192

1306 IP Address 2 192.168.1.51 0 168

1307 IP Address 3 192.168.1.51 0 1

1308 IP Address 4 192.168.1.51 0 51

1309 Subnet Mask 1 255.255.255.0 0 255

1310 Subnet Mask 2 255.255.255.0 0 255

1311 Subnet Mask 3 255.255.255.0 0 255

1312 Subnet Mask 4 255.255.255.0 0 0

1317 Ethernet Communication Settings

Parameters (P1305+) are used for Network Settings and DHCP is Disabled

0 3

(00000011)

1318 Prepend Output Assembly

Prepend Output Assembly Instance Number

0 21

1319 Prepend Input Assembly

Prepend Input Assembly Instance Number

0 71

1320 Read Process Data 1*

Data being Sent from Network Master to A800 Inverter (PID SetPoint 0.1%)

0 8244

1330 Write Process Data 1*

Data being Sent from A800 Inverter to Network Master (Input Power 0.01kW)

0 8205

1331 Write Process Data 2*

Data being Sent from A800 Inverter to Network Master (Output Voltage)

0 8195

Page 9: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-3

1332 Write Process Data 3*

Data being Sent from A800 Inverter to Network Master (PID Set point)

0 8244

1333 Write Process Data 4*

Data being Sent from A800 Inverter to Network Master (Output Current)

0 8194

1334 Write Process Data 5*

Data being Sent from A800 Inverter to Network Master (Freq Setting Value)

0 8197

1335 Write Process Data 6*

Data being Sent from A800 Inverter to Network Master (Motor Torque)

0 8199

1336 Write Process Data 7*

Data being Sent from A800 Inverter to Network Master (Conv Output Voltage)

0 8200

1337 Write Process Data 8*

Data being Sent from A800 Inverter to Network Master (Reg Brake Duty)

0 8201

1338 Write Process Data 9*

Data being Sent from A800 Inverter to Network Master (Thermal OL Relay)

0 8202

1339 Write Process Data 10*

Data being Sent from A800 Inverter to Network Master (Output Peak Current)

0 8203

1340 Write Process Data 11*

Data being Sent from A800 Inverter to Network Master (Conv Out Peak Voltage)

0 8204

1341 Write Process Data 12*

Data being Sent from A800 Inverter to Network Master (Output Power)

0 8206

1342 Write Process Data 13*

Data being Sent from A800 Inverter to Network Master (Load Meter)

0 8209

1343 Write Process Data 14*

Data being Sent from A800 Inverter to Network Master (Cum Energization Time)

0 8212

Figure 3.1 Base VFD Parameters

Page 10: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-4

Note: The above IP address and subnet mask are valid only for the validation system. Proper IP address and subnet mask need to be set up for the application in hand. *See Section 3.2 to calculate Parameter Value based upon what Monitor Item is needed.

Details of Parameter 1300 setting for User Data Mapping Example = 01101 = 13 Dec

Figure 3.1.1 Parameter 1300 Settings

Page 11: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-5

3.2 Calculating Read and Write Process Data Parameter Values Option Board Parameters 1320 thru 1343 are configure for Reading and Writing values using Implicit Messaging.

Parameters 1320 thru 1329 are for 10 values that the A800 Inverter Reads from the Network Master and 1330 thru 1343 are for 14 values that the A800 Inverter Writes to the Network Master.

Figure 3.2 Read and Write Definition

The Monitor Data (Item) Value in Hex is Offset by 2000 Hex then converted back to Decimal for entry into the appropriate Parameter Number.

Figure 3.2.1 Monitor Data Offset Table

Page 12: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-6

The below table from the A800 Inverter Manual details all the Monitor Data available Items that can be selected for Parameter Settings. Only PID Set point (52 Dec = 34 Hex) can be used as a READ item. All values (including PID Set point) can be used as a Write Item.

Figure 3.2.2 Monitor Data Items Table

Page 13: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-7

Using the above table and the proper Offset, in order to Read PID Set point* the Parameter value is calculated this way. This is from User Specific Mapping Example in the A800 Manual.

• 52 Dec = 34 Hex

• 34 Hex + 2000 Hex (Offset) = 2034 Hex

• 2034 Hex = 8244 Dec

Parameter 1320 = 8244

Figure 3.2.3 User Specific Mapping Read

Note: *In Order for the A800 Inverter to Read the PID Set point from the Network Master, the Inverter Must be in the PID Mode. Set Parameter 128 to either 60 or 61 for Network Mode.

Figure 3.2.4 PID P128 Network Setting

Page 14: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-8

Using the above table and the proper Offset, in order to Write Input Power the Parameter value is calculated this way. This is from User Specific Mapping Example in the A800 Manual.

• 13 Dec = D Hex

• D Hex + 2000 Hex (Offset) = 200D Hex

• 200D Hex = 8205 Dec

Parameter 1330 = 8205

Figure 3.2.5 User Specific Mapping Write

Page 15: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-9

Monitor Data available Items that can be selected for Parameter Settings and the Parameter Values.

Monitor Item Setting Value Parameter Value Output Freq/Speed 1 8193

Output Current 2 8194 Output Voltage 3 8195

Freq Setting Value/speed Setting 5 8197 Running Speed 6 8198 Motor Torque 7 8199

Converter Output Voltage 8 8200 Regenerative Brake Duty 9 8201

Electronic thermal O/L 10 8202 Output Peak Current 11 8203

Converter Output Peak 12 8204 Input Power 13 8205

Output Power 14 8206 Load Meter 17 8209

Motor Excitation Current 18 8210 Position Pulse 19 8211

Cumulative Energization Time 20 8212 Orientation Status 22 8214

Actual Operation Time 23 8215 Motor Load Factor 24 8216

Position Command (lower) 26 8218 Position Command (upper) 27 8219

Current Position (lower) 28 8220 Current Position (upper) 29 8221

Droop Pulse (lower) 30 8222 Droop Pulse (upper) 31 8223 Torque Command 32 8224

Torque Current Command 33 8225 Motor Output 34 8226

Feedback Pulse 35 8227 PID Set Point 52 8244

PID Measured Value 53 8245 PID Deviation 54 8246

Motor thermal load factor 61 8253 Inverter thermal load factor 62 8254 PTC Thermistor resistance 64 8256

PID Measured Value 2 67 8259 PLC Function analog Output 70 8262

Output Freq (High Speed) 201 8393 U Phase Output Current 202 8394 V Phase Output Current 203 8395

Page 16: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-10

W Phase Output Current 204 8396 Converter output Voltage 205 8397

Output Current (all 3 phases) 206 8398 Excitation Current (A) 207 8399

Torque Current (A) 208 8400 Terminal 2 209 8401 Terminal 4 210 8402 Terminal 1 211 8403

Excitation Current (%) 212 8404 Torque Current (%) 213 8405

Position Command (lower) 222 8414 Position Command (upper) 223 8415

Current Position (lower) 224 8416 Current Position (upper) 225 8417

Droop Pulse (upper) 226 8418 Droop Pulse (lower) 227 8419 Output Freq (signed) 230 8422

Motor Speed 231 8423 Speed Command 232 8424 Torque Command 235 8427

Motor Torque 236 8428 Excitation Current Command 237 8429

Torque Current Command 238 8430

Page 17: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-11

3.3 Supported Instances of Output and Input Assemblies There are five (5) Instances support by the A8NEIP_2P Option Module.

Instance Mode 20/70 Basic Speed Control 21/71 Extended Speed Control 22/72 Speed and Torque Control 23/73 Extended Speed and Torque Control 150/100 Exclusive Owner Control - Positioning Control/Transparent Output (Default) / User

Specific Data Mapping Control (P1300 Setting) Instances in RED are detailed in this QSG.

Output Assemblies:

Page 18: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-12

Figure 3.3 Output Instances

Page 19: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-13

Input Assemblies:

Page 20: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

3-14

Figure 3.3.1 Input Instances

Page 21: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-1

Chapter 4 RSLogix5000 Configuration

4.1 Electronic Data Sheet (EDS) File Import In RSLogix5000 from the Tools Menu, select EDS Hardware Installation Tool. Register a single file and Browse to the A8NEIP-2P.EDS File. Follow the Wizard until it is finished.

Page 22: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-2

4.2 Ethernet Device Setting

This QSG uses Implicit (I/O Data) Messaging, known as Cyclic Data Exchange in the Option Manual, between the PLC CPU and the VFD.

Under I/O Configuration select the 1769-L32E Ethernet Port (specific to your hardware), then Ethernet, then right-click and select New Module.

Figure 4.2 Ethernet Module Selection

Page 23: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-3

Under Select Module Type select AC Drive Device, HMS-A8N, and then Create.

Figure 4.2.1 Ethernet Module Selection Window

Page 24: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-4

For Extended Speed Control Mode - Enter in Module Properties:

• Module Name (A800EIP) – TAG Name is generated from this Name.

• IP Address (192.168.1.51) – The VFD IP Address.

Assuming the PLC IP Address is 192.168.1.xxx (xxx = 100 in this QSG)

Figure 4.2.2 Module Properties Window

Then Select Change… under the Module Definition Section.

Page 25: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-5

Enter in following Properties:

• Revision (1.1) – Only the minor revision number can be changed.

• Electronic Keying (Compatible Mode) – From Pull Down Menu

• Name (Extended Speed Control) – From Pull Down Menu

• Size (INT) – 2 will be automatically updated when INT is selected

• Tag Suffix (1) – Module Name will automatically be updated

Figure 4.2.3 Module Definition Window

Select OK when finished to complete this process.

Page 26: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-6

For Exclusive Owner Control Mode - Enter in Module Properties:

• Module Name (A800EIP_Custom) – TAG Name is generated from this Name.

• IP Address (192.168.1.51) – The VFD IP Address.

Assuming the PLC IP Address is 192.168.1.xxx (xxx = 100 in this QSG)

Figure 4.2.4 Module Properties Window

Then Select Change… under the Module Definition Section.

Page 27: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-7

Enter in following Properties:

• Revision (1.1) – Only the minor revision number can be changed.

• Electronic Keying (Compatible Mode) – From Pull Down Menu

• Name (Exclusive Owner) – From Pull Down Menu

• Size (INT), Input: (16), Output (3) – When using all 14 User Mapped Inputs and 1 User Mapped Output, 2 Inputs and 2 outputs are automatically used by Instance 21/71.

• Tag Suffix (1) – Module Name will automatically be updated

Figure 4.2.5 Module Definition Window

Select OK when finished to complete this process.

Page 28: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-8

4.3 EtherNet/IP A800 Controller Tags

For Extended Speed Control Mode, Two A800 Input Tags (16 bit words) and two A800 Output Tags (16 bit words) are Automatically Created based upon Module Definition settings.

Figure 4.3 EtherNet/IP Controller Tags

The two A800 Input Instances and two A800 Output Instances are described in the Option Manual.

Input Instance of 71

• A800EIP:I1.Data(0) = Byte 0 and Byte 1 = Bit Status Feedback from VFD.

• A800EIP:I1.Data(1) = Byte 2 and Byte 3 = Speed (RPM) Feedback from VFD.

Figure 4.3.1 EtherNet/IP Input Instance 71.

Page 29: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-9

Output Instance of 21

• A800EIP:O1.Data(0) = Byte 0 and Byte 1 = Bit Commands to VFD.

• A800EIP:O1.Data(1) = Byte 2 and Byte 3 = Speed (RPM) Command to VFD.

Figure 4.3.2 EtherNet/IP Output Instance 21

If you want the VFD to accept Bit Control Commands and Speed Reference Commands, A800EIP:O1.Data(0) (Byte 0) Bit5 and Bit6 must be forced ON in PLC Code.

Page 30: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-10

For Exclusive Owner Control Mode, Sixteen A800 Input Tags (16 bit words) and three A800 Output Tags (16 bit words) are Automatically Created based upon Module Definition settings.

Figure 4.3.3 EtherNet/IP Controller Tags

The sixteen A800 Input Instances and three A800 Output Instances are described in the Option Manual.

Page 31: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-11

Input Instance of 100

• A800EIP:I1.Data(0) = Byte 0 and Byte 1 = Bit Status Feedback from VFD.

• A800EIP:I1.Data(1) = Byte 2 and Byte 3 = Speed (RPM) Feedback from VFD.

• A800EIP:I1.Data(2) through A800EIP:I1.Data(15) = Write Process Data Values as setup in Parameters 1330 thru 1343.

Figure 4.3.4 EtherNet/IP Input Instance 100.

Output Instance of 150

• A800EIP:O1.Data(0) = Byte 0 and Byte 1 = Bit Commands to VFD.

• A800EIP:O1.Data(1) = Byte 2 and Byte 3 = Speed (RPM) Command to VFD.

• A800EIP:O1.Data(2) = Byte 4 and Byte 5 = Read Process Data as setup in Parameter 1320

Figure 4.3.5 EtherNet/IP Output Instance 150

If you want the VFD to accept Bit Control Commands and Speed Reference Commands, A800EIP:O1.Data(0) (Byte 0) Bit5 and Bit6 must be forced ON in PLC Code.

Page 32: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-12

4.4 Rockwell User-Defined Data Types and Sample Code

Three User-Defined Data Types are used in this example for each Mode.

All the Input Instance and Output Instance Groups are defined in MitsubishiVFD_Simple_UDT.

For the Extended Speed Control Mode:

Figure 4.4 Rockwell UDT Tags Setup

All the Command Bits and Words (Out) are defined in MitsubishiVFD_Command_UDT

Figure 4.4.1 Command Data Type

Page 33: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-13

All the Status Bits and Words (In) are defined in MitsubishiVFD_Status_UDT

Figure 4.4.2 Status Data Type

Page 34: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-14

For the Exclusive Owner Control Mode:

Figure 4.4.3 Rockwell UDT Tags Setup

All the Command Bits and Words (Out) are defined in MitsubishiVFD_CommandCustom_UDT

Figure 4.4.4 Command Custom Data Type

Page 35: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-15

All the Status Bits and Words (In) are defined in MitsubishiVFD_StatusCustom_UDT

Figure 4.4.5 Status Custom Data Type

Page 36: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-16

Two new Controller Tags are then created.

Each based upon the User-Defined Tags - MitsubishiVFD.In and MitsubishiVFD.Out as shown below.

For the Extended Speed Control Mode:

Figure 4.4.6 Controller Tags

For the Exclusive Owner Control Mode:

Figure 4.4.7 Controller Tags

Page 37: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-17

The following screen shot shows the simple code (COP Instruction) that can be used to move the data to and from the VFD to the proper data tags set up in the Rockwell PLC as shown above.

For Extended Speed Control Mode:

Figure 4.4.7 Sample Code

For the Exclusive Owner Control Mode:

Figure 4.4.8 Sample Code

Page 38: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-18

4.5 Rockwell Add-On Instruction (AOI) and Sample Code

AOIs are Rockwell Function Blocks that can be imported into any RSLogix5000 program. Once Imported then can be selected from the Add-On Tab in the editor. To Import an AOI file (*.L5X) right click on “Add-On Instructions” in the Controller Organizer and select “Import Add-On Instruction…”.

One AOIs example is provided. It will work in the Extended Speed Control Mode and in the Exclusive Owner Control Mode where Output Assembly Instance 21 and Input Assembly Instance 71 are used. Parameter 1318 (21) and 1319 (71) in User Defined Data Mapping Mode.

A8EIP_2P_ACDC_Drive_Profile_AOI

Figure 4.5 A8EIP_2P_ACDC_Drive_Profile_AOI

Page 39: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-19

Figure 4.5.1 A8EIP_2P_ACDC_Drive_Profile_AOI Block

The program examples include two sub programs being called from the “Main Routine” Program. The “Sample1_UDT” runs the demo program using the User Defined Data Types and the “Sample2_AOI” runs the demo program using the AOI. The two sub programs cannot be called at the same time.

Figure 4.5.2 Main Task Program Structure

An AOI Library File (*.L5X) has also been created and included with the QSG.

A8NEIP_2P_ACDC_Drive_Profile_AOI.L5X – RSLogix5000 AOI File

Page 40: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-20

In order to use the AOIs you need to create Controller Tags or Program Tags as Inputs and Outputs for each AOI used. In the program examples the AOIs use Program Tags.

These include:

1. Internal I/O data Tag

a. acdc_aoi

2. Sub Program Call Tags

a. ControlByAOI and ControlByUDT

3. Local I/O Tags

a. net_ctrl, net_ref, reset, run_fwd, run_rev, speed_ref (created by the user, one set for each AOI instance used)

b. Read, Write, Start_Fwd, Start_Rev (Local Bit Control for VFD and Parameter Read, Write)

c. VFD_PID_SP, VFD_SPEED_RPMs (Writing Register Values to VFD)

Figure 4.5.3 Controller Tags Example

Page 41: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-21

4.6 Rockwell Explicit Messaging and Sample Code

In order to Read and Write Parameters Explicit Messaging (Acyclic Data Exchange) MUST be used. There is no way to do this using Implicit (I/O) Messaging. This is accomplished using MESSAGE Tags and the MSG Command. See Section 9.2 of the Option Manual.

1. Create Controller Tags (MESSAGE Tags can only be Controller Tags)

a. GetParamMsg (Data Type: MESSAGE)

b. SetParamMsg (Data Type: MESSAGE)

c. Parameter_Feedback (Data Type: DINT)

d. Parameter_Source (Data Type: DINT)

Figure 4.6 Controller Tags

2. Create a MSG Block and assign it the “GetParamMsg” Tag to Read a Parameter.

Figure 4.6.1 Read Parameter MSG Block

Page 42: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-22

3. Click on the “…” key in the Message Block to open the Message Configuration Window. Enter the following data.

a. Message Type = CIP Generic

b. Service Type = Get Attribute Single

c. Class = a2 Hex (See Section A.12 of Option Manual)

d. Instance = Parameter Number (Parameter Value in Hex + 1000 Hex then converted to Decimal). For example Parameter 7 = (7 + 1000 Hex) = 1007 Hex = 4103 Decimal

Figure 4.6.2 Parameter Number Offset

e. Attribute = 5 Hex

f. Destination Element = “Parameter_Feeback” Tag

Figure 4.6.3 GetParamMsg Configuration

Page 43: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-23

4. Select the Communication Tab. Browse to the Communication Path. Use either “A800EIP” or “A800EIP_Custom” depending upon the Mode used.

Figure 4.6.4 GetParamMsg Communication

Page 44: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-24

5. Select the Tag Tab. The Tag “GetParamMsg” should automatically be entered.

Figure 4.6.5 GetParamMsg Tag

6. Create a MSG Block and assign it the “SetParamMsg” Tag to Write a Parameter

Figure 4.6.6 SetParamMsg MSG Block

Page 45: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-25

7. Click on the “…” key in the Message Block to open the Message Configuration Window. Enter the following data.

a. Message Type = CIP Generic

b. Service Type = Set Attribute Single

c. Class = a2 Hex (See Section A.12 of Option Manual)

d. Instance = Parameter Number (Parameter Value in Hex + 1000 Hex then converted to Decimal). For example Parameter 7 = (7 + 1000 Hex) = 1007 Hex = 4103 Decimal

Figure 4.6.7 Parameter Number Offset

e. Attribute = 5 Hex

f. Source Element = “Parameter_Source” Tag

g. Source Length = 4 Bytes

Figure 4.6.8 SetParamMsg Configuration

Page 46: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-26

8. Select the Communication Tab. Browse to the Communication Path. Use either “A800EIP” or “A800EIP_Custom” depending upon the Mode used.

Figure 4.6.9 SetParamMsg Configuration

Page 47: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

4-27

9. Select the Tag Tab. The Tag “SetParamMsg” should automatically be entered.

Figure 4.6.10 SetParamMsg Tag

10. Create Program to Toggle each MSG Command On/Off as needed. This example uses the Read and Write Tags (Bits) in front of each needed command.

Figure 4.6.11 MSG Commands in Code

11. Parameter_Source Tag is where you enter the Parameter Value to be Written and Parameter_Feedback Tag is where the Parameter Value that is Read is stored.

Page 48: Connecting a Rockwell Logix CPU Using EtherNet/IP ...omniray.ch.sabon.ch-meta.net/tl_files/Katalog/Handbuecher/... · 2.2 CompactLogix ... 1769-L32E (Firmware 20.12) Address:

Rev-1

Terminology

Implicit (I/O Data) Messaging

Connections are established to move application-specific I/O data at regular intervals. These connections often are set up as one-to-many relationships in order to take full advantage of the producer-consumer multicast model. Implicit messaging uses UDP/IP resources to make multicast data transfers over Ethernet a reality.

Explicit Messaging Point-to-point relationships that are established to facilitate request-response transactions between two nodes. These connections are general purpose in nature and can be used to reach any network-accessible items within a device. Explicit messaging connections utilize TCP/IP services to move messages across Ethernet.

EtherNet/IP EtherNet/IP is the name given to the Common Industrial Protocol (CIP), as implemented over standard Ethernet (IEEE 802.3 and the TCP/IP protocol suite).

User Defined Data Type (UDT)

User-defined data types allow a user to organize the data to match a machine or process. This streamlines program development and creates self-documenting code that is easier to maintain. A user-defined data type stores all the data related to a specific aspect of a system. This keeps related data together and easy to locate, regardless of its data type.

Add On Instruction (AOI)

Add On Instructions are Rockwell Function Blocks (Self-contained Programs) that can be imported into any RSLogix5000 program to be called (used) as needed.

Electronic Data Sheet (EDS)

EDS files are simple text files used by network configuration tools to help you identify products and easily commission them on a network.

Common Industrial Protocol (CIP)

The Common Industrial Protocol (CIP) is a media independent, connection-based, object-oriented protocol designed for automation applications. It encompasses a comprehensive set of communication services for automation applications: control, safety, synchronization, motion, configuration and information.

Revisions

December 2013 – Document Created and Published V1.0

January 2014 – Minor error corrections and updates V1.1

All Rockwell Hardware and Software Images are Copyright © 2014 Rockwell Automation, Inc. All Rights Reserved.