Allen-Bradley ControlLogix User manual
Advertisement
Advertisement
Allen-Bradley
ControlLogix
ControlNet Interface
Module
(Cat. No. 1756-CNB, -CNBR)
User Manual
Important User Information
Because of the variety of uses for the products described in this publication, those responsible for the application and use of this control equipment must satisfy themselves that all necessary steps have been taken to assure that each application and use meets all performance and safety requirements, including any applicable laws, regulations, codes and standards.
The illustrations, charts, sample programs and layout examples shown in this guide are intended solely for purposes of example. Since there are many variables and requirements associated with any particular installation,
Allen-Bradley does not assume responsibility or liability (to include intellectual property liability) for actual use based upon the examples shown in this publication.
Allen-Bradley publication SGI-1.1, Safety Guidelines for the Application,
Installation and Maintenance of Solid-State Control (available from your local Allen-Bradley office), describes some important differences between solid-state equipment and electromechanical devices that should be taken into consideration when applying products such as those described in this publication.
Reproduction of the contents of this copyrighted publication, in whole or part, without written permission of Rockwell Automation, is prohibited.
Throughout this manual we use notes to make you aware of safety considerations:
!
ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage or economic loss
Attention statements help you to:
• identify a hazard
• avoid a hazard
• recognize the consequences
Important: Identifies information that is critical for successful application and understanding of the product.
ControlLogix and PLC-5 are trademarks of Rockwell Automation.
ControlNet is a trademark of ControlNet International, Ltd.
RSLogix5, RSLogix5000, and RSNetWorx are trademarks of Rockwell Software, Inc.
Windows 95 and Windows NT are trademarks of Microsoft Corporation.
European Communities (EC)
Directive Compliance
If this product has the CE mark, it is approved for installation within the
European Union and EEA regions and has been designed and tested to meet the following directives.
EMC Directive
This product is tested to meet the Council Directive 89/336/EC
Electromagnetic Compatibility (EMC) by applying the following standards, in whole or in part, documented in a technical construction file:
•
EN 50081-2 EMC — Generic Emission Standard, Part 2 — Industrial
Environment
•
EN 50082-2 EMC — Generic Immunity Standard, Part 2 — Industrial
Environment
This product is intended for use in an industrial environment.
Low Voltage Directive
This product is tested to meet Council Directive 73/23/EEC Low Voltage, by applying the safety requirements of EN 61131-2 Programmable
Controllers, Part 2 - Equipment Requirements and Tests. For specific information required by EN 61131-2, see the appropriate sections in this publication, as well as the Allen-Bradley publication Industrial Automation
Wiring and Grounding Guidelines For Noise Immunity, publication
1770-4.1.
This equipment is classified as open equipment and must be mounted in an enclosure during operation to provide safety protection.
Preface
Using This Manual
What the Preface Contains
This manual describes how to use the 1756-CNB or 1756-CNBR
ControlNet interface modules
(1)
to communicate over a ControlNet network. This preface explains how to use this manual most effectively.
For information about
Who Should Use This Manual
How To Use This Manual
About the Example Applications
System Components
Common Techniques Used in This Manual
Where to Find More Information
Rockwell Automation Support
See page
Who Should Use This Manual
Use this manual if you are knowledgeable about ControlLogix products, but need information about integrating them into a ControlNet network. You should:
• be familiar with Microsoft® Windows® NT and with terms that describe what you should be doing when working in Windows NT, e.g., double click, dialog box, radio button.
• understand basic networking concepts.
• be familiar with Logix5550 and PLC-5C controllers and ladder logic programming using RSLogix5 and RSLogix5000 software.
If you are not familiar with these products and concepts or would like
additional information, refer to the documentation listed on page P-5 or
contact your Rockwell Automation representative for information about available training.
How To Use This Manual
Chapter 1 of this manual provides an overview of ControlNet communications. Chapter 2 describes how to install the ControlLogix and
PLC-5C modules and connect them to the network. Chapter 12 provides information on troubleshooting the 1756-CNB module. The remainder of this manual (chapters 3 through 11) presents example applications of scheduled and unscheduled communications among Logix5550 controllers and PLC-5C controllers, and between a local Logix5550 controller and remote I/O.
(1)
Unless noted otherwise, for the rest of this manual 1756-CNB refers to both of these modules.
1756-6.5.3 - December 1999
P-2
About the Example
Applications
The example applications are intended to provide you with enough information to get your own network up and running. We recommend that you set up and run the example applications and use them as a guide for setting up your own system.
The example applications presented in this manual are as follows:
•
Logix5550 controller to Logix5550 controller:
– unscheduled messaging (chapter 3)
– scheduled communications (chapter 4)
•
Logix5550 controller to PLC-5C:
– unscheduled messaging (chapter 5)
– scheduled communications (chapter 6)
•
PLC-5C to Logix5550 controller:
– unscheduled messaging (chapter 7)
– scheduled communications (chapter 8)
•
Bridging unscheduled messages from a PLC-5C on one ControlNet
network to a PLC-5C on another ControlNet network (chapter 9)
•
•
Adding I/O to an existing network (chapter 11)
Here’s an example of one type of system you’ll be creating:
Slot 0 1 Slot 1 2 3
Local
Chassis
Message
Remote
Chassis
Logix5550
Controller
1756-CNB
(Node 1)
1756-CNB
ControlNet Network
(Node 6)
1756-OB16I
Digital Output
1756-IB16
Digital Input
PC with
1784-KTCX15
Interface
1756-6.5.3 - December 1999
P-3
We used the following main components to set up the example applications:
System Components
Quantity Product Name Catalog Number
3
3
3
Hardware
ControlLogix chassis
ControlLogix power supply
ControlLogix ControlNet Interface Module
1756-A4, (or -A7, -A13, -A13,
-A17)
1756-PA72, -PB72
1756-CNB, (or -CNBR)
1
1
1
1
1
2
2
Logix5550 controller
PLC-5 processor, ControlNet version
ControlNet Communication Interface Card
Analog Output Module
Digital Input Module
Digital Output Module personal computer that supports RSLogix software
1756-L1
1785 -L40C15
1784-KTCX15
1756-OF6VI
1756-IB16
1756-0B16I any appropriate model running
Windows 95/98 or NT 4.0
associated wiring and cabling as needed
Software
RSLinx 1
1
1
RSLogix5 programming software
RSLogix5000 programming software
9355-WAB, -WABOEM, -WABC
(Windows 95/98, NT 4.0)
9324-RL5300ENE
(Windows 95/98, NT 4.0)
9324-RLD300ENE
(Windows 95/98, NT 4.0)
1 RSNetWorx for ControlNet software 9357-CNETL3
(Windows 95/98, NT 4.0)
(1)
(2)
Version 2.10 may also be used. See Appendix D.
Series Firmware
Revision
A
A
A
A
-
A
-
B
(1)
A
D
-
-
-
-
-
-
2.10
2.4
1.5
-
4.41
C
-
1.5
Version
2.10
3.21
2.25
(2)
1.80
1756-6.5.3 - December 1999
P-4
Common Techniques Used in This Manual
The following conventions are used throughout this manual:
•
Numbered lists provide sequential steps.
•
Bulleted lists provide information, not procedural steps.
•
Text in
bold font
indicates words or phrases you should type, programming windows, and menu selections.
•
Pictures of keys and/or screens and windows represent the actual keys you press or the screens and windows you use (see the following figure).
We use this symbol to call attention to helpful information.
1756-6.5.3 - December 1999
Where to Find More
Information
0RUH
Refer to the following publications as needed for additional help when setting up and using your ControlNet network:
For information about See this publication
network cabling and wiring ControlNet Cable Planning and Installation Guide the ControlLogix ControlNet Interface Module ControlLogix ControlNet Bridge Installation Instructions the ControlLogix Chassis
ControlLogix power supplies
Logix5550 programmable controllers
PLC-5 programmable controllers
ControlLogix Chassis Installation instructions
ControlLogix Power Supplies Installation Instructions
Logix5550 Controller User Manual
Enhanced PLC-5 Programmable Controller Quick Start
Publication number
1786-6.2.1
1756-5.71
1756-5.2
1756-5.1
1756-6.5.12
1785-10.4
ControlNet PLC-5 Programmable Controller Quick Start 1785-10.7
ControlNet PLC-5 Programmable Controller User Manual 1785-6.5.22
ControlLogix Analog I/O modules
ControlLogix Digital I/O modules
PC communication interface cards
RSLogix5 programming software
RSLogix5000 programming software
RSNetWorx for ControlNet software
RSLinx Lite software current Allen-Bradley documentation, including ordering instructions terms and definitions
ControlLogix Analog I/O Users Manual
ControlLogix Digital I/O Users Manual
1756-6.5.9
1756-6.5.8
1784-KTX15 Communication Interface Card User Manual 1784-6.5.22
Getting Results with RSLogix5 9399-RL53GR
Getting Results with RSLogix5000 9399-RLD300GR
Getting Results with RSLogix with RSNetWorx for ControlNet 9399-RWCNTGR
RSLinx Lite User’s Guide
Allen-Bradley Publication Index
9399-WAB32LUG
SD499
Allen-Bradley Industrial Automation Glossary AG-7.1
Many of these manuals are available online from the Automation
Bookstore, http://www.theautomationbookstore.com.
For more information on Rockwell Software products, visit the Rockwell
Software internet site, http://www.software.rockwell.com.
P-5
Rockwell Automation Support
Rockwell Automation offers support services worldwide, with over 75 sales/support offices, 512 authorized distributors, and 260 authorized systems integrators located throughout the United States alone, plus
Rockwell Automation representatives in every major country in the world.
Local Product Support
Contact your local Rockwell Automation representative for:
• sales and order support
• product technical training
• warranty support
• support service agreements
1756-6.5.3 - December 1999
P-6
Technical Product Assistance
If you need to contact Rockwell Automation for technical assistance, call your local Rockwell Automation representative.
Your Questions or Comments about This Manual
If you find a problem with this manual, please notify us of it on the enclosed
Publication Problem Report (at the back of this manual).
If you have any suggestions about how we can make this manual more useful to you, please contact us at the following address:
Rockwell Automation, Allen-Bradley Company, Inc.
Control and Information Group
Technical Communication
1 Allen-Bradley Drive
Mayfield Heights, OH 44124-6118
Telephone Number: 1 440 646-6800
1756-6.5.3 - December 1999
ControlNet
Communication Basics
Installing the
ControlNet Network
Logix5550 to Logix5550
Controller: Unscheduled
Messaging
Logix5550 to Logix5550
Controller: Scheduled
Communication
Table of Contents
Chapter 1
What This Chapter Contains. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Module Versions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Before you go any further . . .. . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Module Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Support for up to 64 Bidirectional Connections . . . . . . . . . . . 1-2
Bridging Unscheduled Data . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Understanding the Producer/Consumer Model . . . . . . . . . . . . . . 1-4
Processing Produced and Consumed Tags . . . . . . . . . . . . . . . 1-5
Control of Scheduled I/O Communications . . . . . . . . . . . . . . 1-6
Understanding the Control and Information Protocol . . . . . . . . . 1-6
Understanding the Network Keeper . . . . . . . . . . . . . . . . . . . . . . . 1-7
Network Update Time (NUT) . . . . . . . . . . . . . . . . . . . . . . . . 1-7
Requested Packet Interval (RPI). . . . . . . . . . . . . . . . . . . . . . . 1-7
Actual Packet Interval (API) . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Rack Optimized and Direct Connections . . . . . . . . . . . . . . . . 1-8
Default Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
Chapter 2
What this Chapter Contains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Installing the 1784-KTCX15 Communication Interface Card . . . 2-2
Configuring the 1784-KTCX15 Card. . . . . . . . . . . . . . . . . . . 2-3
Installing the ControlLogix Modules . . . . . . . . . . . . . . . . . . . . . . 2-5
Connecting the ControlNet Network . . . . . . . . . . . . . . . . . . . . . . 2-7
Installing the PLC-5C Controllers . . . . . . . . . . . . . . . . . . . . . . . . 2-9
Required Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Chapter 3
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Set Up the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Create the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Create the Controller Tags for the Write Message Program . 3-3
Create the Write Message Ladder Program . . . . . . . . . . . . . . 3-4
Download and Run the Program . . . . . . . . . . . . . . . . . . . . . . 3-6
Test the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Create the Controller Tags for the Test Program . . . . . . . . . . 3-7
Download the Test Program . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Test the Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
Chapter 4
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
Set Up the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
Create the Producer Application. . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Create the Producer Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
Create the Producer Ladder Program . . . . . . . . . . . . . . . . . . . 4-5
Download to the Producer . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
1756-6.5.3 - December 1999
ii
Chapter 4 (continued)
Configure the Consumer Logix5550 Controller . . . . . . . . . . . . . . 4-6
Add the Producer to the I/O Configuration of the Consumer . 4-6
Create the Consumer Tags . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
Download to the Consumer. . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
Schedule the Network Using RSNetWorx for ControlNet . . . . . 4-16
Verify the Network Properties . . . . . . . . . . . . . . . . . . . . . . . 4-17
Test the Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
Logix5550 Controller to PLC-5C:
Unscheduled Messaging
Chapter 5
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Set Up the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Create the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Create the Controller Tags for the Write Message Program. . 5-3
Create the Write Message Ladder Program . . . . . . . . . . . . . . 5-4
Download the Write Message Program . . . . . . . . . . . . . . . . . 5-6
Test the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Logix5550 Controller to PLC-5C:
Scheduled Communications
Chapter 6
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Set Up the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Create the Logix5550 Producer Application . . . . . . . . . . . . . . . . 6-2
Create the Producer Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Create the Producer Ladder Program . . . . . . . . . . . . . . . . . . . 6-5
Download and Run the Program . . . . . . . . . . . . . . . . . . . . . . . 6-6
Schedule the Network Using RSNetWorx for ControlNet . . . . . . 6-7
Verify the Network Properties . . . . . . . . . . . . . . . . . . . . . . . . 6-9
Survey the Network for Connected Devices. . . . . . . . . . . . . 6-10
Configure the PLC-5C to Receive Scheduled Messages . . . 6-11
Test the Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
PLC-5C to Logix5550 Controller:
Unscheduled Messaging
Chapter 7
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
Set Up the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
Create the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
Create the PLC-5C Program . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
Download the PLC-5C Program . . . . . . . . . . . . . . . . . . . . . . . 7-5
Test the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
Create the Controller Tags for the Logix5550 Controller. . . . 7-8
Download the Logix5550 Program. . . . . . . . . . . . . . . . . . . . 7-10
Verify the Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11
PLC-5C to Logix5550 Controller:
Scheduled Communications
Chapter 8
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
Set Up the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
Configure the Network Using RSNetWorx for ControlNet . . . . . 8-2
Verify the Network Properties . . . . . . . . . . . . . . . . . . . . . . . . 8-4
1756-6.5.3 - December 1999
iii
Chapter 8 (continued)
Survey the Network for Connected Devices . . . . . . . . . . . . . 8-5
Configure the PLC-5C Processor . . . . . . . . . . . . . . . . . . . . . . 8-6
Configure the Consumer Logix5550 Controller. . . . . . . . . . . . . . 8-9
Add the Producer to the I/O Configuration . . . . . . . . . . . . . 8-10
Create the Consumer Tags . . . . . . . . . . . . . . . . . . . . . . . . . . 8-13
Download the Logix5550 Program . . . . . . . . . . . . . . . . . . . 8-17
Create the Producer Application. . . . . . . . . . . . . . . . . . . . . . . . . 8-18
Create the PLC-5C Program. . . . . . . . . . . . . . . . . . . . . . . . . 8-19
Download the PLC-5C Program. . . . . . . . . . . . . . . . . . . . . . 8-19
Schedule the Network. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-22
Verify the Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-23
PLC-5C to PLC-5C Unscheduled
Messaging Over Two
ControlNet Networks
Chapter 9
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
Set Up the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
Create the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
Create the Ladder Program. . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3
Download the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5
Test the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6
Controlling I/O Over a
ControlNet Network
Adding an I/O Chassis to an
Existing ControlNet Network
Chapter 10
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . 10-1
Set Up the Example Application . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Create the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Add the Local CNB Module to the I/O Configuration . . . . . 10-3
Add the Remote CNB Module to the I/O Configuration . . . 10-4
Add the Remote I/O Modules to the I/O Configuration . . . . 10-7
Edit the Controller Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-11
Create the Ladder Logic Program . . . . . . . . . . . . . . . . . . . 10-12
Download the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-12
Schedule the Network Using RSNetWorx for ControlNet. . . . 10-13
Verify the Network Properties . . . . . . . . . . . . . . . . . . . . . . 10-15
Survey the Network for Connected Devices . . . . . . . . . . . 10-16
Schedule the Network and Save the Configuration . . . . . . 10-17
Test the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . 10-18
Chapter 11
About the Example Application . . . . . . . . . . . . . . . . . . . . . . . . . 11-1
Set Up the Example Application . . . . . . . . . . . . . . . . . . . . . . . . 11-2
Create the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . 11-2
Add the Second Remote 1756-CNB Module
to the I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Add the Remote Analog I/O Module
to the I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
Edit the Controller Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-9
Modify the Ladder Program . . . . . . . . . . . . . . . . . . . . . . . . 11-10
1756-6.5.3 - December 1999
iv
Troubleshooting
Allocating Communication
Connections
Chapter 11 (continued)
Download the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-10
Schedule the Network Using RSNetWorx for ControlNet . . . . 11-11
Verify the Network Properties . . . . . . . . . . . . . . . . . . . . . . 11-13
Survey the Network for Connected Devices. . . . . . . . . . . . 11-14
Schedule the Network and Save the Configuration . . . . . . 11-15
Test the Example Application. . . . . . . . . . . . . . . . . . . . . . . . . . 11-16
Adding 1756-CNB Modules to Expand the Network . . . . . . . . 11-17
Chapter 12
Module Status Indicator and Display . . . . . . . . . . . . . . . . . . 12-1
ControlNet Network Status Indicators . . . . . . . . . . . . . . . . . 12-3
Appendix A
What This Appendix Contains . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
How the ControlLogix System Uses Connections . . . . . . . . . . . . A-1
Determining Connections for I/O Modules . . . . . . . . . . . . . . . . . A-2
Direct connections for I/O modules . . . . . . . . . . . . . . . . . . . . A-2
Rack optimized connections for I/O modules. . . . . . . . . . . . . A-3
Combining direct and rack optimized connections. . . . . . . . . A-5
Determining Connections for Produced and Consumed Tags . . . A-6
Connections for produced tags . . . . . . . . . . . . . . . . . . . . . . . . A-6
Optimizing produced tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7
Connections for consumed tags . . . . . . . . . . . . . . . . . . . . . . . A-7
Determining Connections for Messaging . . . . . . . . . . . . . . . . . . . A-8
Determining Total Connection Requirements . . . . . . . . . . . . . . . A-9
Creating Produced and
Consumed Tags
Electronic Keying
Appendix B
What This Appendix Contains . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1
Produced Tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1
Consumed Tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-3
Producing a tag from a Logix5550 Controller
to a ControlNet PLC-5 Processor . . . . . . . . . . . . . . . . . . . . . . . . . B-5
Consuming a tag from a ControlNet PLC-5 Processor
to a Logix5550 Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-5
Appendix C
Specifying Electronic Keying . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
Setting Paths for Downloads in
RSLogix5000, Version 2.10
Appendix D
Communications Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-1
Index
1756-6.5.3 - December 1999
ControlNet Communication Basics
Chapter
1
What This Chapter Contains
This chapter provides an overview of the primary features and requirements of ControlNet communication using the 1756-CNB module.
For information about
Module Versions
Support for up to 64 Bidirectional Connections
Bridging Unscheduled Data
Understanding the Producer/Consumer Model
Processing Produced and Consumed Tags
Control of Scheduled I/O Communications
Understanding the Control and Information Protocol
Understanding the Network Keeper
Network Update Time (NUT)
Requested Packet Interval (RPI)
Actual Packet Interval (API)
Rack Optimized and Direct Connections
Default Parameters
See page
Module Versions
The ControlLogix ControlNet interface module is available in redundant
(1756-CNBR) and non-redundant (1756-CNB) configurations. Either version may be used in the example applications, but for simplicity, we refer to both as the 1756-CNB module.
For further information on the differences between using the redundant and non-redundant versions of the 1756-CNB module in your network, refer to the ControlNet Cable Planning and Installation Manual, publication
1786-6.2.1.
Before you go any further . . .
The example applications use series B (firmware version 2.10) 1756-CNB modules. If you currently have series A modules, you can obtain free firmware upgrades to series B by contacting Rockwell Technical Support.
1756-6.5.3 - December 1999
1-2
ControlNet Communication Basics
Module Features
The 1756-CNB module performs two primary tasks:
1. control of I/O data in conjunction with a Logix5550 controller
(scheduled data)
2. support of messaging data for configuration and programming information (unscheduled data)
The 1756-CNB module has these primary features:
• support for a maximum of 64 bidirectional connections with other
ControlNet devices
• support of up to 20 buffers for unconnected messages
• bridging of unscheduled data (messaging and programming information)
• control of scheduled I/O and scheduled data (in conjunction with a
Logix5550 controller)
Support for up to 64 Bidirectional Connections
A connection is an open communication path between the data producer and the data consumer on the network. The connection includes information about the location of the consumer that significantly decreases the data overhead. By contrast, an unconnected message is a traditional message that uses the network address of the target device and the data address within the target.
The 1756-CNB module supports a maximum of 64 bidirectional connections. These connections can be any mix of unscheduled and scheduled connections. If your application requires more connections, you can place additional 1756-CNB modules in the same chassis and on the same network as the first module to provide additional connections.
Important: The number of connections that can actually be supported on a network is dependent upon the network configuration. For example, only 10 to 12 connections can be supported at an RPI
(requested packet interval) of 5ms, and only 4 at an RPI of 2ms.
Important: If you choose to use additional modules to provide additional connections, be sure to partition your application so that it best
uses the additional modules. See page 11-17 for an example
network.
1756-6.5.3 - December 1999
ControlNet Communication Basics
1-3
Bridging Unscheduled Data
Unscheduled messaging is data transfer or communication between controllers that is triggered by the program (i.e., the message instruction) and uses one or more of the communication protocols, including
ControlNet. Unscheduled messaging allow you to send and receive data when needed.
ControlLogix bridges transfer unscheduled data from one network protocol
(ControlNet, DeviceNet, Ethernet) to the ControlLogix backplane and vise versa. The 1756-CNB module bridges unscheduled data, such as messaging and programming information, between its ControlLogix backplane and the
ControlNet network.
Side of Module
Backplane = 1
ControlNet “wire” = 2
Redundant media connector
(1756-CNBR module only)
1 ss
2 nn
To properly route the messages that it receives, the 1756-CNB must be supplied with the correct path information.To route an unscheduled message through the ControlLogix backplane, a path segment of “1 ss” is first required, where ss is the slot number of the module the message is being sent to. To route the message through the ControlNet network, a path segment of “2 nn” is required, where nn is the node number of the module the message is being sent to.
For example, to route an unscheduled message through a 1756-CNB module in chassis slot 3 through another 1756-CNB module at ControlNet node 6 in a different chassis, the path would be:
1, 3, 2, 6, . .
to backplane to backplane slot 3 to ControlNet node 6 onto ControlNet wire
The next device in the path could be a controller, an I/O device, a bridge to another communication protocol such as DeviceNet, etc.
1756-6.5.3 - December 1999
1-4
ControlNet Communication Basics
With the RSLogix5000 programming software the path is configured using the Communication tab in the Message Configuration window. See page
Understanding the
Producer/Consumer Model
In traditional I/O systems, controllers poll input modules to obtain their input status. Digital input modules in the ControlLogix system are not polled by a controller. Instead, the modules produce (“multicast”) their data either upon a change of state or periodically. The frequency of update depends upon the options chosen during configuration and where on the network the input module resides. The input module, therefore, is a producer of input data and the controller is a consumer of the data.
The controller can also produce data for other controllers to consume. The produced and consumed data is accessible by multiple controllers over the
ControlBus backplane and over the ControlNet network. This data exchange conforms to the producer/consumer model.
This manual provides examples of the producer/consumer model as it applies to ControlLogix and PLC-5C controllers.
Note that PLC-5 terminology differs slightly from that used by
ControlLogix. A PLC-5C “send scheduled message” is functionally equivalent to a ControlLogix “produced tag.” A PLC5 “receive scheduled message” is functionally equivalent to a ControlLogix “consumed tag.”
Important:
ControlLogix
Tag Type
Produced
(1)
Description Specify Using RSLogix5000 Software
Tags that the controller produced for other nodes to consume.
Tags whose values are produced by another controller.
•
Enabled for producing
•
Number of consumers allowed
•
Name of controller that owns the tag the local controller wants to consume
•
Tag name or instance that the local controller wants to consume
•
Data type of the tag to consume
•
Update interval of how often the local controller consumes the tag data
PLC-5C
Message Type
Send Scheduled Scheduled data that the PLC-5C produces for other nodes to consume.
Receive
Scheduled
(1)
Description
Scheduled data produced by another controller.
Specify Using the Map Editing Tool (MET) in RSNetWorx for ControlNet
•
Message number
•
Message Size
•
Node number sending the message onto ControlNet
•
Slot number of the controller that owns the tag the PLC-5C wants to receive
•
Tag name or instance that the PLC-5C wants to receive
•
Requested Packet Interval
•
Message Size
Produced and consumed tags must be controller-scoped tags of DINT or REAL data type, or in an array or structure.
1756-6.5.3 - December 1999
ControlNet Communication Basics
1-5
See the chapters on scheduled communications for examples of creating produced/consumed tags and send/receive scheduled messages.
producer
Processing Produced and Consumed Tags
In the producer/consumer model, the consumer is the connection originator
(it opens the connection). When several consumers are trying to open the connection to the same tag, the connection will be opened to transfer data at the rate of the consumer with the smallest API (see Actual Packet Interval
The producer and consumer must be configured correctly for the specified data to be shared. To produce for several consumers, the producer must be configured for this using the RSLogix5000 software for the Logix5550 controller. For the PLC-5C send and receive scheduled messages are configured using the Map Editing Tool in RSNetWorx for ControlNet.
For ControlLogix controllers, a consumed tag in the consumer must be specified exactly the same as a produced tag in the producer. In the following example, consumer_2 does not have the correct tags.
Produced tag names
C
D
A
B consumer_1
Consumed tag names
A
B
D consumer_2
Consumed tag names
C
D
E
B consumer_3
Consumed tag names
B
C
D
When consumer_2 tries to obtain the shared tags, the connections fail. Even though three of the tags are specified correctly (B, C, and D), the connections fail for all the consumed tags because one was incorrect (E).
The other consumers (consumer_1 and consumer_3) can still obtain the shared tags from the network, as long as their tags are specified correctly.
One consumer failing to obtain shared data does not affect other consumers accessing the same data.
1756-6.5.3 - December 1999
1-6
ControlNet Communication Basics
Scanner
5
5
L
5
0
C
N
B
ControlNet Network
I/O
C
N
B
I/O
Adaptor
See Appendices A and B for more information on connections and on
produced and consumed tags.
Control of Scheduled I/O Communications
Scheduled connections allow you to send and to receive data repeatedly at a predetermined rate. You can use the 1756-CNB module to control scheduled I/O when you use it in conjunction with a Logix5550 controller.
When you place the module in the I/O configuration list of a Logix5550 controller and attach a second ControlLogix chassis to the same ControlNet network, you can perform remote control operations on the I/O in the second chassis.
In this situation, the 1756-CNB module in the local chassis with the
Logix5550 controller acts as a scanner while the 1756-CNB module in the remote chassis with the I/O plays the role of an adapter.
Using RSNetWorx for ControlNet Software
You must use RSNetWorx for ControlNet to enable any connection in a remote chassis. In addition, RSNetWorx transfers configuration data to the remote modules and establishes a network update time (NUT) that is compliant with the desired communications options specified for each module during configuration.
Important: RSNetWorx must be run whenever a scheduled connection is added to, removed from, or changed in your system.
You can learn more about RSNetWorx for ControlNet and other Rockwell
Software products by visiting the Rockwell Software internet site, http://www.software.rockwell.com.
Understanding the Control and
Information Protocol
ControlLogix routing uses the Control and Information Protocol (CIP). CIP is a message-based protocol that implements a relative path to send a message from the producing device in a system to the consuming devices. In this way, the producing device in a networked system contains the path information that steers the message along the proper route to reach its consumers. Since the producing device holds this information, other devices along the path simply pass this information; they do not need to store it. This has two significant benefits:
•
You do not need to configure routing tables in the bridging module, which greatly simplifies maintenance and module replacement.
•
You maintain full control over the route taken by each message, which enables you to select alternative paths for the same end device.
1756-6.5.3 - December 1999
ControlNet Communication Basics
1-7
Understanding the Network
Keeper
Every ControlNet network requires at least one module that is able to store programmed parameters for the network and configure the network with those parameters upon start-up. This module is called a “keeper” since it keeps the network configuration. The keeper is configured by running
RSNetWorx for ControlNet software.
Series B 1756-CNB modules (firmware version 2.10) are multi-keepers. On a multi-keeper network, any CNB module can keep the network at any legal node address (01 to 99). In a multi-keeper network, the multi-keeper capable node with the lowest node address becomes the active keeper.
If the active keeper is taken off the network, an alternative keeper can take over for it and continue to act as keeper. As long as at least one valid multi-keeper device is present on the network, new scheduled connections can be established.
Network Update Time (NUT)
The network update time (NUT) is the smallest repetitive time interval in which data can be sent on the ControlNet network. It represents the fastest possible update rate for scheduled data transfers on that network. For example, a network that runs with a 5ms NUT cannot send scheduled data at a rate faster than 5ms. It can, however, send data at a slower rate.
Requested Packet Interval (RPI)
The RPI is the update rate specified for a particular piece of data on the network. When you add a module to the I/O configuration of a controller, you must enter the RPI as a parameter. This value specifies how often to produce the data for that module. For example, if you specify an RPI of
50ms, it means that every 50ms the I/O module should send its data to the controller or that the controller should send its data to the I/O module.
When you run RSNetWorx for ControlNet an Actual Packet Interval (API) will be calculated. The API will be equal to or faster than the RPI.
RPIs are only used for modules that produce data. For example a local CNB module does not require an RPI because it is not a data-producing member of the system; it is used only as a bridge to remote racks.
Important: You cannot set the RPI to a rate faster than the NUT. The network cannot send data at a rate that is faster than NUT.
1756-6.5.3 - December 1999
1-8
ControlNet Communication Basics
Actual Packet Interval (API)
:
The API is the actual update rate for a particular piece of data on the network. ControlNet will set this rate equal to or faster than the RPI, based upon the binary multiple of the NUT which is the next fastest rate at which a module can send data. If this can not be done, ControlNet will provide feedback that the configuration can not be supported.
Understanding the Effect of the NUT on the API
The following example illustrates how the NUT affects the API. A module on the network can produce data only at binary multiples of the NUT to a maximum of the NUT multiplied by 128. These multiples are referred to as
“rates” on ControlNet. Therefore, in the example of a NUT of 5 ms, the module can send data at the following rates:
With this
NUT
5ms
And this multiple
1
2
16
32
4
8
64
128
The module can send data at this rate
5 ms
10 ms
20 ms
40 ms
80 ms
160 ms
320 ms
640 ms
In our example, if you specify an RPI of 25ms, then the network produces an API of 20ms, which is the next fastest rate at which the module can send data. The module places the data on the network at every fourth network update interval to produce the 20ms API. Similarly, if you specify an RPI of
150ms, the network produces an API of 80ms.
Rack Optimized and Direct Connections
A direct connection is a real-time data transfer link between the controller and the device that occupies the slot that the configuration data references.
A rack optimized connection is a grouping of data from more than one I/O module into a single block of data sent over a single connection.
Rack optimized connections reduce the total number of connections needed to transfer data when using many I/O modules in a system. The following example illustrates the benefit of rack optimized connections.
1756-6.5.3 - December 1999
ControlNet Communication Basics
1-9
Assume you have set up a system that contains 10 discrete I/O modules in a remote ControlNet chassis. If you used direct connections to transfer data to each of the these I/O modules, you would need 11 connections to transfer all of the data (one connection to the communication module and 1 connection to each of the ten I/O modules). If you used a rack-optimized connection to transfer the data, you would only need a single connection – the connection to the communication module. Since the 1756-CNB module is limited to 64 connections, using rack-optimized connections can save valuable resources.
Important: Although rack optimized connections offer an efficient way to use resources, there are a few limitations on their use:
•
You can only use rack optimized connections to send data to and from discrete digital I/O modules. Analog I/O requires direct connections.
•
Rack optimized connections can contain I/O data and status information only. Additional module information, such as diagnostics, is not available through a rack-optimized connection.
•
You must use a consistent RPI for all data in a single rack-optimized connection. Since you are using a single connection to send the data, all of the data will be transferred in the same message at a uniform rate.
Mixing Communication Formats
When multiple I/O modules exist in the same chassis, the user can mix
Comm Formats for the different I/O modules. I/O modules set up to use
Rack Optimization will communicate at the rate of the RPI configured for the 1756-CNB module. I/O modules configured for direct communication will communicate at their set RPI and ignore the CNB RPI.
Important: After the proper I/O configuration is set up in RSLogix5000,
I/O communication on ControlNet is not established until
RSNetWorx for ControlNet software is run. RSNetWorx is used to set up the network parameters of a ControlNet network.
See Appendix A for more information on connections.
1756-6.5.3 - December 1999
1-10
ControlNet Communication Basics
Default Parameters
When a ControlNet network is powered on for the first time, it comes up with a default set of ControlNet parameters capable of sending only unscheduled data. The default set of network parameters in the 1756-CNB, as well as all ControlNet devices, is:
•
Network Update Time (NUT) of 100ms
•
Scheduled Maximum Node Address (SMAX) of 0
The SMAX is the highest network address of a node that can use the scheduled service.
•
Unscheduled Maximum Node Address (UMAX) of 99
The UMAX is the highest network address of a node that can communicate on the ControlNet network. The UMAX must be set equal to or higher than the SMAX.
•
Assumed maximum cable lengths and maximum number of repeaters
With this default ControlNet network, you can communicate between the various devices on the network by using such packages as RSNetWorx for
ControlNet, RSLogix5000, and the ControlLogix Gateway Tool
(1756-GTWY).
If used in this default state, optimum performance may not be achieved.
However, the default network can be commissioned (tuned) for optimum performance, as described later in this manual.
Important: The ControlNet network should be configured using
RSNetWorx for ControlNet to improve performance.
At a minimum, we recommend that the Unscheduled Maximum
Node Address (UMAX) be set equal to the highest node address on the network. Leaving this parameter at the default value of 99 will waste bandwidth and reduce system performance.
We also recommend setting the Scheduled Maximum Node
Address (SMAX) to a value 3 or 4 above the highest scheduled node address to allow for future expandability.
1756-6.5.3 - December 1999
Installing the ControlNet Network
Chapter
2
What this Chapter Contains
This chapter describes how to install the ControlLogix and PLC-5C modules and connect them to the ControlNet network.
For information about See page
Installing the 1784-KTCX15 Communication Interface Card
Installing the ControlLogix Modules
Connecting the ControlNet Network
Installing the PLC-5C Controllers
!
ATTENTION: The ControlLogix network modules are sensitive to electrostatic discharge.
Electrostatic discharge can damage integrated circuits or semiconductors if you touch backplane connector pins. Follow these guidelines when you handle these components:
•
Touch a grounded object to discharge static potential.
•
Wear an approved wrist-strap grounding device.
•
Do not touch the backplane connector or connector pins.
•
Do not touch the circuit components.
•
If available, use a static-safe workstation.
•
When not in use, store the modules in their static-shield bags.
1756-6.5.3 - December 1999
2-2
Installing the ControlNet Network
Installing the 1784-KTCX15
Communication Interface Card
Perform the following steps to install the 1784-KTCX15 card in your personal computer.
For detailed information on installing the 1784-KTCX15, refer to the ControlNet
Communication Interface
Card Installation Instructions, publication number
1784-5.33.
1. Set the card’s base memory address location on switches S1 and S2.
2. Set the card’s base I/O space address location on switch S3.
1756-6.5.3 - December 1999
Address 240
We used the following settings:
Base I/O Space Address
Base Memory Address
240
D000:000
Important: When deciding which addresses to use, remember that each card in your computer must have a unique base memory address and a unique base I/O space memory address. If another card in the host computer is using one or both of the selected addresses, you must change the card’s switch settings to an available address.
Consult with your IT/PC support group to find out if it is necessary to change any of your computer’s memory address or IRQ settings.
3. Insert the card in a vacant 16- or 32-bit ISA/EISA expansion slot.
Installing the ControlNet Network
2-3
Configuring the 1784-KTCX15 Card
After installing the card in the computer, you must run RSLinx to configure the driver.
For more information on installing and using RSLinx see the RSLinx Lite
User’s Guide, publication 9399-WAB32LUG.
1. Start the RSLinx software.
2. Select Configure Drivers from the Communications menu.
The following window will appear:
3. Select the Allen-Bradley 1784-KT/KTC(X) device from the pull-down list and click on Add/New.
4. When prompted for a name for the new driver, select the default name assigned by the system, i.e., AB_KTC-1.
1756-6.5.3 - December 1999
2-4
Installing the ControlNet Network
The Configure Device window will appear:
5. Enter the following configuration:
Station Name
Net. Address
ABKTC
17
(1)
None
Interrupt
I/O Base
Mem. Address
(1)
(2)
240
(2)
D7
(2)
This is an unscheduled device. For maximum efficiency, set its address higher than the highest scheduled address on your network.
Modify as necessary for your system.
6. Click on OK to save your settings.
7. Close RSLinx.
1756-6.5.3 - December 1999
Installing the ControlLogix
Modules
Installing the ControlNet Network
2-5
Important: These instructions assume that you have installed your
ControlLogix chassis and power supplies. If you have not installed these components, install them now in accordance with the following instructions:
•
ControlLogix Chassis Installation Instructions, publication number 1756-5.2
•
ControlLogix Power Supplies Installation Instructions, publication number 1756-5.1
1. Before installing a 1756-CNB module in its chassis, set the module’s node address switches.
Important: You must select a unique node address of 01 to 99 for each module. 00 is invalid.
For the example applications, set the node address of one 1756-CNB
module to 1 and another to 6. In the last example (chapter 11), we added
a third module at node address 3.
side of CNB module top of CNB module front
This module’s network address is 23.
20926
1756-6.5.3 - December 1999
2-6
Installing the ControlNet Network
2. Install the1756-CNB modules, Logix5550 controllers, and ControlLogix
I/O modules by placing them in the formed tracks on the top and bottom of the selected slots and sliding them into the chassis.
Press firmly and evenly to seat a module in the backplane connector.
!
ATTENTION: Do not force a module into the backplane connector. If you cannot seat the module with firm pressure, check the alignment. Forcing the module can damage the backplane connector or the module.
1756-6.5.3 - December 1999
Installing the ControlNet Network
2-7
Important: You can install or remove a module while chassis power is applied.
!
ATTENTION: When you insert or remove a module while backplane power is on, an electrical arc may occur. An electrical arc can cause personal injury or property damage by:
• sending an erroneous signal to your system’s field devices causing unintended machine motion or loss of process control.
• causing an explosion in a hazardous environment.
Repeated electrical arcing causes excessive wear to contacts on both the module and its mating connectors.
Worn contacts may create electrical resistance that can affect module operation.
Connecting the ControlNet
Network
When connecting a
ControlNet network, you should also refer to the
ControlNet Cable System
Planning and Installation
Manual, publication number
1786-6.2.1.
Connect the 1756-CNB modules and the 1784-KTCX15 communication interface card to the ControlNet network using taps (1786-TPS, -TPYS,
-TPR, -TPYR).
.
1. Remove and save the dust cap(s) from the ControlNet tap(s)
!
ATTENTION: Do not allow any metal portions of the tap to contact any conductive material. If you disconnect the tap from the module, place the dust cap back on the connector to prevent the connector from accidentally contacting a metallic grounded surface.
segment 1 segment 2
1756-CNB - segment 1
1756-CNBR - segments 1 and 2 dust cap dust cap
1756-6.5.3 - December 1999
2-8
Installing the ControlNet Network
.
2. Connect the tap’s straight or right angle connector to the module’s BNC connector.
If your node supports
non-redundant media
(1756-CNB, -CNBR) redundant media (1756-CNBR)
Connect the tap’s connector
to the channel A connectors
(channel B is not used)
• from trunkline A to channel A
• from trunkline B to channel B segment 1
Tap tap segment 2 tap segment 1 tap
20956
1756-6.5.3 - December 1999
Installing the PLC-5C
Controllers
Installing the ControlNet Network
2-9
Install the PLC-5C controller in a 1771 I/O chassis.
PLC-5C Controller and 1771 I/O Chassis
Locking Bar
ControlNet Node Address Switches
Lift Ejector Tab
PLC-5/40C Controller
Battery
Connector
Card Guides
Battery
Cover
Battery
1. Set the backplane switches in the I/O chassis so that you can download the ladder logic programs in the example applications. Put switches 5 and 6 in the “on” position, and all of the others in the “off” position.
Switches 5 and 6 “on”
2. Set the PLC-5C ControlNet node addresses using the two 10-digit rotary switches on top of the PLC-5C modules.
For the example applications use node addresses 11 and 16.
ControlNet PLC-5C controller’s NET address = 11
2
0
1
9
8
3
4
5
7
6
3. Insert the PLC-5C into the 1771 chassis.
4. Connect the PLC-5C’s ControlNet port to the ControlNet network.
See the ControlNet 1.5 PLC-5 Programmable Controller User
Manual, publication 1785-6.5.22, for further information.
1756-6.5.3 - December 1999
2-10
Installing the ControlNet Network
The following figure shows an example of a completed ControlNet network
used for the examples in chapters 5 and 6 of this manual.
PLC-5C
ControlLogix
Chassis
Logix5550
Controller
1756-CNB tap with end terminator
ControlNet Trunk Cable tap tap with end terminator
PC with
1784-KTCX15
Interface
1771 I/O
Chassis
Required Software
In order to run the example applications, you will need RSNetworx for
ControlNet, RSLogix5, and RSLogix5000 software installed on your
personal computer. Refer to the System Components table on page P-3 for
information on which versions of the software are required. Follow the instructions that appear on your screen when installing the software.
For further information, refer to the publications listed on page P-5.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller:
Unscheduled Messaging
Chapter
3
About the Example Application
This example application sends an unscheduled message from one
Logix5550 controller to another Logix5550 controller. Both controllers are on the same ControlNet but in different chassis. In both chassis the controller is in slot 0 and the 1756-CNB module is in slot 1. The 1756-CNB modules are configured at node addresses 1 and 6, respectively. A Timer provides the test data for the message.
What you will do
Set Up the Example Application
Create the Example Application
Create the Controller Tags for the Write Message Program
Create the Write Message Ladder Program
Download and Run the Program
Test the Example Application
Create the Controller Tags for the Test Program
Download the Test Program
Test the Communications
See page
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1 Slot 0 1
Left
Chassis
Message
Logix5550 1756-CNB
(Node 1)
ControlNet Network
Logix5550
Right
Chassis
1756-CNB
(Node 6)
PC with
1784-KTCX15
Interface
1756-6.5.3 - December 1999
3-2
Logix5550 to Logix5550 Controller: Unscheduled Messaging
•
Verify that the Logix5550 controllers and the 1756-CNB modules are in slots 0 and 1 in each ControlLogix chassis, as shown.
•
Verify that the node addresses for the 1756-CNB modules are 1 and 6 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Example Application
Perform the following steps to create the example application.
1. Open the RSLogix5000 software.
2. From the File menu, select New. The New Controller window will appear.
3. Enter an appropriate name for the Controller, e.g., “CNET_Messaging.”
4. Select the correct Chassis Type, Slot Number of the Logix5550 controller, and folder where you want to save the file (Create In). Click on OK.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Unscheduled Messaging
3-3
Create the Controller Tags for the Write Message Program
1. Double-click on the Controller Tags folder in the project window.
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tags:
Tag Name
L1_to_L1
Source_data_buffer
T1
Alias For
T1.ACC
Base Tag
T1.ACC
Type
MESSAGE
DINT
TIMER
Style
Decimal
1756-6.5.3 - December 1999
3-4
Logix5550 to Logix5550 Controller: Unscheduled Messaging
Create the Write Message Ladder Program
1. Double-click on Main Routine under the Main Program folder, and create the following ladder program:
2. Click on the button in the MSG instruction.
The Message Configuration window will appear.
1756-6.5.3 - December 1999
3. Under the Configuration tab, enter the following configuration:
In this field
Message Type
Source Tag
Number of Elements
Destination Element
Select
CIP Data Table Write
Source_data_buffer
1 destination_data_buffer
Important: Make sure the Destination Element tag is created in the other controller with the same name (“destination_data_buffer”) and data type. The tag must be created under the Controller scope.
Logix5550 to Logix5550 Controller: Unscheduled Messaging
3-5
4. Select the Communication tab and enter the following path to the destination Logix5550 controller: 1, 1, 2, 6, 1, 0.
For the path in this example:
“1” indicates a connection to the backplane of the left ControlLogix chassis.
“1” indicates a connection to the CNB module in slot 1.
“2” indicates a connection to port 2 of the CNB module (get on the ControlNet wire).
“6” indicates a connection to the CNB module at node address 6.
“1” indicates a connection to the backplane of the right ControlLogix chassis.
“0” indicates a connection to the Logix5550 controller in slot 0.
If the Cache Connections option is selected, the controller keeps the connection open after it completes the data transfer. The next data transfer uses the open connection and avoids the delay required to open the connection. If this option is not selected, the controller closes the connection after the data transfer operation is complete. Selecting the option results in faster data transfers, but indefinitely retains a connection. Since the controller has a limited number of connections, this could eventually result in the controller being unable to establish connections.
5. Click on OK
6. Save the program.
1756-6.5.3 - December 1999
3-6
Logix5550 to Logix5550 Controller: Unscheduled Messaging
Download and Run the Program
(1)
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
3. Drill down the tree through the ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
5. Put the controller in Run mode.
6. Minimize RSLogix5000.
Test the Example Application
In order to test the application you have to go online with the Logix5550 controller in the right chassis and create the tag for a buffer to receive the message.
Perform the following steps:
1. Start another session of RSLogix5000.
2. From the File menu, select New.
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Unscheduled Messaging
3-7
The New Controller window will appear.
3. Enter an appropriate Name for the Controller, e.g., “L1_from_L1”.
4. Select the correct Chassis Type and Slot Number of the Logix5550 controller, and the folder where you want to save the file (Create In).
Then click on OK.
Create the Controller Tags for the Test Program
1. Double-click on the Controller Tags folder in the project window.
1756-6.5.3 - December 1999
3-8
Logix5550 to Logix5550 Controller: Unscheduled Messaging
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tags:
Tag Name Type
destination_data_buffer DINT
Style
Decimal
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Unscheduled Messaging
3-9
Download the Test Program
(1)
You do not need any ladder logic in the Test program. The program can consist of a single “End” rung.
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
3. Drill down the tree through the ControlNet driver and the 1756-CNB module at node 6 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
1756-6.5.3 - December 1999
3-10
Logix5550 to Logix5550 Controller: Unscheduled Messaging
Test the Communications
1. Double-click on the Controller Tags folder in the Controller view window and select the Monitor Tags tab.
You should see this value changing.
2. Examine the destination_data_buffer field. You should see the value changing to keep up with the accumulated value of the timer in the controller in the left chassis.
This completes the Logix5550 to Logix5550 controller unscheduled messaging example.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller:
Scheduled Communication
Chapter
4
About the Example Application
This example application sends data from one Logix5550 controller (the producer) to another Logix5550 controller (the consumer). Both controllers are on the same ControlNet but in different chassis. In both chassis the controller is in slot 0 and the 1756-CNB module is in slot 1. The 1756-CNB modules are configured at node addresses 1 and 6, respectively. A Timer provides the test data for the message.
What you will do
Set Up the Example Application
Create the Producer Application
Create the Producer Tags
Create the Producer Ladder Program
Download to the Producer
Configure the Consumer Logix5550 Controller
Create the Consumer Tags
Download to the Consumer
Schedule the Network Using RSNetWorx for ControlNet
Test the Communications
See page
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1
Slot 0 1
Left
Chassis
Data
Logix5550 1756-CNB
(Node 1)
ControlNet Network
Logix5550
Right
Chassis
1756-CNB
(Node 6)
PC with
1784-KTCX15
Interface
1756-6.5.3 - December 1999
4-2
Logix5550 to Logix5550 Controller: Scheduled Communication
•
Verify that the Logix5550 controllers and the 1756-CNB modules are in slots 0 and 1 in each ControlLogix chassis, as shown.
•
Verify that the node addresses for the 1756-CNB modules are 1 and 6 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Producer
Application
Perform the following steps to create the producer application.
1. Open the RSLogix5000 software.
2. From the File menu, select New. The New Controller window will appear.
3. Enter an appropriate name for the Controller, e.g., “Producer.”
4. Select the correct Chassis Type, Slot Number of the Logix5550 controller, and folder where you want to save the file (Create In). Click on OK.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Scheduled Communication
4-3
Create the Producer Tags
information on producer tags.
1. Double-click on the Controller Tags folder in the project window.
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tags:
Tag
produced_data
T1
Type
DINT
TIMER
Style
Decimal
1756-6.5.3 - December 1999
4-4
Logix5550 to Logix5550 Controller: Scheduled Communication
3. Produce the tag that is being sent. Either:
Check the “P” box in the tag database:
Check the “P” box in the tag database to make this a produced tag.
-OR-
Right-click on the tag select Edit Tag Properties.
The Tag Properties window will appear:
Make sure this box is checked.
1756-6.5.3 - December 1999
Check the “Produce this tag for up to” box and select the number of consumers (1 to 256). The default is 2.
Logix5550 to Logix5550 Controller: Scheduled Communication
4-5
Create the Producer Ladder Program
1. Double-click on Main Routine under the Main Program folder, and create the following ladder program:
Download to the Producer
(1)
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
3. Drill down the tree through the ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
1756-6.5.3 - December 1999
4-6
Logix5550 to Logix5550 Controller: Scheduled Communication
5. Put the controller in Run mode.
6. Minimize RSLogix5000.
Configure the Consumer
Logix5550 Controller
In order to test the application you have to create a consumer controller, add the producer controller to the I/O configuration of the consumer controller, and create a consumed tag to receive the data.
Perform the following steps to create the consumer controller:
1. Start another session of RSLogix5000.
2. From the File menu, select New.
The New Controller window will appear.
1756-6.5.3 - December 1999
3. Enter an appropriate Name for the Controller, e.g., “Consumer.”
4. Select the correct Chassis Type and Slot Number of the Logix5550 controller, and the folder where you want to save the file (Create In).
Then click on OK.
Add the Producer to the I/O Configuration of the Consumer
Adding the producer to the I/O configuration of the consumer controller involves several steps. First, you must add the consumer’s local 1756-CNB module to its I/O configuration. Then you add the remote 1756-CNB as a
“child” of the local 1756-CNB module. Finally, you add the producer controller as a child of the remote 1756-CNB module.
Logix5550 to Logix5550 Controller: Scheduled Communication
4-7
Add the Local CNB Module to the I/O Configuration
1. Select the I/O Configuration folder in the project window and click the right mouse button
The following pop-up menu will appear.
2. Select New Module.
The Select Module Type window will appear.
3. Select the 1756-CNB/B or 1756-CNBR/B module and click on OK.
1756-6.5.3 - December 1999
4-8
Logix5550 to Logix5550 Controller: Scheduled Communication
The Module Properties window will appear.
4. Enter the following parameters:
Name
Slot
Electronic Keying
Local_CNB
1
Compatible Module
5. Click on Finish to accept the configuration.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Scheduled Communication
4-9
Add the Remote CNB Module to the I/O Configuration
Next, you must add the remote 1756-CNB as a “child” of the local
1756-CNB.
1. In the Project window, right click on the local 1756-CNB and select New
Module.
The Select Module Type window will appear.
2. Select the 1756-CNB/B or 1756-CNBR/B module from the list.
1756-6.5.3 - December 1999
4-10
Logix5550 to Logix5550 Controller: Scheduled Communication
The Module Properties window will appear.
3. Enter the following parameters:
Name
Node
Chassis Size
Slot
Comm Format
Electronic Keying
Remote_CNB
1
(Enter your chassis size)
1
None
Compatible Module
4. Click on Finish to accept the configuration. The remote 1756-CNB module should appear indented under the local 1756-CNB in the I/O
Configuration folder.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Scheduled Communication
4-11
Add the Remote Controller to the I/O Configuration
You must now add the remote Controller to the I/O Configuration List under the remote 1756-CNB module.
1. Right click on the remote 1756-CBN or -CNBR under the I/O
Configuration folder and select New Module.
The Select Module Type window will appear.
2. Select the 1756-L1 ControlLogix5550 Programmable Controller from the list.
The Module Properties window will appear.
1756-6.5.3 - December 1999
4-12
Logix5550 to Logix5550 Controller: Scheduled Communication
3. Enter the following parameters:
Name
Slot
Producer
0
4. Click on the Finish button to accept the configuration.
The I/O Configuration tree should look similar to the one shown below.
information on consumer tags.
Create the Consumer Tags
1. Double-click on the Controller Tags folder in the project window.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Scheduled Communication
4-13
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tag:
Tag Name
consumed_data
Type
DINT
Style
Decimal
3. Right-click on the new tag. The following pop-up menu will appear:
4. Select Edit Tag Properties.
1756-6.5.3 - December 1999
4-14
Logix5550 to Logix5550 Controller: Scheduled Communication
The New Tag window will appear.
5. Enter the following parameters:
Name
Tag Type
Controller
Remote Tag
consumed_data
Consumed
Producer produced_data
(1)
Data Type
Style
DINT
(1)
Decimal
(1)
RPI
(1)
(2)
5ms
(2)
These parameters must match those in the producer.
Remember that the RPI cannot be faster than the NUT. See page 1-7.
6. Click on OK to save the tag configuration.
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Scheduled Communication
4-15
Download to the Consumer
(1)
You do not need any ladder logic in the Consumer program. The program can consist of a single “End” rung.
1. Click on the Communications menu and select Who Active.
The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
2. Drill down the tree through ControlNet driver and the 1756-CNB module at node 6 to the controller in slot 0.
3. Highlight the controller and click on the Download button.
4. Minimize this session of RSLogix5000.
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
1756-6.5.3 - December 1999
4-16
Logix5550 to Logix5550 Controller: Scheduled Communication
Schedule the Network Using
RSNetWorx for ControlNet
Before scheduled communication can take place, you must run RSNetWorx for ControlNet to schedule the network. Running RSNetWorx transfers configuration data to networked modules and establishes a Network Update
Time (NUT) for ControlNet that is compliant with the desired communication options specified for each module.
1. Start the RSNetWorx for ControlNet software:
2. From the Network menu, select New.
3. Check the Edits Enabled box and go Online.
The Browse for Network window will appear with a list of available drivers. (Your list may appear different from that shown below, but you
should have the AB_KTC-1 driver configured as described in chapter 2.)
1756-6.5.3 - December 1999
Logix5550 to Logix5550 Controller: Scheduled Communication
4-17
4. Select the AB_KTC-1, ControlNet driver and click on OK.
The software will browse the network. When it is finished, your network window should appear similar to that shown below:
5. Verify that the devices shown and the network node addresses displayed are correct.
Verify the Network Properties
Make sure that the network update time (NUT), Max Scheduled Address, and Max Unscheduled Address are set correctly.
1. Select Network from the main menu bar and Properties from the pull-down menu:
1756-6.5.3 - December 1999
4-18
Logix5550 to Logix5550 Controller: Scheduled Communication
2. Make sure that these parameters to are set to the following values:
In this field
Network_Update_Time (ms)
Max Scheduled Address
Select
5 ms
(1)
10
(2)
Max Unscheduled Address
(1)
(2)
(3)
20
(3)
Remember that the requested packet interval (RPI) for any of the devices on the network cannot be faster than the NUT.
This should be set to a value 3 or 4 above the highest scheduled node on the network, in this case the 1756-CNB module at node 6.
At a minimum, this should be set to the highest node address on the network, in this case the 1784-KTXC15 card at node 17.
3. Click on OK.
Next, have RSNetWorx for ControlNet survey the network for all connected devices.
4. From Selection menu, select Survey Network.
RSNetWorx for ControlNet will survey the network for connected devices. When it is finished, the network window should appear similar to that shown below.
1756-6.5.3 - December 1999
1
5. From the Network menu, select Save as.
Logix5550 to Logix5550 Controller: Scheduled Communication
4-19
The following pop-up window will appear:
6. Select “Optimize and re-write schedule for all connections” and click on
OK.
The Save As window will appear
7. Enter an appropriate name for the network (e.g., “Sched_L1_to_L1”) and click on Save.
RSNetWorx for ControlNet will save the configured and scheduled network.
8. Minimize the RSNetWorx for ControlNet software.
1756-6.5.3 - December 1999
4-20
Logix5550 to Logix5550 Controller: Scheduled Communication
Test the Communications
1. Restore the session of RSLogix5000 for the Consumer controller.
2. Double-click on the Controller Tags folder in the Controller view window and select the Monitor Tags tab.
You should see this value changing.
3. Examine the consumed_data field. You should see the value changing to keep up with the accumulated value of the timer in the controller in the left chassis.
This completes the Logix5550 controller to Logix5550 scheduled communication example.
1756-6.5.3 - December 1999
Chapter
5
Logix5550 Controller to PLC-5C:
Unscheduled Messaging
About the Example Application
This example application sends an unscheduled message from a Logix5550 processor to a PLC-5C processor. The Logix5550 processor is in slot 0 of the ControlLogix chassis and the1756-CNB module (configured as node 1) is in slot 1. The PLC-5C is configured as ControlNet node 11. A Counter that increments continuously provides the test data for the message.
What you will do
Set Up the Example Application
Create the Example Application
Create the Controller Tags for the Write Message Program
Create the Write Message Ladder Program
Download the Write Message Program
Test the Example Application
See page
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1
PLC-5C
(Node 11)
ControlLogix
Chassis
Message
Logix5550
Processor
1756-CNB
(Node 1)
ControlNet Network
1771 I/O
Chassis
PC with
1784-KTCX15
Interface
•
Verify that the Logix5550 processor and the 1756-CNB module are in slots 0 and 1 as shown.
•
Verify that the node address for the 1756-CNB module is 1 and the node address for the PLC-5C processor is 11 as shown.
1756-6.5.3 - December 1999
5-2
Logix5550 Controller to PLC-5C: Unscheduled Messaging
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Example Application
Perform the following steps to create the example application:
1. Open the RSLogix5000 software.
2. From the File menu, select New. The New Controller pop-up window will appear.
3. Enter an appropriate name for the Controller, e.g., “CNET_Messaging.”
4. Select the correct Chassis Type, Slot Number of the Logix5550 processor, and folder where you want to save the file (Create In). Click on OK.
1756-6.5.3 - December 1999
Logix5550 Controller to PLC-5C: Unscheduled Messaging
5-3
Create the Controller Tags for the Write Message Program
You must create a source tag for the message under the controller scope and assign it the same data type as the destination element (e.g., INT).
1. Double-click on the Controller Tags folder in the Project window.
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tags:
Alias For Tag
SUM
PLUS_ONE
L1_to_PLC5
Mssg_to_PLC5 SUM
Type
INT
INT
MESSAGE
INT
Style
Decimal
Decimal
Decimal
1756-6.5.3 - December 1999
5-4
Logix5550 Controller to PLC-5C: Unscheduled Messaging
3. Select the Monitor Tags tab.
4. Enter a 1 in the PLUS_ONE field.
Create the Write Message Ladder Program
1. Double-click on Main Routine under the Main Program folder, and enter the following ladder program:
2. Click on the button in the MSG instruction.
1756-6.5.3 - December 1999
Logix5550 Controller to PLC-5C: Unscheduled Messaging
5-5
The Message Configuration window will appear.
3. Under the Configuration tab, enter the following configuration:
In this field
Message Type
Source Tag
Number of Elements
Destination Element
Select
PLC5 Typed Write
Mssg_to_PLC5
1
N7:0
4. Select the Communication tab and enter the following path to the
PLC-5C on ControlNet.
For the path in this example:
“1” indicates a connection to the backplane of the ControlLogix chassis.
“1” indicates a connection to the CNB module in slot 1.
“2” indicates a connection to port 2 of the CNB module (get on the ControlNet wire).
“11” indicates a connection to the PLC-5C at node 11.
5. In the Communication Method area, click on the CIP radio button.
1756-6.5.3 - December 1999
5-6
Logix5550 Controller to PLC-5C: Unscheduled Messaging
If the Cache Connections option is selected, the controller keeps the connection open after it completes the data transfer. The next data transfer uses the open connection and avoids the delay required to open the connection. If this option is not selected, the controller closes the connection after the data transfer operation is complete. Selecting the option results in faster data transfers, but indefinitely retains a connection. Since the controller has a limited number of connections, this could eventually result in the controller being unable to establish connections.
6. Click on OK.
7. Save the program.
Download the Write Message Program
(1)
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
1756-6.5.3 - December 1999
3. Drill down the tree through ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
5. Put the controller into Run mode.
6. Minimize RSLogix5000.
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
Logix5550 Controller to PLC-5C: Unscheduled Messaging
5-7
Test the Example Application
Perform the following steps to test the example application:
1. Start the RSLogix5 software.
2. From the Comms menu in RSLogix5, select System Comms.
The System Options window will appear with the System
Communications tab open.
3. Select AB_KTC-1 as the Driver and click on the Who Active button.
The RSWho window will appear (Your window may appear different, depending on the drivers and devices installed on your system).
1756-6.5.3 - December 1999
5-8
Logix5550 Controller to PLC-5C: Unscheduled Messaging
4. Select the AB_KTC-1, ControlNet driver and double-click on the PLC-5 processor at node 11 (1785-L40C15 in the above example).
5. When the System Communications tab reappears, click on the Online button.
If no program is loaded in the PLC-5C processor, a pop-up window will appear with the message “You cannot go Online to DEFAULT program.”
1756-6.5.3 - December 1999
6. Enter a new processor name of your choice (e.g., “Receiver”) and click on OK.
• Disregard any warnings that appear about ControlNet devices.
• It is not necessary to save the program.
• You do not have to put the processor into Run mode.
7. Double-click on folder N7 in the data file list.
You should see the value in N7:0 continuously changing to reflect the messages from the Logix5550 processor.
This value should be changing.
This completes the Logix5550 to PLC-5C unscheduled messaging example.
Chapter
6
Logix5550 Controller to PLC-5C:
Scheduled Communications
About the Example Application
This example application sends scheduled data from a Logix5550 controller
(producer) to a PLC-5C processor (consumer). The Logix5550 controller is in slot 0 of the ControlLogix chassis and the 1756-CNB module (configured as node 1) is in slot 1. The PLC-5C is configured as node 11. A Timer provides the data for the message.
What you will do
Set Up the Example Application
Create the Logix5550 Producer Application
Create the Producer Tags
Create the Producer Ladder Program
Download and Run the Program
Schedule the Network Using RSNetWorx for ControlNet
Verify the Network Properties
Survey the Network for Connected Devices
Configure the PLC-5C to Receive Scheduled Messages
Test the Communications
See page
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1
PLC-5C
(Node 11)
ControlLogix
Chassis
Data
Logix5550
Controller
1756-CNB
(Node 1)
ControlNet Network
1771 I/O
Chassis
PC with
1784-KTCX15
Interface
1756-6.5.3 - December 1999
6-2
Logix5550 Controller to PLC-5C: Scheduled Communications
•
Verify that the Logix5550 controller and the 1756-CNB module are in slots 0 and 1 as shown.
•
Verify that the node address for the 1756-CNB module is 1 and the node address for the PLC-5C processor is 11 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Logix5550 Producer
Application
Perform the following steps to create the Logix5550 producer application.
1. Open the RSLogix5000 software.
The producer application here is the
same as that in chapter 4. If you
previously created that application, open it in RSLogix5000 and download it to the producer Logix5550 controller. Then proceed to Schedule
the Network Using RSNetWorx for
2. From the File menu, select New. The New Controller window will appear.
3. Enter an appropriate name for the Controller, e.g., “Producer.”
4. Select the correct Chassis Type, Slot Number of the Logix5550 controller, and folder where you want to save the file (Create In). Click on OK.
1756-6.5.3 - December 1999
Logix5550 Controller to PLC-5C: Scheduled Communications
6-3
Create the Producer Tags
information on producer tags.
Controller tags are created using the project window on the left side of the screen.
1. Double-click on Controller Tags under the Controller folder.
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tags:
Alias For Tag
produced_data
T1
Type
DINT
TIMER
Style
Decimal
1756-6.5.3 - December 1999
6-4
Logix5550 Controller to PLC-5C: Scheduled Communications
3. Produce the tag that is being sent. Either:
Check the “P” box in the tag database to make this a produced tag.
Check the “P” box in the tag database:
-OR-
Right-click on the tag and select Edit Tag Properties.
The Tag Properties window will appear:
Make sure this box is checked.
1756-6.5.3 - December 1999
4. Check the “Produce this tag for up to” box and select the number of consumers (1 to 256). The default is 2.
Logix5550 Controller to PLC-5C: Scheduled Communications
6-5
For two-way communication you can also configure a consumed tag for this
controller. See chapter 8 for details.
See Appendix B and the Logix5550 Controller User Manual, publication
1756-6.5.12, for more information on creating produced and consumed tags.
Create the Producer Ladder Program
1. Double-click on Main Routine under the Main Program folder, and create the following ladder program:
1756-6.5.3 - December 1999
6-6
Logix5550 Controller to PLC-5C: Scheduled Communications
Download
(1)
and Run the Program
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
3. Drill down the tree through ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
5. After downloading is complete, put the controller in Run mode.
6. Minimize RSLogix5000.
1756-6.5.3 - December 1999
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
Logix5550 Controller to PLC-5C: Scheduled Communications
6-7
Schedule the Network Using
RSNetWorx for ControlNet
Before communication can take place, you must run RSNetWorx for
ControlNet to configure the PLC-5C processor as the consumer and schedule the network. Running RSNetWorx transfers configuration data to networked modules and establishes a Network Update Time (NUT) for
ControlNet that is compliant with the desired communication options specified for each module.
Perform the following steps:
1. Start the RSNetWorx for ControlNet software:
2. From the Network menu, select New.
3. Check the Edits Enabled box and go Online.
1756-6.5.3 - December 1999
6-8
Logix5550 Controller to PLC-5C: Scheduled Communications
The Browse for Network window will appear with a list of available drivers. (Your list may appear different from that shown below, but you
should have the AB_KTC-1 driver configured as described in chapter 2.)
4. Select the AB_KTC-1, ControlNet driver and click on OK.
5. If you receive a message that there is an Online/Offline mismatch, select the Use online data (upload) option and click on OK.
The Save As window will appear:
1756-6.5.3 - December 1999
Logix5550 Controller to PLC-5C: Scheduled Communications
6-9
6. Enter an appropriate name for the network (e.g.,
“Sched_Logix5550_to_PLC5”) and click on Save.
Your ControlNet network should appear similar to that shown below:
7. Verify that the devices shown and the network node addresses displayed are correct.
Verify the Network Properties
Make sure that the network update time (NUT), Max Scheduled Address, and Max Unscheduled Address are set correctly.
1. Select Network from the main menu bar and Properties from the pull-down menu:
1756-6.5.3 - December 1999
6-10
Logix5550 Controller to PLC-5C: Scheduled Communications
2. Make sure that these parameters to are set to the following values:
In this field
Network_Update_Time (ms)
Max Scheduled Address
Select
5 ms
(1)
15
(2)
Max Unscheduled Address
(1)
(2)
(3)
17
(3)
Remember that the requested packet interval (RPI) for any of the devices on the network cannot be faster than the NUT.
This should be set to a value 3 or 4 above the highest scheduled node on the network, in this case the PLC5 at node 11.
At a minimum, this should be set to the highest node address on the network, in this case the 1784-KTXC15 card at node 17.
3. Click on OK.
Survey the Network for Connected Devices
Next, have RSNetWorx for ControlNet survey the network for all connected devices.
1. From Selection menu, select Survey Network.
1756-6.5.3 - December 1999
Logix5550 Controller to PLC-5C: Scheduled Communications
6-11
RSNetWorx for ControlNet will survey the network for connected devices. When it is finished, the network window should appear similar to that shown below.
Configure the PLC-5C to Receive Scheduled Messages
1. Right-click on the PLC5 icon in the RSNetWorx window. The following pop-up window will appear:
2. Select ControlNet Configuration.
1756-6.5.3 - December 1999
6-12
Logix5550 Controller to PLC-5C: Scheduled Communications
The PLC-5C ControlNet Configuration window will open.
Right-click on the 1756L1
3. Right-click on the 1756L1 processor.
4. Select “Insert Receive Scheduled Message.”
1756-6.5.3 - December 1999
Logix5550 Controller to PLC-5C: Scheduled Communications
6-13
The Receive Scheduled Message configuration window will appear:
5. Enter the following parameters and click on OK.
In this field
Node Number
Enter
1
Slot Number
Tag
0 produced_data
(1)
(use default) Requested Packet Interval
Message Size
(1)
2 (for DINT)
This is the name of the tag created in RSLogix 5000.
A new configuration line in blue text will appear:
This new configuration line will appear.
For two-way communication you can also configure the
PLC-5C to send messages to the
Logix5550 controller at this
time. See chapter 8 for details.
6. Click on the AutoMap All Entries button.
Input data will be mapped to a PLC5 file (e.g., N9:0).
Input data mapped to N9:0
7. From the Network menu, select Save.
1756-6.5.3 - December 1999
6-14
Logix5550 Controller to PLC-5C: Scheduled Communications
The following pop-up window will appear:
Test the Communications
8. Select “Optimize and re-write schedule for all connections” and click on OK.
9. Close the PLC-5 ControlNet Configuration window and Minimize the
RSNetWorx for ControlNet software.
You now have the ControlNet network commissioned. Your last task is to go online with the PLC-5C to test the communications.
1. Start the RSLogix5 software.
2. From the Comms menu, select System Comms.
The System Options window will appear with the System
Communications tab open.
1756-6.5.3 - December 1999
3. Select AB_KTC-1 as the Driver and click on the Who Active button.
Logix5550 Controller to PLC-5C: Scheduled Communications
6-15
The RSWho window will appear (Your window may appear different, depending on the drivers and devices installed on your system).
4. Double-click on the PLC-5C processor at node 11 (1785-L40C15 in this example).
5. When the System Communications tab reappears, click on the Online button.
If no program is loaded in the PLC-5C processor, a pop-up window will appear with the message “You cannot go Online to DEFAULT program.”
6. Enter a new processor name of your choice (e.g., “CONSUMER”) and click on OK.
1756-6.5.3 - December 1999
6-16
Logix5550 Controller to PLC-5C: Scheduled Communications
You you will receive the following warning:
This warning is telling you that you need to tell RSLogix5 which
RSNetWorx for ControlNet project file is associated with this PLC-5 so that the two packages can exchange information about the I/O. You will take care of this shortly.
7. Click on OK.
8. Save the program.
1756-6.5.3 - December 1999
9. Enter an appropriate file name (e.g., “Sched_PLC5_from_L1”) and click on Save.
Logix5550 Controller to PLC-5C: Scheduled Communications
6-17
10.Double-click on Controller Properties in the Project tree.
The Controller Properties window will appear:
11.Verify/Enter the following parameters:
In this field
Processor Name
PLC ControlNet Node
Enter
CONSUMER
11
12.Click on the Browse button and Open the RSNetWorx for ControlNet project file created previously (e.g., “Sched_Logix5550_toPLC5.xc”).
13.Click on Apply. Then click on OK.
1756-6.5.3 - December 1999
6-18
Logix5550 Controller to PLC-5C: Scheduled Communications
To verify that the message is being received by the PLC-5C processor, you must examine the input file configured in RSNetWorx for ControlNet (i.e.,
N9).
Examine this file.
14.Double-click on file N9 in the Data Files folder.
You should see the value in N9:0 continuously changing to reflect the data from the Logix5550 controller.
This value should be changing.
This completes the Logix5550 to PLC-5C scheduled communication example.
1756-6.5.3 - December 1999
Chapter
7
PLC-5C to Logix5550 Controller:
Unscheduled Messaging
About the Example Application
This example application sends an unscheduled message from a PLC-5C to a Logix5550 controller. The PLC-5C is at ControlNet node 11. The
Logix5550 controller is in slot 0 of the ControlLogix chassis and the1756-CNB module (configured as ControlNet node 1) is in slot 1. The
PLC-5C’s seconds timer (S:23) provides the test data for the message.
What you will do
Set Up the Example Application
Create the Example Application
Create the PLC-5C Program
Download the PLC-5C Program
Test the Example Application
Create the Controller Tags for the Logix5550 Controller
Download the Logix5550 Program
Verify the Message
See page
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1
1771 I/O
Chassis
Message
ControlLogix
Chassis
PLC-5C
(Node 11)
Logix 5550 controller
ControlNet Network
1756-CNB
(Node 1)
PC with
1784-KTCX15
Interface
•
Verify that the Logix5550 controller and the 1756-CNB module are in slots 0 and 1 as shown.
1756-6.5.3 - December 1999
7-2
PLC-5C to Logix5550 Controller: Unscheduled Messaging
•
Verify that the node address for the 1756-CNB module is 1 and the node address for the PLC-5C is 11 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Example Application
Perform the following steps to create the example application:
1. Start the RSLogix5 software.
2. From the File menu, select New. The Select Processor Type window will appear.
3. Enter the following information and click on OK.
In this field
(1)
Processor Name
Platform
Processor
Series
Select
SENDER
ControlNet
(Enter your processor type)
(Enter your series)
(1)
Revision
Driver
(Enter revision letter)
AB_KTC-1
Processor Node 11
F Series is recommended but not required.
•
Ignore any prompts or warnings you receive about specifying
ControlNet project files. That is not necessary for unscheduled messaging used in this example.
1756-6.5.3 - December 1999
PLC-5C to Logix5550 Controller: Unscheduled Messaging
7-3
Create the PLC-5C Program
1. Enter the following ladder program:
2. Double-click on Setup Screen in the MSG instruction.
The following window will appear.
Port Number 2 is the ControlNet Port
3. Under the General tab in the message Setup Screen, enter the following configuration:
In this field
This PLC
Communication Command
Data Table Address
Size in Elements
Port Number
Target Device
Data Table Address
MultiHop
Select
PLC5 Typed Write
S:23
1
2
N7:0
Yes
4. Select the MultiHop tab in the Setup Screen.
1756-6.5.3 - December 1999
7-4
PLC-5C to Logix5550 Controller: Unscheduled Messaging
The following window will appear:
For the path in this example:
“1” indicates a connection to the CNB module at node address 1.
“0” indicates a connection to the Logix5550 controller in backplane slot 0.
5. Enter the following data in the To Address field (the other fields are filled in automatically by the software):
From Device
This PLC5
ControlLogix Backplane
From Port
2
N/A
To Address Type
1756-CNB Node (dec)
1756 Backplane Slot (dec)
6. From the Edit menu, select Verify Project.
7. Select the Save As option from the File menu.
To Address
1
0
1756-6.5.3 - December 1999
8. Enter an appropriate file name (e.g., “PLC5_to_LOGIX5550”) and click on Save.
PLC-5C to Logix5550 Controller: Unscheduled Messaging
7-5
Download the PLC-5C Program
1. From the Comms menu, select System Communications.
The System Options window will appear with the System
Communications tab open.
2. Select AB_KTC-1 as the Driver and click on Who Active.
The RSWho window will appear (Your window may appear different, depending on the drivers and devices installed on your system).
3. Double-click on the PLC-5 processor at node 11 (1785-L40C15 in this example).
1756-6.5.3 - December 1999
7-6
PLC-5C to Logix5550 Controller: Unscheduled Messaging
4. When the System Communications tab reappears, click on the
Download button.
You will see a window similar to that below.
5. Click on Yes to download the program.
•
It is not necessary to keep the existing Online ControlNet configuration.
6. Go Online and put the processor in Run mode.
7. Minimize RSLogix5.
1756-6.5.3 - December 1999
PLC-5C to Logix5550 Controller: Unscheduled Messaging
7-7
Test the Example Application
In order to test the application you have to go online with the Logix5550 controller and create a tag for the buffer to receive the message.
Perform the following steps:
1. Open the RSLogix5000 software.
2. From the File menu, select New. The New Controller window will appear.
3. Enter an appropriate Name for the Controller, e.g.,
“Logix5550_from_PLC5”.
4. Select the correct Chassis Type and Slot Number of the Logix5550 controller, and the folder where you want to save the file (Create In).
Then click on OK.
1756-6.5.3 - December 1999
7-8
PLC-5C to Logix5550 Controller: Unscheduled Messaging
Create the Controller Tags for the Logix5550 Controller
1. Double-click on the Controller Tags folder in the project window.
1756-6.5.3 - December 1999
The Controller Tags window will appear.
2. Select the Edit Tags tab and create the following tag:
Tag Name
PLC5_Data
Type
INT
Style
Decimal
PLC-5C to Logix5550 Controller: Unscheduled Messaging
7-9
3. From the Logic menu, select Map PLC/SLC Messages.
4. Select the File Number used in the PLC-5C Typed Write message setup
(i.e., number 7).
5. Select the Logix5550 Tag Name created previously (PLC5_Data).
6. Click on OK to complete the mapping.
1756-6.5.3 - December 1999
7-10
PLC-5C to Logix5550 Controller: Unscheduled Messaging
Download the Logix5550 Program
(1)
You do not need any ladder logic in the Logix5550 program. The program can consist of a single “End” rung.
1. Click on the Communications menu and select Who Active.
2. The following window will appear (Your window may look different depending upon the drivers and other devices you have installed):
3. Drill down the tree through the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
1756-6.5.3 - December 1999
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
PLC-5C to Logix5550 Controller: Unscheduled Messaging
7-11
Verify the Message
1. Double-click on the Controller Tags folder in the project window and select the Monitor Tags tab.
You should see this value changing.
2. Examine the PLC5_Data field. You should see that it is incrementing once a second to reflect the seconds timer in the PLC-5C processor sending the message.
This completes the PLC-5C to Logix5550 unscheduled messaging example.
1756-6.5.3 - December 1999
7-12
PLC-5C to Logix5550 Controller: Unscheduled Messaging
1756-6.5.3 - December 1999
Chapter
8
PLC-5C to Logix5550 Controller:
Scheduled Communications
About the Example Application
This example sends scheduled data from a PLC-5C processor (producer) to a Logix5550 controller (consumer). The PLC-5C is ControlNet node 11; the
1756-CNB module is node 1. The Logix5550 controller is in slot 0 of the
ControlLogix chassis and the 1756-CNB is in slot 1. The PLC-5C’s seconds timer (S:23) provides the data for the message.
What you will do
Set Up the Example Application
Configure the Network Using RSNetWorx for ControlNet
Verify the Network Properties
Survey the Network for Connected Devices
Configure the PLC-5C Processor
Configure the Consumer Logix5550 Controller
Add the Producer to the I/O Configuration
Create the Consumer Tags
Download the Logix5550 Program
Schedule the Network
Create the Producer Application
Create the PLC-5C Program
Download the PLC-5C Program
Verify the Message
See page
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1
PLC-5C
(Node 11)
ControlLogix
Chassis
Data
Logix5550
Controller
1756-CNB
(Node 1)
ControlNet Network
1771 I/O
Chassis
PC with
1784-KTCX15
Interface
1756-6.5.3 - December 1999
8-2
PLC-5C to Logix5550 Controller: Scheduled Communications
•
Verify that the Logix5550 controller and the 1756-CNB module are in slots 0 and 1 as shown.
•
Verify that the node address for the 1756-CNB module is 1 and the node address for the PLC-5C processor is 11 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Configure the Network Using
RSNetWorx for ControlNet
Perform the following steps to configure the ControlNet network:
1. Start the RSNetWorx for ControlNet software.
2. From the Network menu, select New.
3. Check the Edits Enabled box and go Online
1756-6.5.3 - December 1999
PLC-5C to Logix5550 Controller: Scheduled Communications
8-3
The Browse for Network window will appear with a list of available drivers. (Your list may appear different from that shown below, but you should have the AB_KTC-1 driver configured as described in
4. Select the AB_KTC-1 driver and click on OK.
5. If you receive a message that there is an Online/Offline mismatch, select the Use online data (upload) option and click on OK.
The Save As window will appear:
6. Enter an appropriate name for the network (e.g.,
“Sched_PLC5_to_Logix5550”) and click on Save.
1756-6.5.3 - December 1999
8-4
PLC-5C to Logix5550 Controller: Scheduled Communications
RSNetWorx for ControlNet will browse the network for the attached devices. When it is done browsing, your ControlNet network should appear similar to that shown below:
7. Verify that the devices shown and their network node addresses are correct.
Verify the Network Properties
Make sure that the network update time (NUT), Max Scheduled Address, and Max Unscheduled Address are set correctly.
1. Select Network from the main menu bar and Properties from the pull-down menu.
The following window will appear:
1756-6.5.3 - December 1999
PLC-5C to Logix5550 Controller: Scheduled Communications
8-5
2. Make sure that these parameters to are set to the following values:
In this field
Network_Update_Time (ms)
Max Scheduled Address
Select
5 ms
(1)
15
(2)
Max Unscheduled Address
(1)
(2)
(3)
20
(3)
Remember that the requested packet interval (RPI) for any of the devices on the network cannot be faster than the NUT.
This should be set to a value 3 or 4 above the highest scheduled node on the network, in this case the PLC5 at node 11.
At a minimum, this should be set to the highest node address on the network, in this case the 1784-KTXC15 card at node 17.
3. Click on OK.
Survey the Network for Connected Devices
Next, have RSNetWorx for ControlNet survey the network for all connected devices.
1. Make sure the Edits Enabled box is checked.
2. From Selection pull-down menu, select Survey Network.
1756-6.5.3 - December 1999
8-6
PLC-5C to Logix5550 Controller: Scheduled Communications
When RSNetWorx for ControlNet is finished surveying, the network window should appear similar to that shown below.
Configure the PLC-5C Processor
1. Right-click on the PLC-5C icon in the RSNetWorx window.
The following pop-up window will appear:
2. Select ControlNet Configuration.
1756-6.5.3 - December 1999
PLC-5C to Logix5550 Controller: Scheduled Communications
8-7
The PLC-5C ControlNet Configuration window will open.
3. Make sure that the Edits Enabled box is checked and right-click on the
PLC-5 processor. The following pop-up window will appear:
4. Select “Insert Send Scheduled Message.”
The Send Scheduled Message window will appear:
1756-6.5.3 - December 1999
8-8
PLC-5C to Logix5550 Controller: Scheduled Communications
5. Accept and record the default Message Number. You will enter this as the “Remote Instance Number” in the Logix5550 controller configuration.
6. Set the Message Size to 2.
7. Click on OK.
A new configuration line in blue text will appear:
This new configuration line will appear.
For two-way communication you can also configure the
PLC-5C to receive messages from the Logix5550 controller
at this time. See chapter 6 for
details.
8. Click on the AutoMap All Entries button.
Output data will be mapped to a PLC5 file (e.g., N10:0).
Output data mapped to N10:0
9. From the Network menu, select Save.
The following pop-up window will appear:
10.Select “Optimize and re-write schedule for all connections” and click on OK.
11.Close the PLC-5 ControlNet Configuration window and minimize the
RSNetWorx for ControlNet software.
1756-6.5.3 - December 1999
Configure the Consumer
Logix5550 Controller
PLC-5C to Logix5550 Controller: Scheduled Communications
8-9
In order to test the application you must configure the Logix 5550 controller as a consumer, add the producer to the I/O configuration of the consumer, and create a consumed tag to receive the data.
Perform the following steps to create the consumer:
1. Open the RSLogix5000 software.
2. From the File menu, select New. The New Controller window will appear.
3. Enter an appropriate Name for the Controller (e.g.,
“Consumer_from_PLC5”).
4. Select the correct Chassis Type and Slot Number of the Logix5550 controller, and the folder where you want to save the file (Create In).
Then click on OK.
You will now add the producer PLC-5C to the consumer’s I/O configuration. This involves several steps. First, you must add the consumer’s local 1756-CNB module to its I/O configuration. Then you add the PLC-5C as a “child” of the local 1756-CNB module.
1756-6.5.3 - December 1999
8-10
PLC-5C to Logix5550 Controller: Scheduled Communications
Add the Producer to the I/O Configuration
I/O configuration is done using the project window on the left side of the screen.
1. Right-click on the I/O Configuration folder in the project window and select New Module from the pop-up window that appears.
The Select Module Type window will appear:
1756-6.5.3 - December 1999
2. Select the 1756-CNB/B or 1756-CNBR/B module and click on OK.
PLC-5C to Logix5550 Controller: Scheduled Communications
8-11
The Module Properties window will appear.
3. Enter the following parameters:
Name
Slot
Electronic Keying
Local_CNB
1
Compatible Module
4. Click on Finish to accept the configuration of the 1756-CNB module.
The Local_CNB module will appear indented under the I/O
Configuration folder.
5. Right-click on the Local_CNB module and select New Module.
1756-6.5.3 - December 1999
8-12
PLC-5C to Logix5550 Controller: Scheduled Communications
The Select Module Type window will appear.
6. Select the 1785-PLC5C module and click on OK.
The Module Properties window will appear:
1756-6.5.3 - December 1999
7. Enter the following parameters:
Name
Node
Producer
11
8. Click on the Finish button to accept the configuration.
PLC-5C to Logix5550 Controller: Scheduled Communications
8-13
The Producer PLC5C will now appear indented under the local
1756-CNB in the I/O Configuration folder.
information on consumer tags.
Create the Consumer Tags
The consumer tags are created using the project window on the left side of the screen. To consume scheduled I/O, you have to create a User-Defined data type.
1. Right-click on the User-Defined folder under Data Types and select
New Data Type.
1756-6.5.3 - December 1999
8-14
PLC-5C to Logix5550 Controller: Scheduled Communications
The Data Type configuration window will appear:
2. Enter the following Data Type parameters:
Consumed_data
Name
Members
Name
Consumed_1
PLC5_data
Data Type
DINT
INT[2]
Style
Decimal
Decimal
See Appendix B and the Logix5550 Controller User Manual, publication
1756-6.5.12, for more information on creating consumed tags.
3. Click on OK.
The new data type will appear under the User-Defined folder.
1756-6.5.3 - December 1999
PLC-5C to Logix5550 Controller: Scheduled Communications
8-15
You must now configure the consumed tags under the controller scope.
4. Double-click on Controller Tags in the project folder.
The Controller Tags window will appear.
5. Select the Edit Tags tab and create the following tag:
Tag Name
PLC5_data
Type
Consumed_data
6. Right-click on the new PLC5_data tag.
1756-6.5.3 - December 1999
8-16
PLC-5C to Logix5550 Controller: Scheduled Communications
The following pop-up window will appear.
7. Select Edit Tag Properties.
The New Tag configuration window will appear:
1756-6.5.3 - December 1999
8. Enter the following parameters:
Name
Tag Type
PLC5_data
Consumed
Controller
Remote Instance
PRODUCER
1
(1)
Consumed_data
Data Type
RPI
(1)
(2)
5ms
(2)
The Remote Instance must match the Message Number assigned by
RSNetWorx for ControlNet.
Remember that the RPI cannot be faster than the NUT. See page 1-7.
PLC-5C to Logix5550 Controller: Scheduled Communications
8-17
9. Click on OK to save the tag configuration.
10.Save the RSLogix5000 program.
For two-way communication you can also configure a produced tag for the
Logix5550 controller at this time. See chapter 6 for details.
Download the Logix5550 Program
(1)
You do not need any ladder logic in the Consumer program. The program can consist of a single “End” rung.
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
3. Drill down the tree through the ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
5. Minimize RSLogix5000.
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
1756-6.5.3 - December 1999
8-18
PLC-5C to Logix5550 Controller: Scheduled Communications
Create the Producer
Application
Perform the following steps to create the PLC-5C producer application:
1. Start the RSLogix5 software.
2. From the File menu, select New. The Select Processor Type window will appear.
3. Enter the following information and click on OK.
In this field
(1)
Processor Name
Platform
Processor
Series
Select
PRODUCER
ControlNet
(Enter your processor type)
(Enter your processor’s series)
(1)
Revision
Driver
(Enter revision letter)
AB_KTC-1
Processor Node 11
F series is recommended but not required.
You will receive the following prompt:
1756-6.5.3 - December 1999
4. Click on the Browse button and select the ControlNet Project file created in RSNetWorx for ControlNet (e.g., “Sched_PLC_to_Logix5550”).
5. Set the ControlNet Node to 11.
6. Click on OK.
PLC-5C to Logix5550 Controller: Scheduled Communications
8-19
Create the PLC-5C Program
1. Enter the following ladder program:
N10 is the Output File configured in RSNetWorX for ControlNet.
The data will be sent to an integer array of size 2 (PLC5_data) in the
Logix5550 processor.
2. From the Edit menu, select Verify Project.
3. Save the file.
Download the PLC-5C Program
1. From the Comms menu, select System Communications.
The System Options window will appear with the System
Communications tab open.
2. Select AB_KTC-1 as the Driver and click on Who Active.
1756-6.5.3 - December 1999
8-20
PLC-5C to Logix5550 Controller: Scheduled Communications
The RSWho window will appear (Your window may appear different, depending on the drivers and devices installed on your system.).
3. Double-click on the PLC-5/40C processor at node 11.
4. When the System Communications tab reappears, click on the
Download button.
You will see a window similar to that below.
5. Click on Yes to download the program.
You will receive the following prompt.
1756-6.5.3 - December 1999
6. Click on Yes to keep the existing online ControlNet configuration.
PLC-5C to Logix5550 Controller: Scheduled Communications
8-21
You should see the Data Output File (i.e., N10) you configured with
RSNetWorx for ControlNet in the following prompt:
7. Click on Yes to continue the download using these ControlNet files.
8. When prompted, save the program.
9. Go Online and put the processor in Run mode.
10.Minimize RSLogix5.
1756-6.5.3 - December 1999
8-22
PLC-5C to Logix5550 Controller: Scheduled Communications
Schedule the Network
Whenever you change the network configuration you must run RSNetWorx for ControlNet to reschedule the network.
1. Restore RSNetWorx for ControlNet and click on the Enable Edits box.
2. From the Selection menu, select Survey Network.
3. Save the RSNetWorx for ControlNet configuration file.
The following prompt will appear:
4. Select “Optimize and re-write schedule for all connections” and click on
OK.
5. Minimize RSNetWorx for ControlNet.
1756-6.5.3 - December 1999
Verify the Message
PLC-5C to Logix5550 Controller: Scheduled Communications
8-23
1. Restore RSLogix5550.
2. Double-click on the Controller Tags folder in the Project window and select the Monitor Tags tab.
You should see these values changing with an offset of 5.
3. Expand the PLC5_data tag.
In the PLC5_data.PLC5_data array you should see the data sent from
N10:0 and N10:1 incrementing once a second with an offset of 5.
This completes the PLC-5C to Logix5550 scheduled communications example.
1756-6.5.3 - December 1999
8-24
PLC-5C to Logix5550 Controller: Scheduled Communications
1756-6.5.3 - December 1999
Chapter
9
PLC-5C to PLC-5C Unscheduled Messaging
Over Two ControlNet Networks
About the Example Application
In this example you establish communications between two PLC-5C processors on different ControlNet networks. Two 1756-CNB modules in the same ControlLogix chassis are used to bridge the networks. The
1756-CNB modules are in slots 1 and 3 and are configured as nodes 1 and 6, respectively. The application sends an unscheduled PLC-5C Typed Write message from the PLC-5C processor on ControlNet network #1 (node 11) to the PLC-5C processor on ControlNet network #2 (node 16).
What you will do
Set Up the Example Application
Create the Example Application
Create the Ladder Program
Download the Program
Test the Example Application
See page
Set Up the Example
Application
Change your system configuration to that shown below:
PLC-5C
(Node 11)
1771 I/O Chassis
Message
ControlLogix Chassis
Slot 1 3
PLC-5C
(Node 16)
1771 I/O Chassis
Message
1756-CNB
(Node 1)
ControlNet Network #1
1756-CNB
(Node 6)
ControlNet Network #2
PC with
1784-KTCX15
Interface
•
Verify that the node addresses for the 1756-CNB modules are 1 and 6 as shown.
•
Verify that the ControlNet node addresses for the PLC-5C processors are
11 and 16 as shown.
1756-6.5.3 - December 1999
9-2
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
•
Verify that the 1784-KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Example Application
Perform the following steps to create the example application:
1. Start the RSLogix5 software
2. From the File menu, select New. The Select Processor Type window will appear.
3. Enter the following information and click on OK.
In this field
Processor Name
Platform
Processor
Series
Revision
Driver
Processor Node
Select
SENDER
ControlNet
(Enter your processor type)
(Enter your processor’s series)
(Enter revision letter)
AB_KTC-1
11
•
Ignore any prompts or warnings you receive about specifying
ControlNet project files. That is not necessary for this example.
1756-6.5.3 - December 1999
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
9-3
Create the Ladder Program
1. Enter the following ladder program:
This message writes the value of the seconds clock (S:23) in the PLC-5/40C on ControlNet network #1 into data file
N7:0 of the PLC-5/40C processor on
ControlNet network #2.
2. Double-click on Setup Screen in the MSG instruction.
The following window will appear.
Port Number 2 is the ControlNet Port
3. Under the General tab in the message Setup Screen, enter the following configuration:
In this field
This PLC
Communication Command
Data Table Address
Size in Elements
Port Number
Target Device
Data Table Address
MultiHop
Select
1
2
PLC5 Typed Write
S:23
N7:0
Yes
1756-6.5.3 - December 1999
9-4
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
4. Select the MultiHop tab in the Setup Screen.
5. Enter the following data in the To Address field (the other fields are filled in automatically by the software):
From Device
This PLC5
ControlLogix Backplane
1756-CNB
From Port To Address Type
2 1756-CNB Node (dec)
N/A
N/A
1756 Backplane Slot (dec)
ControlNet Node (dec)
6. From the Edit menu, select Verify Project.
7. Save the file.
To Address
1
3
16
1756-6.5.3 - December 1999
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
9-5
Download the Program
1. From the Comms menu, select System Communications.
The System Options window will appear with the System
Communications tab open.
2. Select AB_KTC-1 as the Driver and click on Who Active.
The RSWho window will appear (Your window may appear different depending upon the drivers and other devices you have installed).
3. Double-click on the PLC-5/40C processor at node 11.
4. When the System Communications tab reappears, click on the
Download button.
1756-6.5.3 - December 1999
9-6
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
You will see a window similar to the following one.
5. Click on Yes to download the program.
•
It is not necessary to keep the existing Online ControlNet configuration.
6. Go Online and put the processor in Run mode.
7. Minimize RSlogix5.
Test the Example Application
Perform the following steps to test the example application:
1. Start another session of RSLogix5.
2. From the Comms menu in RSLogix5 select System Comms.
The System Options window will appear with the System
Communications tab open.
Verify that the
AB_KTC-1 driver is selected.
Verify that the Reply Timeout is set to a minimum of 10 seconds.
1756-6.5.3 - December 1999
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
9-7
3. Click on Who Active.
The RSWho window will appear. (Your window may look different depending upon the drivers and other devices you have installed).
4. Drill down the tree through the ControlNet driver to the PLC-5/40C processor at ControlNet node 16 (1785-L40C15 in this example).
5. When the System Communications tab reappears, click on the Online button.
If no program is loaded in the PLC-5C processor, a pop-up window will appear with the message “You cannot go Online to DEFAULT program.”
6. Enter a new processor name of your choice (e.g., “Receiver”) and click on OK.
• Disregard any warnings about ControlNet devices.
• It is not necessary to save the program.
• You do not have to put the processor into Run mode.
1756-6.5.3 - December 1999
9-8
PLC-5C to PLC-5C Unscheduled Messaging Over Two ControlNet Networks
7. Double-click on N7 in the data file list.
You should see the following screen:
Verify that this value is being updated.
When you see N7:0 being updated at one second intervals the message is being sent successfully from the PLC-5C processor on ControlNet network #1, node 11, to the PLC-5C processor on ControlNet network #2, node 16.
This concludes the PLC-5 to PLC-5 unscheduled messaging over two
ControlNet networks example.
1756-6.5.3 - December 1999
Chapter
10
Controlling I/O Over a ControlNet Network
About the Example Application
This example application uses scheduled communications to read data from a remote digital input module and send data to a remote digital output module. The example simulates a parts counter operation.
The basic procedure given in this example can also be used to configure and schedule FLEX I/O on a ControlNet network.
The local ControlLogix chassis contains the Logix5550 controller in slot 0 and the “parent” 1756-CNB module (configured as node 1) in slot 1. The remote chassis contains a “child” 1756-CNB module (configured as node 6) in slot 1 and the I/O modules in slots 2 and 3. Network scheduling is done using RSNetworx for ControlNet software.
What you will do
Set Up the Example Application
Create the Example Application
Add the Local CNB Module to the I/O Configuration
Add the Remote CNB Module to the I/O Configuration
Add the Remote I/O Modules to the I/O Configuration
Edit the Controller Tags
Create the Ladder Logic Program
Download the Program
Schedule the Network Using RSNetWorx for ControlNet
Test the Example Application
See page
1756-6.5.3 - December 1999
10-2
Controlling I/O Over a ControlNet Network
Set Up the Example Application
Change your system configuration to that shown below:
Slot 0 1 Slot 1 2 3
Local
Chassis
Data
Remote
Chassis
Logix5550
Controller
1756-CNB
(Node 1)
ControlNet Network
1756-CNB
(Node 6)
1756-OB16I
Digital Output
1756-IB16
Digital Input
PC with
1784-KTCX15
Interface
•
Verify that the Logix5550 controller, I/O modules, and the 1756-CNB modules are in the correct slots as shown above.
•
Verify that the node addresses for the 1756-CNB modules are 1 and 6 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Example Application
Perform the following steps to create the example application:
1. Open the RSLogix5000 software.
2. From the File menu, select New. The New Controller pop-up window will appear.
1756-6.5.3 - December 1999
Controlling I/O Over a ControlNet Network
10-3
3. Enter an appropriate name for the Controller, e.g., “I/O Controller.”
4. Select the correct Chassis Type, Slot Number of the Logix5550 controller, and folder where you want to save the file (Create In). Click on OK.
You will now add the remote digital I/O modules to the controller’s I/O configuration. This involves several steps. First, you must add the controller’s local 1756-CNB module to its I/O configuration. Then you add the 1756-CNB in the remote chassis with the digital I/O modules as a
“child” of the local 1756-CNB module. Finally, you add the I/O modules as
“children” of the remote 1756-CNB module.
Add the Local CNB Module to the I/O Configuration
1. Select the IO Configuration folder in the project window and click the right mouse button.
The following pop-up window will appear.
2. Select New Module.
1756-6.5.3 - December 1999
10-4
Controlling I/O Over a ControlNet Network
The Select Module Type window will appear.
3. Select the 1756-CNB/B or 1756-CNBR/B module and click on OK.
The Module Properties window will appear.
1756-6.5.3 - December 1999
4. Enter the following parameters:
Name
Slot
Electronic Keying
Local_CNB
1
Compatible Module
5. Click on Finish to accept the configuration.
Add the Remote CNB Module to the I/O Configuration
Next, you must add the remote 1756-CNB as a “child” of the local
1756-CNB.
Controlling I/O Over a ControlNet Network
10-5
In a FLEX I/O system, you would add a FLEX ControlNet adaptor instead of the remote CNB module.
1. In the Project window, right click on the local 1756-CNB under the I/O
Configuration folder and select New Module from the pop-up window.
The Select Module Type window will appear.
2. Select the 1756-CNB/B or 1756-CNBR/B module from the list.
1756-6.5.3 - December 1999
10-6
Controlling I/O Over a ControlNet Network
The Module Properties window will appear.
3. Enter the following parameters:
Name
Node
Chassis Size
Slot
Comm Format
Electronic Keying
Remote_CNB
6
(Enter your chassis size)
1
Rack Optimization
Compatible Module
4. Click on Next. The following page will appear:
1756-6.5.3 - December 1999
5. Make sure the Requested Packet Interval (RPI) is 5ms or greater for this example.
Remember that you cannot set the RPI faster than the NUT. See page 1-7.
Controlling I/O Over a ControlNet Network
10-7
6. Click on the Finish button to accept the configuration. The remote
1756-CNB module should appear indented under the local 1756-CNB in the I/O Configuration folder.
Add the Remote I/O Modules to the I/O Configuration
You must now add the remote I/O modules to the I/O Configuration List under the remote 1756-CNB module.
In this example, you will add a a 1756-IB16 digital input module and a
1756-OB16I digital output module with standard configurations. Use these steps as a guide if you are configuring different I/O modules for your system.
This example application uses the I/O module default configurations. For information on altering the default configurations see the ControlLogix
Digital I/O Module User Manual, publication 1756-6.5.8.
Add the Remote Digital Input Module
1. Right click on the remote 1756-CBN under the I/O Configuration folder and select New Module.
1756-6.5.3 - December 1999
10-8
Controlling I/O Over a ControlNet Network
The Select Module Type window will appear.
2. Select the 1756-IB16 digital input module from the list.
The Module Properties window will appear.
1756-6.5.3 - December 1999
3. Enter the following parameters:
Name
Slot
Comm Format
Electronic Keying
Remote_Digital_Input
2
Rack Optimization
Compatible Module
If you want to alter the default parameters, click on Next. Refer to the
ControlLogix Digital I/O User Manual, publication 1756-6.5.8, for details.
4. Click on the Finish button to accept the configuration.
Controlling I/O Over a ControlNet Network
10-9
The digital input module will appear indented under the remote
1756-CNB module.
Add the Remote Digital Output Module
5. Right click on the remote 1756-CNB module and again select New
Module.
The Select Module Type window will appear.
6. Select the 1756-OB16I digital output module from the list.
1756-6.5.3 - December 1999
10-10
Controlling I/O Over a ControlNet Network
The Module Properties window will appear.
7. Enter the following parameters:
Name
Slot
Comm Format
Electronic Keying
Remote_Digital_Output
3
Rack Optimization
Compatible Module
If you want to alter the default parameters, click on Next. Refer to the
ControlLogix Digital I/O User Manual, publication 1756-6.5.8, for details.
8. Click on the Finish button to accept the configuration.
The I/O Configuration in the Project window should look similar to the one shown below.
1756-6.5.3 - December 1999
Edit the Controller Tags
Controlling I/O Over a ControlNet Network
10-11
1. Double-click on the Controller Tags folder in the project window.
Note that the system has created the tags for the remote 1756-CNB module and for the remote digital I/O modules.
User creates this tag.
Tags for remote
1756-CNB and remote I/O created by the system.
2. Select the Edit Tags tab at the bottom of the Controller Tags window.
3. Create the following tag:
Tag
Parts_Count
Type
Counter
1756-6.5.3 - December 1999
10-12
Controlling I/O Over a ControlNet Network
Create the Ladder Logic Program
1. Double-click on Main Routine under the Main Program folder, and enter the following program:
2. Save the program, using an appropriate name (e.g. “Remote_IO”).
Download the Program
(1)
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
1756-6.5.3 - December 1999
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
Controlling I/O Over a ControlNet Network
10-13
3. Drill down the tree through the ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button to download the program to the Logix5550 controller in the local chassis.
5. Minimize RSLogix5000.
Schedule the Network Using
RSNetWorx for ControlNet
You must run RSNetWorx for ControlNet to enable the I/O modules in the remote I/O chassis. Running RSNetWorx transfers configuration data to networked modules and establishes a Network Update Time (NUT) for
ControlNet that is compliant with the desired communication options specified for each module.
Perform the following steps to schedule and optimize your network:
1. Start the RSNetWorx for ControlNet software. The RSNetWorx main window will appear:
2. From the Network menu, select New.
3. Check the Edits Enabled box and go Online
1756-6.5.3 - December 1999
10-14
Controlling I/O Over a ControlNet Network
The Browse for Network window will appear with a list of available drivers. (Your list may appear different from that shown below, but you should have the AB_KTC-1 driver configured as described in
4. Select the AB_KTC-1 driver and click on OK.
5. If you receive a message that there is an Online/Offline mismatch, select the Use online data (upload) option and click on OK.
The Save As window will appear:
1756-6.5.3 - December 1999
6. Enter an appropriate name for the ControlNet configuration file (e.g.,
“Sched_IO”) and click on Save.
Controlling I/O Over a ControlNet Network
10-15
RSNetWorx will browse the network for the attached devices. When it is done browsing, your network window should appear similar to that shown below:
7. Verify that the devices and their network node addresses displayed are correct.
Verify the Network Properties
Make sure that the network update time (NUT), Max Scheduled Address, and Max Unscheduled Address are set correctly.
1. Select Network from the main menu bar and Properties from the pull-down menu.
The Network Properties window will appear:
1756-6.5.3 - December 1999
10-16
Controlling I/O Over a ControlNet Network
2. Make sure that these parameters to are set to the following values:
In this field
Network_Update_Time (ms)
Max Scheduled Address
Select
5 ms
(1)
10
(2)
Max Unscheduled Address
(1)
(2)
(3)
17
(3)
Remember that the requested packet interval (RPI) for any of the devices on the network cannot be faster than the NUT.
This should be set to a value 3 or 4 above the highest scheduled node on the network, in this case the 1756-CNB module at address 6.
At a minimum, this should be set to the highest node address on the network, in this case the 1784-KTXC15 card at node 17.
3. Click on OK.
Survey the Network for Connected Devices
Next, have RSNetWorx for ControlNet survey the network for all connected devices.
1. Check the Edits Enabled box.
2. From Selection pull-down menu, select Survey Network.
1756-6.5.3 - December 1999
Controlling I/O Over a ControlNet Network
10-17
When RSNetWorx for ControlNet is finished surveying, the network window should appear similar to that shown below.
Schedule the Network and Save the Configuration
1. From the Network menu, select Save.
The following pop-up window will appear:
2. Select “Optimize and re-write schedule for all connections” and click on OK.
The network is now configured and scheduled, and the local controller is able to communicate with the remote ControlNet devices.
1756-6.5.3 - December 1999
10-18
Controlling I/O Over a ControlNet Network
Test the Example Application
You will test the example application by using a momentary switch to simulate a parts sensor.
1. Wire the 1756-IB16 digital input module as shown in the following figure:
1756-IB16
IN-0
1
3
IN-2
GND-0
9
+
24V
–
2. Restore the RSLogix5000 software and place the controller in Run mode.
3. Repeatedly press and release the momentary switch at IN-0 on the
1756-IB16 digital input module. Each time you press the switch you should see the Parts_Count accumulated value increment on the screen and the LED display of the OB16I output module increment in binary.
Accumulated Value will increment and be moved to Output module.
LED display will
increment in binary count
4. Press and release the momentary switch at IN-1 on the 1756-IB16 digital input module. You should see the accumulated value of the Parts_Count reset to zero and all of the LEDs on the 1756-OB16I output module turn off.
Refer to the ControlLogix Digital I/O Modules User Manual, publication
1756-6.5.8, for assistance in wiring and debugging the I/O modules.
This completes the scheduled I/O example.
1756-6.5.3 - December 1999
Chapter
11
Adding an I/O Chassis to an Existing
ControlNet Network
About the Example Application
Each 1756-CNB interface module can support up to 64 bidirectional connections. This example application expands the ControlNet network from the previous chapter by adding another remote I/O chassis. The new remote chassis contains another “child” 1756-CNB module (configured as node 3) in slot 0 and an analog output module in slot 1. The ladder program of the previous chapter is modified to produce a varying signal at one of the analog output channels. Note that these changes do not affect the operation of the digital I/O modules in the first remote chassis.
What you will do
Set Up the Example Application
Create the Example Application
Add the Second Remote 1756-CNB Module to the I/O
Configuration
Add the Remote Analog I/O Module to the I/O
Configuration
Edit the Controller Tags
Modify the Ladder Program
Download the Program
Schedule the Network Using RSNetWorx for ControlNet
Test the Example Application
See page
1756-6.5.3 - December 1999
11-2
Adding an I/O Chassis to an Existing ControlNet Network
Set Up the Example Application
Change the system configuration of the previous chapter to that shown below by adding the second remote chassis with a 1756-CNB module and a
1756-OF6VI analog output module:
Slot 0 1
Slot 1 2 3
Local
Chassis
Remote
Chassis
#1
Logix5550
Controller
1756-CNB
(Node 1)
ControlNet
Network
PC with
1784-KTCX15
Interface
1756-CNB
(Node 6)
Slot 0 1
1756-OB16I
Digital Output
1756-IB16
Digital Input
Remote
Chassis
#2
1756-OF6VI
Analog Output
1756-CNB
(Node 3)
•
Verify that the Logix5550 controller, I/O modules, and 1756-CNB modules are in the correct slots as shown above.
•
Verify that the node addresses for the 1756-CNB modules are 1, 6, and 3 as shown.
•
Verify that the KTCX15 driver card is configured as described on
•
Verify that all wiring and cabling is properly connected.
Create the Example Application
Perform the following steps to create the example application:
1. Open the RSLogix5000 software.
2. From the File menu, open the program created for the example
application in chapter 10 (i.e., “Remote_IO”).
3. Save the program as Remote_IO_2.
1756-6.5.3 - December 1999
Adding an I/O Chassis to an Existing ControlNet Network
11-3
Add the Second Remote 1756-CNB Module to the I/O Configuration
1. Right click on the local 1756-CNB under the I/O Configuration folder and select New Module from the pop-up window.
The Select Module Type window will appear.
2. Select the 1756-CNB/B or 1756-CNBR/B module from the list.
1756-6.5.3 - December 1999
11-4
Adding an I/O Chassis to an Existing ControlNet Network
The Module Properties window will appear.
3. Enter the following parameters:
Name
Node
Chassis Size
Slot
Comm Format
Electronic Keying
Remote_CNB_2
3
(Enter your chassis size)
0
None
Compatible Module
4. Click on the Next button. The following page will appear.
1756-6.5.3 - December 1999
5. Make sure the Requested Packet Interval (RPI) is 5ms or greater.
Remember that you cannot set the RPI faster than the NUT. See page 1-7.
6. Click on the Finish button to accept the configuration.
Adding an I/O Chassis to an Existing ControlNet Network
11-5
The Remote_CNB_2 module will appear indented under the local
1756-CNB in the I/O Configuration folder.
Add the Remote Analog I/O Module to the I/O Configuration
You must now add the new remote I/O module to the I/O Configuration List under the remote 1756-CNB module you just created.
In this example, you will add a 1756-OF6VI analog output module and configure one of its channels for a 0V to 10V output range. Use these steps as a guide if you are configuring a different I/O module for your system.
For additional information on configuring an analog I/O module see the
ControlLogix Analog I/O Module User Manual, publication 1756-6.5.9.
1. Right click on the Remote_CNB_2 module under the I/O Configuration folder and select New Module from the pop-up window.
1756-6.5.3 - December 1999
11-6
Adding an I/O Chassis to an Existing ControlNet Network
The Select Module Type window will appear.
2. Select the 1756-OF6VI analog output module from the list.
The Module Properties window will appear.
1756-6.5.3 - December 1999
3. Enter the following parameters:
Name
Slot
Comm Format
Electronic Keying
Remote_Analog_Output
1
Float Data (default)
Compatible Module
You will now configure the channel settings of the I/O module. When you do this a series of pages will appear in the Module Properties window.
For a detailed explanation of the following pages, see the ControlLogix
Analog I/O User Manual, publication 1756-6.5.9.
Adding an I/O Chassis to an Existing ControlNet Network
11-7
4. Click on the Next button. The following page will appear:
5. Make sure the Requested Packet Interval (RPI) is set to 5ms or greater.
Important: The RPI cannot be set to a rate faster than the network update time (NUT). The network cannot send data at a rate that is faster than NUT. Use RSNetWorx for ControlNet to verify or
change the NUT. See page 11-13.
.
6. Click on Next to move to the next page.
This page is used during online monitoring but not during initial configuration.
7. Click on Next to move to the first Channel Configuration page.
1756-6.5.3 - December 1999
11-8
Adding an I/O Chassis to an Existing ControlNet Network
The choices available on the Channel Configuration pages will vary according to the module being configured. The page below appears for the 1756-OF6VI module.
8. Click on Channel 0 and enter the following Scaling parameters:
(1)
High Signal
10.0 V
High Engineering
8000
(1)
Low Signal
0.0 V
Low Engineering
0
This scaling is selected to use the 13 bit voltage resolution of the 1756-OF6VI. See specifications in publication 1756-6.5.9.
9. Click on Next twice to access the Limits page.
1756-6.5.3 - December 1999
10.Enter the following Limits:
High Clamp
Low Clamp
8000
0
Tags for new remote
1756-CNB and remote analog I/O created by the system.
Adding an I/O Chassis to an Existing ControlNet Network
11-9
11.Click on Finish to accept the configuration.
The I/O Configuration tree should now look similar to the one shown below.
Edit the Controller Tags
1. Double-click on the Controller Tags folder in the project window.
2. Note that new tags have been added for the remote CNB module and the remote analog I/O module.
1756-6.5.3 - December 1999
11-10
Adding an I/O Chassis to an Existing ControlNet Network
3. Select the Edit Tags tab at the bottom of the Controller Tags window.
4. Create the following tag:
Tag Name
Analog_Output
Type
Timer
Modify the Ladder Program
1. Double-click on Main Routine under the Main Program folder, and add rungs 3 and 4 to the ladder program:
2. Save the program.
Download the Program
(1)
1. Click on the Communications menu and select Who Active.
2. The Who Active window will appear (Your window may look different depending upon the drivers and other devices you have installed).
1756-6.5.3 - December 1999
(1)
This example uses RSLogix5000 version 2.25. See Appendix D if you are using version 2.10 or earlier.
Adding an I/O Chassis to an Existing ControlNet Network
11-11
3. Drill down the tree through the ControlNet driver and the 1756-CNB module at node 1 to the controller in slot 0.
4. Highlight the controller and click on the Download button.
5. Minimize RSLogix5000.
Schedule the Network Using
RSNetWorx for ControlNet
Whenever you add or remove a remote I/O module you must run
RSNetWorx for ControlNet to transfer the new configuration data to networked modules and establish a Network Update Time (NUT) for
ControlNet that is compliant with the desired communication options specified for each module during configuration.
Perform the following steps to schedule and optimize the network:
1. Start the RSNetWorx for ControlNet software.
The RSNetWorx for ControlNet main window will appear.
2. From the Network menu, select New.
3. Check the Edits Enabled box and go Online
1756-6.5.3 - December 1999
11-12
Adding an I/O Chassis to an Existing ControlNet Network
The Browse for Network window will appear with a list of available drivers. (Your list may appear different from that shown below, but you should have the AB_KTC-1 driver configured as described in
4. Select the AB_KTC-1 driver and click on OK.
5. If you receive a message that there is an Online/Offline mismatch, select the Use online data (upload) option and click on OK.
The Save As window will appear:
1756-6.5.3 - December 1999
6. Enter an appropriate name for the network (e.g., “Sched_IO_2”) and click on Save.
Adding an I/O Chassis to an Existing ControlNet Network
11-13
RSNetWorx for ControlNet will browse the network for the attached devices. When it is done browsing, your ControlNet network should appear similar to that shown below:
7. Verify that the devices shown and their network node addresses are correct.
Verify the Network Properties
Make sure that the network update time (NUT), Max Scheduled Address, and Max Unscheduled Address are set correctly.
1. Select Network from the main menu bar and Properties from the pull-down menu.
The following window will appear:
1756-6.5.3 - December 1999
11-14
Adding an I/O Chassis to an Existing ControlNet Network
2. Make sure that these parameters to are set to the following values:
In this field
Network_Update_Time (ms)
Max Scheduled Address
Select
5 ms
(1)
10
(2)
Max Unscheduled Address
(1)
(2)
(3)
17
(3)
Remember that the requested packet interval (RPI) for any of the devices on the network cannot be faster than the NUT.
This should be set to a value 3 or 4 above the highest scheduled node on the network, in this case the 1756-CNB module at node 6.
At a minimum, this should be set to the highest node address on the network, in this case the 1784-KTXC15 card at node 17.
3. Click on OK.
Survey the Network for Connected Devices
Next, have RSNetWorx for ControlNet survey the network for all connected devices.
1. Check the Edits Enabled box.
2. From Selection pull-down menu, select Survey Network.
1756-6.5.3 - December 1999
Adding an I/O Chassis to an Existing ControlNet Network
11-15
When RSNetWorx for ControlNet is finished surveying, the network window should appear similar to that shown below.
Schedule the Network and Save the Configuration
1. From the File menu, select Save.
The following pop-up window will appear:
2. Select “Optimize and re-write schedule for all connections” and click on OK.
The network is now configured and scheduled, and the local controller is able to communicate with the remote ControlNet devices.
1756-6.5.3 - December 1999
11-16
Adding an I/O Chassis to an Existing ControlNet Network
Test the Example Application
Use the following procedure to test the operation of the remote analog output:
1. Connect a voltmeter across the channel 0 outputs of the 1756-OF6VI analog output module as shown in the following figure:
1756-OF6VI
OUT-0
1
RTN-0
5
+
V
–
2. Restore the RSLogix5000 software and place the controller in Run mode.
3. Measure the output voltage of channel 0. You should see it slowly rising to approximately 10V, reset to zero, and start rising again, etc.
4. Verify that the digital I/O modules in the other remote chassis are still
Refer to the ControlLogix Analog I/O Modules User Manual, publication
1756-6.5.9, and the ControlLogix Digital I/O Modules User Manual, publication 1756-6.5.8, for assistance in wiring and debugging the I/O modules, if needed.
1756-6.5.3 - December 1999
Adding an I/O Chassis to an Existing ControlNet Network
11-17
Adding 1756-CNB Modules to
Expand the Network
The ControlNet network in the example application can support a maximum of 64 remote bidirectional connections. To expand the network you can add additional 1756-CNB interface modules to the local chassis and connect them to remote 1756-CNB modules on the same or another ControlNet network. Each 1756-CNB module added to the local chassis can communicate with a maximum of 64 connections. For example, the system shown in the following figure can use one controller to support a theoretical maximum of 128 remote connections.
Remote Chassis #1 Local Chassis Remote Chassis #3
1756-CNB
(Node 6)
Logix5550
Controller
1756-CNB
(Node 1)
Remote Chassis #2
1756-CNB
(Node 2)
1756-CNB
(Node 12)
Remote Chassis #4
PC with
1784-KTCX15
Interface
To Other
Devices
1756-CNB
(Node 3)
1756-CNB
(Node 31)
Important: The number of connections that can actually be supported on a network is dependent upon many factors, including the network parameter settings. For example, at an RPI of 5ms, not more than 10 to 12 connections can be supported, at an RPI of 2ms only 4 connections can be supported.
1756-6.5.3 - December 1999
11-18
Adding an I/O Chassis to an Existing ControlNet Network
The RSLogix5000 I/O configuration for the expanded network is shown in the following figure. To add remote I/O modules to the configuration, add them to the remote 1756-CNB modules as you did in the example application.
Refer to Appendix A for information on allocating communication
connections in a ControlNet network.
This completes the expanded remote I/O example.
1756-6.5.3 - December 1999
Chapter
12
Troubleshooting
The 1756-CNB and 1756-CNBR modules are provided with the LED diagnostic indicators shown below. The diagnostics provided by these indicators is described in the following sections.
1756-CNB 1756-CNBR module status display and module status display and network module status indicator (red or green)
ControlNet status indicator(s)
20958-M
Module Status Indicator and Display
LED
OK
Off
Red
Display
Cause Action
None Module not communicating due to a power supply fault or internal fault.
1. Check the power supply.
2. Check the cable connectors.
3. Make sure the module is firmly seated in the chassis.
4. If the indicator remains off, replace the module.
None required.
INIT
X
Module is initializing
POST Module is running Power-On
Self Test (POST)
Module failed POST because the RAM test failed.
Replace the module.
1756-6.5.3 - December 1999
12-2
Troubleshooting
1756-6.5.3 - December 1999
LED Display
Cause Action
OK
Red ADDR
ERR
Module’s network address is set to 00, an invalid ControlNet address.
1. Remove the module from the chassis.
2. Set the network address switches to a unique address
(01-99).
3. Install the module in the chassis.
4. If off, turn chassis power supply on.
Replace the chassis.
RACK
ERR
CNP2
ERR
BPIC
ERR
Module is unable to read the size data stored in the
EEPROM because the EEPROM is uninitialized or invalid.
The module has detected that it is unable to be the keeper for this network due to a firmware incompatibility.
There is a hardware fault within the module.
The module has detected improper backplane operation.
This could be due to a noisy or defective backplane connection or bad hardware within the module.
Change this node’s address to a value of 2 or greater. Contact
Allen-Bradley for a compatible firmware update.
Replace the module.
1. Make sure your system is grounded properly.
2. Cycle power on the power supply or reset the counters using the
ControlLogix Gateway configuration software.
3. Remove the module and make sure its backplane connectors aren’t damaged.
4. If these steps fail to correct the problem, replace the module.
Replace the module.
CNIC
ERR
None
There is a hardware fault within the module.
Flashing
Red
ROM
UPDT
DUPL
NODE
Flash update is in progress.
Module’s network address is the same as another module’s on the link.
None required
1. Remove the module from the chassis.
2. Set the network address switches to a unique address
(01-99).
3. Install the module in the chassis.
4. If off, turn chassis power supply on.
BOOT Module has invalid firmware.
Update module firmware with
ControlFlash Update Utility.
Green OK Normal operation None required
Green or
Flashing
Green
BPA#
ERR
Module detected a different slot address than that latched in at power-up. Excessive noise on the backplane causes this error.
1. Make sure your system is grounded properly.
2. Cycle power on the power supply or reset the counters using the
ControlLogix Gateway configuration software.
3. Remove the module and make sure its backplane connectors aren’t damaged.
Troubleshooting
12-3
LED
OK
Green or
Flashing
Green
BPRX
ERR
Flashing
Green
Display
Cause
KPR
ERR
BW
XCED
SW
ERR
NET
ERR
Too many CRC errors being generated by the multicast backplane receiver, so the backplane multicast receivers have been shut off.
The configured keeper object within the module is unable to operate on the attached network.
Module is receiving too much network traffic and connections are timing out.
The network bandwidth has been exceeded.
Module’s network address has been changed since module power-up.
Network cabling error or no other nodes on network.
Action
Cycle power on the module or send a reset to the module. If condition persists, replace the module.
(This error is caused by a module hardware fault or noisy backplane.)
1. Verify that this module is attached to the correct network.
2. Rerun RSNetworx on this network to update the module’s keeper object.
None required (temporary condition).
If this happens frequently, add another 1756-CNB or -CNBR and split the traffic between them.
1. Optional, see page.)
Turn chassis power supply off.
2. Remove the module from the chassis.
3. Set the network address switches to a unique address
(01-99).
4. Install the module in the chassis.
5. If off, turn chassis power supply on.
Re-check your network cabling and make sure another node on the network is active (online).
ControlNet Network Status Indicators
• steady - indicator is on continuously in the defined state.
• alternating - the two indicators alternate between the two defined states at the same time (applies to both indicators viewed together). The two indicators are always in opposite states, out of phase.
• flashing - the indicator alternates between the two defined states (applies to each indicator viewed independent of the other). If both indicators are flashing, they must flash together, in phase.
Cause Action
and
A
Off
Steady red
B
Alternating red/green
No power
Faulted unit
Self-test
None or power up.
Cycle power or reset unit
If fault persists, contact A-B representative or distributor.
None
1756-6.5.3 - December 1999
12-4
Troubleshooting
Cause Action
and
A B
Alternating red/off Incorrect node configuration Check network address and other
ControlNet configuration parameters.
Off Channel disabled
Steady green Normal operation
Program network for redundant media, if required.
None.
Flashing green/off Temporary errors
Node is not configured to go on line
Flashing red/off Media fault
None; unit will self-correct.
Make sure the Keeper node is present and working
.
(1)
Check media for broken cables, loose connectors, missing terminators, etc.
(1)
No other nodes present on network
Flashing red/green Incorrect network configuration
Add other nodes to the network.
Cycle power or reset unit.
If fault persists, contact A-B representative or distributor.
The Keeper node is the node responsible for distributing ControlNet configuration data to all nodes on the network.
1756-6.5.3 - December 1999
Appendix
A
Allocating Communication Connections
What This Appendix Contains
This appendix describes how to determine the connection requirements for a ControlLogix system.
For information about
How the ControlLogix system uses connections
See page
Determining I/O connection requirements
Determining connections for produced and consumed tags
Determining connections for messaging
Determining total connection requirements
How the ControlLogix System
Uses Connections
The ControlLogix system uses a connection to establish a communication link between two devices. This includes Logix5550 controllers, communication modules, input/output modules, produced/consumed tags, and messages. Connections take many forms:
•
Logix5550 controller direct to local I/O or local communication module
•
Logix5550 controller direct to remote I/O or remote communication module
•
Logix5550 controller to remote chassis (rack optimized)
• produced and consumed tags
• messaging, including block-transfers
You indirectly determine the number of connections that the Logix5550 controller requires by configuring the controller to communicate with other devices in the system.
Each module in the ControlLogix system supports a limited number of active connections. Take these connection limits into account when designing your system.
1756-6.5.3 - December 1999
A-2
Allocating Communication Connections
These modules support the following number of connections:
Device Description Connections
1756-L1 Logix5550 Controller 250 connections
1756 I/O modules ControlLogix I/O modules 16 connections
1756-CNB
1756-CNBR
1756-ENET
ControlLogix ControlNet
Interface module
64 connections
ControlLogix Ethernet Bridge 64 TCP/IP connections
48 ControlLogix connections maximum per 1 TCP/IP connection
128 ControlLogix connections maximum per module
1756-DHRIO
1756-DNB
ControlLogix DH+ Bridge and
Remote I/O Scanner
The Ethernet module also supports 128 in and 128 out unscheduled ControlLogix connections. Unscheduled connections within a TCP/IP connection do not count toward the total of 48 possible ControlLogix connections.
32 connections per DH+ channel
32 rack connections and 16 block-transfer connections per remote I/O channel
ControlLogix DeviceNet Bridge 2 connections
Determining Connections for I/O Modules
All I/O modules can have a direct, bidirectional connection to the
Logix5550 controller. A 1756-CNB ControlNet interface module supports the ability to organize a chassis of digital I/O modules into one bidirectional connection (rack connection), rather than requiring a direct bidirectional connection for each individual I/O module.
You can configure these types of connections to these modules:
A Logix5550 connection to
local I/O remote I/O
Can use this connection type
direct connection only direct connection or rack optimized connection
Direct connections for I/O modules
A direct connection is a real-time, data transfer link between the Logix5550 controller and an I/O module. The Logix5550 controller maintains and monitors the connection between the controller and the I/O module. Any break in the connection, such as a module fault or the removal of a module from the chassis while under power, causes the controller to set fault status bits in the data area associated with the module.
If a Logix5550 controller has a module configuration that references a slot in the control system, the controller periodically checks for the presence of a device in that slot. When a device’s presence is detected there, the controller automatically sends the module configuration.
1756-6.5.3 - December 1999
Allocating Communication Connections
A-3
If the module configuration is appropriate for the I/O module found in the slot, a connection is made and operation begins. If the module configuration is not appropriate, the connection is rejected. You can view the fault message on the Connection tab of the module’s properties. Module configuration can be inappropriate for any of a number of reasons (for example, a mismatch in electronic keying that prevents normal operation).
In this example, the owner controller has three direct connections with I/O modules in the remote chassis.
Using Direct Connections with I/O in a Remote Chassis
Local chassis Remote chassis
I
N
P
U
T
T
P
U
T
O
U
Slot 1 RPI = 5mS
Slot 2 RPI = 50mS
Slot 3 RPI = 25mS
I
N
P
U
T
P
U
T
O
U
T
I
N
P
U
T
ControlNet
Owner Logix 5550
Controller
ControlNet
Interface Module
ControlNet
Interface module
The local controller in this example uses these bidirectional connections:
Connection Type
Logix5550 controller to local I/O module
Logix5550 controller to remote I/O module
Logix5550 controller to remote 1756-CNB module
Module Quantity Connections per Module
2
3
1
1
1 1
Total
Total
Connections
2
3
1
6
When you select the communication format for the I/O module, the owner and listen-only formats are direct connections.
Rack optimized connections for I/O modules
When a digital I/O module is located in a remote chassis (with respect to its owner), you can select rack optimized communication. A rack optimized connection consolidates connection usage between the owner and the digital
I/O in the remote chassis. Rather than having individual, direct connections for each I/O module, there is one connection for the entire chassis.
1756-6.5.3 - December 1999
A-4
Allocating Communication Connections
In this example, the owner controller communicates with all the digital I/O in the remote chassis but uses only one connection. The data from all three modules is sent together simultaneously at a rate specified by the
1756-CNB connection. This option eliminates the need for the three separate connections shown in the previous example.
Local chassis
Using a Rack Optimized Connection with I/O in a Remote Chassis
Remote chassis
P
U
I
N
T
T
P
O
U
U
T
Rack optimized connection for all I/O
I
N
P
U
T
P
U
T
O
U
T
I
N
P
U
T
ControlNet
41021
Owner Logix 5550
Controller
ControlNet
Interface Module
ControlNet
Interface module
The local controller in this example uses these bidirectional connections:
Connection Type
Logix5550 controller to local I/O module
Logix5550 controller to remote 1756-CNB module
Module Quantity Connections per Module
2
1
1
1
total
Total
Connections
2
1
3
The rack optimized connection conserves ControlNet connections and bandwidth, but it limits the status and diagnostic information that is available from the I/O modules.
1756-6.5.3 - December 1999
Allocating Communication Connections
A-5
To configure an I/O module for a rack optimized connection, you select the
Rack Optimization communication format. Most discrete I/O modules support a rack optimized connection. If this option does not appear when you are selecting communication format for an I/O module, the module does not support the rack optimized connection.
Select Rack Optimized for a rack connection
Combining direct and rack optimized connections
A remote chassis can have both a rack optimized connection and direct connections to analog or digital I/O. In this example, the owner controller uses a rack optimized connection to communicate with two digital I/O modules. The owner controller also uses a direct connection to communicate with an analog module in the same chassis.
Using a Rack Optimized Connection and a Direct Connection with I/O in a Remote Chassis
Local chassis Remote chassis
I
N
P
U
T
P
U
T
O
U
T
Rack optimized connection
Slot 3 RPI = 25mS
ControlNet
Owner Logix 5550
Controller
ControlNet
Interface Module
P
U
I
N
T
O
U
T
P
U
T
L
O
G
A
N
A
ControlNet
Interface module
41030
1756-6.5.3 - December 1999
A-6
Allocating Communication Connections
The local controller in this example uses these bidirectional connections:
Connection Type
Logix5550 controller to local I/O module
Logix5550 controller to remote analog I/O module
Logix5550 controller to remote 1756-CNB module
Module Quantity Connections per Module
2
1
1
1
1
1
total
Total
Connections
2
1
1
4
Determining Connections for
Produced and Consumed Tags
The Logix5550 controller supports the ability to produce (broadcast) and consume (receive) system-shared tags. System-shared data is accessible by multiple controllers over the ControlBus backplane or over a ControlNet network. Produced and consumed tags each require connections.
Connections for produced tags
By default, a produced tag allows two other controllers to consume the tag, which means that as many as two controllers can simultaneously receive the tag data. The local controller (producing) must have one unidirectional connection for each consumer and one more unidirectional connection for the produced tag. The default produced tag requires three unidirectional connections.
You define the number of consumers through the Tag Properties.
specify the maximum number of consumers for this produced tag
As you increase the number of controllers that can consume a produced tag, you also reduce the number of connections the controller has available for other operations, like communications and I/O.
1756-6.5.3 - December 1999
Allocating Communication Connections
A-7
Optimizing produced tags
Each produced tag requires connections that can be used for other controller operations. To minimize the of produced tags, and the number of required connections, consider grouping data into an array or a user-defined structure and producing only that array or structure, as long as the array or structure is not larger than 500 bytes.
Compare the following two examples to see how a user-defined data type
(structure) reduces the number of connections required to produce the same data.
Example 1: Producing data as individual tags
Produced Tag Data Type
height width weight
W_flag
L_flag
DINT
DINT
REAL
DINT
DINT
Connection for the Tag
1
1
1
1
1
Number of
Consumers Total Connections
3
3
3
3
3
4
4
4
4
4
Total: 20 connections
Example 2: Producing data as a user-defined data type (structure)
Produced Tag Data Type
Load_Info User-defined structure of: height
(DINT) width (DINT) weight (REAL)
W_flag (DINT)
L_flag (DINT)
Connection for the Tag
1
Number of
Consumers Total Connections
3 4
Total: 4 connections
Connections for consumed tags
Each consumed tag requires one connection for the controller that is consuming the tag.
1756-6.5.3 - December 1999
A-8
Allocating Communication Connections
Determining Connections for Messaging
Some types of messages use a connection to send or receive data. Some also give you the option of either leaving the connection open (cache) or closing the connection when the message is done transmitting. The following table shows which messages use a connection and whether or not you can cache the connection:
This type of message
CIP data table read or write
PLC2, PLC3, PLC5, or SLC (all types)
CIP generic block-transfer read or write
Using this communication method
CIP
CIP
CIP with Source ID
DH+
N/A
N/A
Uses a connection
á
á
á
Which you can cache
á
á
Use the following table to select a cache option for a message.
If the message executes
repeatedly infrequently
Then
Select the Cache
Connections check box
Clear the Cache
Connections check box
Because
This will keep the connection open and optimize execution time. Opening a connection each time the message executes increases execution time.
This will close the connection upon completion, which frees up that connection for other uses.
1756-6.5.3 - December 1999
Allocating Communication Connections
A-9
Determining Total
Connection Requirements
The Logix5550 controller supports 250 connections. Use the following table to tally connection requirements for a Logix5550 controller.
Connection Type
local I/O module remote I/O module (direct connection only)
1756-MO2AE servo module local 1756-CNB module remote 1756-CNB module through local
1756-CNB module
1756-DHRIO module
1756-ENET module
1756-DNB module
Universal Remote I/O logical racks or chassis of less than logical rack produced tag produced tag number of consumers consumed tags block-transfer messages other messages
Module
Quantity
Connections per Module
1
1
3
0
1
2
1
1
0
Total
Connections
1
1
1
1
1
Total
1756-6.5.3 - December 1999
A-10
Allocating Communication Connections
1756-6.5.3 - December 1999
Appendix
B
Creating Produced and Consumed Tags
What This Appendix Contains
This appendix explains produced and consumed tags and describes how to create them.
For information about
Produced Tags
Producing a tag from a Logix5550 Controller to a ControlNet PLC-5 Processor
Consumed Tags
Consuming a tag from a ControlNet PLC-5
Processor to a Logix5550 Controller
See page
Produced Tags
1. In the Tag Editor, select the tag.
2. Click the right mouse button and select Tag Properties
A produced tag is a tag that is configured for periodic transmission from the controller via the ControlBus backplane. To create a produced tag, create a controller scoped tag (base, alias, or consumed) and specify to produce the tag.
Check this box
1756-6.5.3 - December 1999
B-2
Creating Produced and Consumed Tags
To specify a produced tag.
In this field
Name
Description
Tag Type
Data Type
Enter or select
Type a name for the tag.
Type a description for the tag (optional).
Select one of these:
Base for a normal tag
Alias for a tag that references another tag or part of another tag
Consumed for a tag whose value is produced by another controller
Select the data type. A produced tag type is limited to DINT, Real, or Structure. The programming software displays a list of the available data types. The list consists of the predefined data types and any user-defined structures.
If the tag is to be an array, specify the number of elements in each dimension. There can be as many as 3 dimensions. If the tag is not an array, or you do not want all 3 dimensions, set the dimension fields to zero (0).
All produced tags must have controller scope.
Scope
Style Select the display style of the tag. The programming software displays a list of the available styles, which depends on the data type. The style you select becomes the default display type when monitoring that tag with the programming software.
Produce this tag Select this check box. Specify how many other controllers that can consume the tag.
You can only choose to create a produced tag when programming offline.
A produced or consumed tag cannot be larger than 500 bytes. The tag must also fit within the bandwidth of the network. See the Logix5550 Controllers
User Manual, publication 1756-6.5.12 for more information.
You can produce a base, alias, or consumed tag. The consumed tag in a
Logix5550 controller must have the same data type as the produced tag in the originating Logix5550 controller. The Logix5550 controller performs type checking to ensure proper data is being received.
You can display a list of produced tags in the tag editor of the current project.
Select Produced Tags
1756-6.5.3 - December 1999
Produced tags require connections. The number of connections depends on the amount of data and how many controllers are producing and consuming
tags. For more information refer to Appendix A.
Consumed Tags
1. In the Tag Editor, select the tag.
2. Click the right mouse button and select Tag Properties
Creating Produced and Consumed Tags
B-3
A consumed tag represents data that is produced (broadcast) by one controller and received and stored by the consuming controller.
To specify a consumed tag:
In this field
Name
Description
Tag Type
Controller
Type or select
Type a name for the tag.
Type a description for the tag (optional).
Select: Consumed
Select the name of the other controller. You must have already created the controller in the controller organizer for the controller name to be available.
Type the name of the tag you want to consume from the remote controller.
Remote Tag Name
Remote Instance
Important: The name must match the name in the remote controller exactly, or the connection faults.
RPI
(Requested Packet Interval)
Data Type
If the remote controller is a ControlNet PLC-5, this field is Remote Instance. Select the instance number (1-128) of the data on the remote controller.
Type the amount of time in msec between updates of the data from the remote controller. The local controller will receive data at least this fast.
Select the data type. A consumed tag type is limited to DINT, Real, or Structure. The programming software displays a list of the available data types. The list consists of the predefined data types and any user-defined structures.
Display Style
Produce this tag
If the tag is an array, specify the number of elements in each dimension. There can be as many as 3 dimensions. If the tag is not an array, or you do not want all 3 dimensions, set the dimension fields to zero (0).
If you are creating a consumed tag that refers to a tag whose data type is DINT or REAL, you can select a display style. This display style defines how the tag value will be displayed in the data monitor and ladder editor. The display style does not have to match the display style of the tag in the remote controller.
Check this box to make this tag available to other controllers. Specify how many controllers can consume the tag.
You can only create a produced tag when programming offline.
Important: All consumed tags are automatically controller-scope.
1756-6.5.3 - December 1999
B-4
Creating Produced and Consumed Tags
A produced or consumed tag cannot be larger than 500 bytes. The tag must also fit within the bandwidth of the network. See the Logix5550 Controllers
User Manual, publication 1756-6.5.12 for more information.
You can only create a consumed tag when programming offline.
To consume data from a remote controller, use RSNetWorx for ControlNet software to schedule the connection over the ControlNet network.
The produced tag in the originating Logix5550 controller must have the same data type as the consumed tag in the other Logix5550 controller. The
Logix5550 controller performs type checking to ensure proper data is being received.
Important: If a consumed-tag connection fails, all of the other tags being consumed from that remote controller stop receiving data as well.
You can display a list of consumed tags in the tag editor of the current project.
Select Consumed Tags
Produced tags require connections. The number of connections depends on the amount of data and how many controllers are producing and consuming
tags. For more information, see Appendix A.
1756-6.5.3 - December 1999
Creating Produced and Consumed Tags
B-5
Producing a tag from a
Logix5550 Controller to a
ControlNet PLC-5 Processor
To produce a tag that a ControlNet PLC-5 processor can consume, follow
the steps below. Refer to chapter 6 for an example.
1. Open the RSLogix5000 project.
2. Create a produced tag in the Logix5550 controller.
3. Open the RSNetWorx for ControlNet software.
4. In the ControlNet configuration for the target PLC-5 processor, create a
Receive Scheduled Message.
The input size of the scheduled message must match the number of bytes in the Logix5550 tag. A produced tag in the Logix5550 controller is always a multiple of 32 bits (DINT, REAL, or structure).
5. Reschedule (save) the network in RSNetWorx for ControlNet.
The ControlNet PLC-5 controller does not perform type checking. Make sure the PLC-5 data type can correctly receive the Logix5550 produced tag to ensure proper data is being received.
Consuming a tag from a
ControlNet PLC-5 Processor to a Logix5550 Controller
To consume a tag from a ControlNet PLC-5 processor, follow the steps
below. Refer to chapter 8 for an example.
1. Open the RSNetWorx for ControlNet software.
2. In the ControlNet configuration for the PLC-5 processor, create a Send
Scheduled Message.
Specify an output size of at least 2 (for a 32 bit double word). The size must be a multiple of 32 bit double words (specify 2, 4, 6, etc.).
3. Open the RSLogix5000 software.
4. In the controller organizer, add the PLC-5C processor to the I/O configuration.
5. Create a user-defined structure. The first member is a DINT. The second member is an INT array. The size of the INT array should match the output size entered in RSNetWorx.
6. Create a consumed tag of this user-defined type.
• Specify the instance of the Send Scheduled Data entry as the Remote
Instance of the tag.
• The requested packet interval (RPI) can be as low as the network update time (NUT).
7. Reschedule (save) the network in RSNetWorx for ControlNet.
1756-6.5.3 - December 1999
B-6
Creating Produced and Consumed Tags
1756-6.5.3 - December 1999
Appendix
C
Electronic Keying
!
ATTENTION: Be extremely cautious when you disable electronic keying. If used incorrectly, this option can lead to personal injury or death, property damage, or economic loss.
Specifying Electronic Keying
You specify electronic keying to ensure that a module being inserted or configured is of the proper type and firmware revision.
“least”
“moderate”
“most”
Keying
disable keying compatible module exact match
Description
No attributes of the software or hardware are required to match.
The module must be compatible with the software configuration. These characteristics must match:
• module type
• catalog number
• major revision
The minor revision must be equal to or greater than the one specified in the software.
The module must match the software configuration exactly. These characteristics must match:
• module type
• catalog number
• major revision
• minor revision
1756-6.5.3 - December 1999
C-2
Electronic Keying
1756-6.5.3 - December 1999
Communications Path
Appendix
D
Setting Paths for Downloads in
RSLogix5000, Version 2.10
Software versions of RSLogix5000 prior to version 2.25 do not incorporate the Who Active feature. To download a program to the controller you must manually specify the path. In the example applications in this manual, the controller is always in slot 0 and the 1756-CNB module through which it is communicating is either node 1 or node 6.
Use the following procedure:
1. Click on the Communications menu and select Configure. The
Workstation Options window will appear.
“2” indicates a connection to the ControlNet wire.
“1” indicates a connection to the CNB module at ControlNet node 1.
“1” indicates a connection to the backplane of the ControlLogix chassis.
“0” indicates a connection to the module at slot 0 (the Logix5550 controller).
Change the first “1” to “6” to download via the CNB module at node6.
1756-6.5.3 - December 1999
D-2
Setting Paths for Downloads in RSLogix5000, Version 2.10
2. Select the Communications tab and enter the following configuration to download through the 1756-CNB module at node 1:
In this field Select
Driver
AB_KTC-1
(1)
Path
(1)
2, 1, 1, 0
This is the default name for the KTCx driver configured in chapter 2 using
RSLinx.
-OR-
Enter the following configuration to download through the 1756-CNB module at node 6:
In this field
Driver
Select
AB_KTC-1
(1)
Path
(1)
2, 6, 1, 0
This is the default name for the KTCx driver configured in chapter 2 using
RSLinx.
3. From the Communications menu, select Download.
The Download prompt will appear containing the path you specified.
4. Click on the Download button to download the program to the
Logix5550 controller.
1756-6.5.3 - December 1999
Index
A
allocating communication connections
audience
C
common techniques used in this manual
configuring the 1784-KTCX15 communication interface card
to
connecting the network
connections allocating communication connections
to
combining direct and rack optimized connections
to
determining total connection requirements
direct connections
for I/O modules
for messaging
for produced and consumed tags
how ControlLogix uses connections
rack optimized
to
consumed tags
creating
ControlLogix module installation
to
conventions used in this manual
creating produced and consumed tags
creating the system
customer services and support
D
direct connections
E
electronic keying
example applications about the example applications
expanding the network
Logix5550 to Logix5550 scheduled communications
Logix5550 to Logix5550 unscheduled message
Logix5550 to PLC-5C scheduled communications
Logix5550 to PLC-5C unscheduled message
PLC-5C to Logix5550 scheduled communications
PLC-5C to Logix5550 unscheduled message
PLC-5C to PLC-5C unscheduled message
scheduled I/O communications
expanding the network
about the example application
add remote 1756-CNB to I/O configuration
add remote analog I/O to configuration
adding 1756-CNB modules to expand the network
to
create the example application
download the program
edit the controller tags
modify the ladder logic program
schedule the network
set up the example application
test the example application
F
finding more information
I
installing the ControlNet network
connecting the network
to
ControlLogix modules
PLC-5 processor
1784-KTCX15 communication interface card
to
L
local product support
1756-6.5.3 - December 1999
I-2
1756-6.5.3 - December 1999
Logix5550 to Logix5550 scheduled communications
create consumer tags
create producer tags
create the producer application
to
create the producer program
download to the consumer
download to the producer
set up the example application
test the communications
Logix5550 to Logix5550 unscheduled message
about the example application
create controller tags
create the example application
create the ladder program
download the message program
download the test program
set up the example application
test the example application
Logix5550 to PLC-5C scheduled communications
about the example application
configure PLC-5C
create producer ladder program
create producer tags
create the producer application
to
download the program
schedule the network
to
set up the example application
test the communications
test the example application
Logix5550 to PLC-5C unscheduled message
about the example application
create controller tags
create the example application
create the ladder program
download the program
set up the example application
test the example application
M
making comments
mapping PLC-5C file to Logix5550 tag
messaging connections
MultiHop
P
paths for downloads
PLC-5 processor installation
PLC-5 terminology
PLC-5C to Logix5550 scheduled communications
about the example application
add local CNB to I/O configuration
add producer to I/O configuration
create consumer tags
create the example application
to
create the PLC-5C program
download the Logix5550 program
download the PLC-5C program
to
set up the example application
test the example application
PLC-5C to Logix5550 unscheduled message
about the example application
create controller tags
create the example application
create the PLC-5C program
download the Logix5550 program
download the PLC-5C program
to
map PLC-5C file to Logix5550 tag
set up the example application
test the example application
PLC-5C to PLC-5C unscheduled message
about the example application
create the example application
create the ladder program
download the program
I-3
set up the example application test the example application
R
produced tags
creating
optimizing
producer/consumer model related publications
rack optimized connections
to
RSNetWorx for ControlNet
to
to
to
S
scheduled communications add producer to consumer I/O configuration
to
add remote CNB to I/O configuration
to
add remote controller to I/O configuration
Logix5550 to Logix5550
scheduled I/O communications
about the example application
add local CNB to I/O configuration
add remote CNB to I/O configuration
add remote digital input module
add remote digital output module
add remote I/O modules to configuration
control of
create the example application
create the ladder program
download the program
edit controller tags
schedule the network
set up the example application
test the example application
1784-KTCX15 installation
to
status indicator and display, module
status indicators, network
to
suggestions
support
system components
tags
T
see consumed tags, produced tags technical product assistance
troubleshooting
status indicator and display, module
status indicators, network
to
U
using this manual
to
W
where to go for questions
1756-6.5.3 - December 1999
I-4
1756-6.5.3 - December 1999
Allen-Bradley
Publication Problem Report
If you find a problem with our documentation, please complete and return this form.
Pub. Title/
Type
Cat. No.
ControlLogix ControlNet Interface Module/User Manual
1756-CNB, -CNBR Pub. No. 1756-6.5.3
Pub. Date December 1999 Part No. 955127-21
Check Problem(s) Type:
Technical Accuracy
Describe Problem(s)
text illustration
Internal Use Only
Completeness
What information is procedure/step example explanation illustration guideline other definition feature info in manual
(accessibility) info not in
Clarity
What is unclear?
Sequence
What is not in the right
Other Comments
Use back for more
Your Name Location/Phone
Return to: Marketing Communications, Allen-Bradley., 1 Allen-Bradley Drive, Mayfield Hts., OH 44124-6118Phone:(440) 646-3176
FAX:(440) 646-4320
Publication 1756-6.5.3- December 1999 PN 955127-21
Other
PLEASE FASTEN HERE (DO NOT
PLEASE FOLD HERE
BUSINESS REPLY
FIRST-CLASS MAIL PERMIT NO. 18235
POSTAGE WILL BE PAID BY THE
1 ALLEN-BRADLEY DR
MAYFIELD HEIGHTS OH 44124-9705
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
1756-6.5.3 - December 1999
Back Cover
Publication 1756-6.5.3 - December 1999 PN 955127-21
©1999 Rockwell International Corporation. Printed in the U.S.A.

Public link updated
The public link to your chat has been updated.
Advertisement