Allen-Bradley Logix 5000 Series Programming Manual
Allen-Bradley Logix 5000 Series Programming Manual

Allen-Bradley Logix 5000 Series Programming Manual

Controllers produced and consumed tags
Hide thumbs Also See for Logix 5000 Series:

Advertisement

Quick Links

Programming Manual
Logix 5000 Controllers Produced and
Consumed Tags
1756 ControlLogix, 1756 GuardLogix, 1769 CompactLogix,
1769 Compact GuardLogix, 1789 SoftLogix, 5069 CompactLogix,
5069 Compact GuardLogix, Studio 5000 Logix Emulate

Advertisement

Table of Contents
loading

Summary of Contents for Allen-Bradley Logix 5000 Series

  • Page 1 Programming Manual Logix 5000 Controllers Produced and Consumed Tags 1756 ControlLogix, 1756 GuardLogix, 1769 CompactLogix, 1769 Compact GuardLogix, 1789 SoftLogix, 5069 CompactLogix, 5069 Compact GuardLogix, Studio 5000 Logix Emulate...
  • Page 2 Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and for Personal Protective Equipment (PPE). Allen-Bradley, Rockwell Software, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc. Trademarks not belonging to Rockwell Automation are property of their respective companies.
  • Page 3 Summary of Changes This manual includes new and updated information. Use these reference tables to locate changed information. Grammatical and editorial style changes are not included in this summary. Global changes This table identifies changes that apply to all information about a subject in the manual and the reason for the change.
  • Page 4: Table Of Contents

    Summary of Changes Consideration when migrating projects that contain Renamed Allow Consumed Tags to Use RPI multicast produce tags page 13 Provided by Consumer to Allow Consumed Tags to Use RPI Provided by Producer parameter Organize tags for produced or consumed data page 14 RPI limitations and negotiated default page 23...
  • Page 5 Table of contents Preface Additional Resources ..................7 Legal notices ....................8 Chapter 1 Introduction ....................11 Produce and Controllers and networks that support produced/consumed tags ....12 Consume a Tag Connection requirements of a produced or consumed tag ......12 Considerations when migrating projects that contain multicast produce tags ........................
  • Page 7: Preface

    Preface This manual details how, with a Logix 5000 controller, to produce and consume standard tags and produce a large array. For information on produced/consumed safety tags, refer to the documentation specific to your controller. This manual is one of a set of related manuals that show common procedures for programming and operating Logix 5000™...
  • Page 8: Legal Notices

    Apache License, OpenSans License Version 2.0 Trademark Notices Allen-Bradley, ControlBus, ControlFLASH, Compact GuardLogix, Compact I/O, ControlLogix, CompactLogix, DCM, DH+, Data Highway Plus, DriveLogix, DPI, DriveTools, Explorer, FactoryTalk, FactoryTalk Administration Console, FactoryTalk Alarms and Events, FactoryTalk Batch, FactoryTalk Directory, FactoryTalk Security, FactoryTalk Services Platform,...
  • Page 9 Preface Guard I/O, High Performance Drive, Integrated Architecture, Kinetix, Logix5000, Logix 5000, Logix5550, MicroLogix, DeviceNet, EtherNet/IP, PLC-2, PLC-3, PLC-5, PanelBuilder, PowerFlex, PhaseManager, POINT I/O, PowerFlex, Rockwell Automation, RSBizWare, Rockwell Software, RSEmulate, Historian, RSFieldbus, RSLinx, RSLogix, RSNetWorx for DeviceNet, RSNetWorx for EtherNet/IP, RSMACC, RSView, RSView32, Rockwell Software Studio 5000 Automation Engineering &...
  • Page 10 Preface http://www.rockwellautomation.com/rockwellautomation/about- us/sustainability-ethics/product-environmental-compliance.page Contact Rockwell Automation Customer Support Telephone — 1.440.646.3434 Online Support — http://www.rockwellautomation.com/support/ Rockwell Automation Publication 1756-PM011J-EN-P - February 2018...
  • Page 11: Produce And Consume A Tag

    Chapter 1 Produce and Consume a Tag A Logix 5000™ controller lets you produce (broadcast) and consume Introduction (receive) system-shared tags. Term Definition Produced tag A tag that a controller makes available for use by other controllers. Multiple controllers can simultaneously consume (receive) the data. A produced tag sends its data to one or more consumed tags (consumers) without using logic.
  • Page 12: Controllers And Networks That Support Produced/Consumed Tags

    Chapter 1 Produce and Consume a Tag For two controllers to share produced or consumed tags, both controllers Controllers and must be in the same backplane or attached to the same control network, networks that such as ControlNet or EtherNet/IP network. Although produced and support consumed tags can be bridged over two networks, Rockwell Automation®...
  • Page 13: Multicast Produce Tags

    Produce and Consume a Tag Chapter 1 L36ERM, in the consuming controller’s I/O configuration. These controllers have a built-in Ethernet port and therefore can be addressed using an EtherNet/IP Address. • To consume tags through the backplane port on a GuardLogix 5580 or ControlLogix 5580 controller, represent the controller as a ControlLogix 5570, such as the 1756-L75, in the consuming controller’s I/O configuration.
  • Page 14: Organize Tags For Produced Or Consumed Data

    Chapter 1 Produce and Consume a Tag To make sure consumers of produced tags can connect to Compact GuardLogix 5380, CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, and GuardLogix 5580 controllers, take the following steps: • For consumers running releases v17 and earlier that are consumers of a produced tag from Compact GuardLogix 5380, CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, and GuardLogix 5580 controllers:...
  • Page 15: Adjust For Bandwidth Limitations

    Produce and Consume a Tag Chapter 1 Guideline Details Consume Integers Create a user-defined data type that contains these members. Data Type Description DINT Status INT[x], where x is the output size of the Data produced by data from the PLC-5C controller. (If you a PLC-5C are consuming only one INT, omit x.) controller...
  • Page 16: Create A Produced Tag

    Chapter 1 Produce and Consume a Tag Adjustment Description Reduce your NUT. At a faster NUT, less connections have to share an update slot. Increase the requested packet interval At higher RPIs, connections can take turns sending data during an update slot. (RPI) of your connections.
  • Page 17 Produce and Consume a Tag Chapter 1 4. In the Type box, click Produced. The Connection button becomes available when Type is either Produced or Consumed. 5. Click Connection to define the produced tag. The Produced Tag Connection dialog box opens. 6.
  • Page 18: Create A Consumed Tag

    Chapter 1 Produce and Consume a Tag Tip: The Advanced button is available for controllers using version 18 and later of the application. 8. Click OK to close the Produced Tag Connection dialog box. 9. Click OK to close the Tag Properties dialog box. The consumed tag receives data of a produced tag.
  • Page 19 Produce and Consume a Tag Chapter 1 3. In the Tag Editor, right-click the tag that will consume the data, and then click Edit (name of tag) Properties. 4. In the Type box, click Consumed. The Connection button becomes available when Type is either Produced or Consumed.
  • Page 20 Chapter 1 Produce and Consume a Tag If the producing Then the data type should be controller is DINT Status INT[x], where x is the output size of the data from Data produced by a PLC-5C the PLC-5C controller. (If you are consuming only controller one INT, omit x.) 6.
  • Page 21 Produce and Consume a Tag Chapter 1 Important: Consuming controllers have additional setup to allow its consuming tags to use an RPI provided by a producing controller. Refer to Set RPI Limits, Default for Producer Tag for details. 10. If applicable, clear the Use Unicast Connection check box to use a Multicast connection.
  • Page 22: Additional Steps For A Plc-5C Controller

    Chapter 1 Produce and Consume a Tag When sharing data with a PLC-5C controller, do the following. Additional steps for a PLC-5C controller Action Details In the ControlNet configuration If the PLC-5C This Then in RSNetWorx software of the PLC-5C controller, controller schedule a message.
  • Page 23: Rpi Limitations And Negotiated Default

    Produce and Consume a Tag Chapter 1 Example: Reconstruct a floating point value. The two MOV instructions reverse the order of the integers as the integers move to a new location. Because the destination of the COP instruction is a floating-point address, it takes two consecutive integers, for a total of 32 bits, and converts them to a single floating- point value.
  • Page 24 Chapter 1 Produce and Consume a Tag Tip: The controller’s backplane and Ethernet ports can support different RPIs. If multiple consumers need to connect to the controller at different RPIs, you can configure them to connect through the backplane or the Ethernet port. Connection requirements of a produced or consumed tag page 12 more information.
  • Page 25: Set Rpi Limits, Default For Producer Tag

    Produce and Consume a Tag Chapter 1 Important: RPI limits and default values are not supported for safety tags and AXIS tags. AXIS produced tags are produced at a rate equal to the Coarse Update Period of the associated motion group. Safety produced tags are produced at a rate specified by the Safety Task Period.
  • Page 26 Chapter 1 Produce and Consume a Tag 2. On the Connection tab in the Produced Tag Connections dialog box, click Advanced. The Advanced Options dialog box opens. 3. In the Minimum RPI box, enter the smallest requested packet interval (fastest rate) at which consumers may consume data from the tag. 4.
  • Page 27: Unicast Connection Option

    Produce and Consume a Tag Chapter 1 Unicast connections are point-to-point connections between a producing Unicast connection controller and consuming controller; no multiple connections. Unicast option connections do not require a minimum or maximum RPI range or default RPI value. The Allow Unicast Consumer Connections check box at the bottom of the Advanced Options dialog box is selected by default to allow multiple unicast consumers to consume from the produced tag.
  • Page 28 Chapter 1 Produce and Consume a Tag The Consuming controller must be set up to allow its consumed tags to Set up the accept an RPI provided by the producer. Use the Advanced tab in the consuming Controller Properties dialog box to set up the controller. controller Important: For controllers running Logix Designer releases v17 or earlier that...
  • Page 29: Verify Consumed Tag Acceptance

    Produce and Consume a Tag Chapter 1 2. Click the Advanced tab. 3. Select the Allow Consumed Tags to Use RPI Provided by Producer check box to allow for the RPI negotiation. Important: The check box is only available when the controller is offline. If the check box is not checked, the consuming controller does not accept the RPI provided by the producer if the consuming controller requests an RPI that is out of the producer’s configured...
  • Page 30 Chapter 1 Produce and Consume a Tag 2. In the Tag Editor, right-click a consuming tag and click Edit (name of tag) Properties. The Tag Properties dialog box opens. 3. In the Type box, click Connection. Rockwell Automation Publication 1756-PM011J-EN-P - February 2018...
  • Page 31 Produce and Consume a Tag Chapter 1 The Consumed Tag Connection dialog box opens. On the Connection tab, a flag to the right of the RPI box indicates the consuming controller has accepted an RPI provided by the producer. The time interval of the RPI also is indicated. 4.
  • Page 32: Produced And Consumed Rpi Scenarios

    Chapter 1 Produce and Consume a Tag The following scenarios explain how producing and consuming tags Produced and exchange RPI for controllers. consumed RPI scenarios The RPI is within range of the producing controller’s RPI Limits. Scenario 1 There is no default RPI that is set up for the producing controller. Version 17 and earlier: The consuming controller is brought online with an RPI configured at 3 ms.
  • Page 33: Scenario 2

    Produce and Consume a Tag Chapter 1 The RPI is outside the range of the producing controller’s RPI Limits. Scenario 2 There is no default RPI that is set up for the producing controller. Version 17 and earlier: The RPI requested by the consumed tag is not within the range of the producer.
  • Page 34: Scenario 3

    Chapter 1 Produce and Consume a Tag The RPI is outside the range of the producing controller’s RPI Limits. A Scenario 3 default RPI is set up for the producing controller. But, the network path contains a bridge that blocks the negotiated RPI to prevent an interruption to other controllers on the network.
  • Page 35: Scenario 4

    Produce and Consume a Tag Chapter 1 The RPI is outside the range of the producing controller’s RPI Limits. A Scenario 4 default RPI is set up for the producing controller. The consumer is set up to accept the RPI provided by the producer. Version 17 and earlier: The RPI requested by the consumed tag is not within the range of the producer.
  • Page 36 Chapter 1 Produce and Consume a Tag Similar to other controllers, the 1769-L2x and 1769-L3x controllers will verify that the RPI of incoming connections are within the produced tag settings. If the consuming tag’s RPI falls outside the configured range, a producing controller will reject the incoming RPI and then provide an RPI (default) to the consuming controller.
  • Page 37: Rpi I/O Faults

    Produce and Consume a Tag Chapter 1 The following table provides a description of error messages for situations RPI I/O faults where an RPI is not accepted. Scenario Description Software I/O Fault Message Version RPI of consumed tag is not within the range of the (Code 0111) Requested Packet Interval producer.
  • Page 38 Chapter 1 Produce and Consume a Tag • Verify that all multicast consumed tags of a produce tag are configured with the same RPI. If they are not, some consumers will fail to connect. • For multicast consumers running Logix Designer releases v18 and later, take one of these steps: •...
  • Page 39: Introduction

    Chapter 2 Produce a Large Array The Logix5000 controller can send as many as 500 bytes of data over a Introduction single scheduled connection. This corresponds to 125 DINT or REAL elements of an array. To transfer an array of more than 125 DINTs or REALs, use a produced/consumed tag of 125 elements to create a packet of data.
  • Page 40: Produce A Large Array

    Chapter 2 Produce a Large Array In addition, the array must contain an extra 122 elements. In other words, it must be 122 elements greater than the greatest number of elements that you want to transfer. • These elements serve as a buffer. •...
  • Page 41 Produce a Large Array Chapter 2 6. Enter this logic. When the offset value in array_ack[0] is not equal to the current offset value but array_ack[1] equals -999, the consumer has begun to receive a new packet, so the rung moves -999 into the last element of the packet. The consumer waits until it receives the value -999 before it copies the packet to the array.
  • Page 42 Chapter 2 Produce a Large Array When the offset value in array_ack[0] is equal to the current offset value, the consumer has copied the packet to the array; so the rung checks for more data to transfer. If the offset value plus 123 is less than the size of the array, there is more data to transfer;...
  • Page 43 Produce a Large Array Chapter 2 7. In the Controller Tags folder of the controller project that consumes the array, create these tags. Tag Name Type array_ack DINT[2] array_packet DINT[125] 8. Convert array_packet to a consumed tag. Specify Controller Name of the controller that is sending the packet.
  • Page 44 Chapter 2 Produce a Large Array When the offset value in array_packet[123] is different than the offset value in array_ack[0], the controller has begun to receive a new packet of data; so the rung checks for the value of -999 in the last element of the packet. If the last element of the packet equals -999, the controller has received an entire packet of new data and begins the copy operation.
  • Page 45 Produce a Large Array Chapter 2 • Messages are unscheduled and are executed only during the ‘system overhead’ portion of the Logix5550 execution. Therefore, messages can take a fairly long time to complete the data transfer. • You can improve the transfer time by increasing the system overhead time slice, but this diminishes the performance of the continuous task.
  • Page 47 Index RPI limits 34 L3x controller RPI limits 34 adjust limitations bandwidth limitations 15 bandwidth 15 array RPI 23 defining data packets 39 PLC-5C bandwidth share data 22 adjust limitations 15 produced tag connection requirements 12 create 16 producer communicate creating tag 16 other controllers 11 RPI scenarios 31...
  • Page 48 Rockwell Automation support Rockwell Automation provides technical information on the web to assist you in using its products. At http://www.rockwellautomation.com/support you can find technical and application notes, sample code, and links to software service packs. You can also visit our Support Center at https://rockwellautomation.custhelp.com for software updates, support chats and forums, technical information, FAQs, and to sign up for product notification updates.

Table of Contents