Page 2 - Important user information
Important user information Read this document and the documents listed in the additional resources section about installation, configuration, and operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize themselves with installati...
Page 3 - Summary of changes; The following table contains the changes made to this revision.
Summary of changes The following table contains the changes made to this revision. Change Topic Updated sample project folder location. “ Introduction (on page 23 )” Rockwell Automation Publication 1756-PM012F-EN-P - October 2014 3
Page 7 - Preface; For a complete list of common procedures manuals, refer to the
Preface This manual shows how to program message (MSG) instructions to and from Logix5000™ controllers. This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers. For a complete list of common procedures manuals, refer to the Logix...
Page 8 - Automation products.; You can view or download publications at; Additional resources
Preface These documents contain additional information concerning related Rockwell Automation products. Resource Description Industrial Automation Wiring and Grounding Guidelines , publication 1770-4.1 Provides general guidelines for installing a Rockwell Automation industrial system. Product Certif...
Page 9 - Chapter 1; Controller messages; Convert between INTs and DINTs; Introduction
Chapter 1 Controller messages This section describes how to transfer (send or receive) data between controllers by executing a message (MSG) instruction. It explains cache connections and buffers so you can correctly program the controller. The following data types are supported when sending CIP mes...
Page 10 - as shown in the following illustration.; Message queue
Chapter 1 Controller messages This diagram shows how the controller processes MSG instructions. Description The controller scans the MSG instruction and its rung-condition-in goes true. The message passes to a throttle that has 16 positions. If the throttle is full, the message remains enabled but i...
Page 11 - send or receive data.; Cache list
Controller messages Chapter 1 Description The controller scans the MSG instruction. The rung-condition-in for the MSG instruction is true. The EN bit is set. The MSG instruction attempts to enter the queue but 16 throttle positions exist. If all 16 are filled and a 17th message is executed, the mess...
Page 12 - Unconnected buffers
Chapter 1 Controller messages The controller has the following limits on the number of connections that you can cache. If you have this software version and firmware revision Then you can cache 11.x or earlier • Block transfer messages for up to 16 connections. • Other types of messages for up to 16...
Page 13 - once the connection is established.; Guidelines
Controller messages Chapter 1 Term Definition The controller can have 10 to 40 unconnected buffers. • The default number is 10. • To increase the number of unconnected buffers, execute a MSG instruction that reconfigures the number of unconnected buffers. • Each unconnected buffer uses 1.2 KB of mem...
Page 14 - Get the number of unconnected buffers
Chapter 1 Controller messages To determine or change the number of unconnected buffers, use a MSG instruction. • The range is 10 to 40 unconnected buffers. • The default number is 10. • Each unconnected buffers uses 1.1 KB of memory. Get the number of unconnected buffers To determine the number of u...
Page 15 - Set the number of unconnected buffers; are enabled at once.
Controller messages Chapter 1 Set the number of unconnected buffers As a starting value, set the number of unconnected buffers equal to the number of unconnected and uncached messages enabled at one time plus 5. The additional 5 buffers provide a cushion in case you underestimate the number of messa...
Page 19 - Chapter 2; Manage multiple messages
Chapter 2 Manage multiple messages You can use ladder logic to send groups of message (MSG) instructions in sequence. • To be processed, each MSG instruction must enter the message queue. • The queue holds 48 MSGs. • If more than 16 MSGs are enabled at one time, the message throttle prevents some of...
Page 23 - Chapter 3; Send a message to multiple controllers; to the members of the MESSAGE data type.
Chapter 3 Send a message to multiple controllers You can program one message instruction to communicate with multiple controllers. To reconfigure a MSG instruction during runtime, write new values to the members of the MESSAGE data type. Important: In the MESSAGE data type, the RemoteElement member ...
Page 24 - makes it easier to define the path to each remote controller.
Chapter 3 Send a message to multiple controllers Although not required, it is recommended that you add the communication modules and remote controllers to the I/O configuration of the controller. This makes it easier to define the path to each remote controller. For example, once you add the local c...
Page 26 - instruction. This sends the message to another controller.; receives the message.
Chapter 3 Send a message to multiple controllers Store the configuration properties for each controller in an array. Before each execution of the MSG instruction, your logic loads new properties into the instruction. This sends the message to another controller. 1. To store the configuration propert...
Page 27 - for each additional controller.
Send a message to multiple controllers Chapter 3 Example: Type the path to the remote controller. OR Click Browse and browse to the remote controller. 3. In the message_config array, enter the tag name or address of the data in the first controller to receive the message. Enter the path and remote e...
Page 28 - The SIZE instruction:
Chapter 3 Send a message to multiple controllers The SIZE instruction: • Counts the number of elements in local_array. • Counts the number of elements in Dimension 0 of the array. In this case, that is the only dimension. Local_array_length (DINT) stores the size (number of elements) of local_array....
Page 29 - The following table explains how to configure the message.; Configure the message
Send a message to multiple controllers Chapter 3 The following table explains how to configure the message. On this tab If you want to For this item Type or select Configuration Read (receive) data from the other controllers Message Type The read-type that corresponds to the other controllers Source...
Page 30 - all other controllers.
Chapter 3 Send a message to multiple controllers When the index equals the local_array_length, the controller sends the message to all other controllers. 1. The first CLR instruction sets the index equal to 0. This lets the logic load the configuration properties for the first controller into the MS...
Page 31 - Index
A array controller configuration 26 B block transfer guidelines 13 buffer for unconnected messages 12, 14 C cache connection 11 communicate message instruction 9 other controllers 9 connection cache 11 controller message properties 28 messages 9 D data type convert data 16 message configuration 25 G...
Page 34 - Rockwell Automation support; Installation assistance
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 C...