Create the message_ configuration data type – Rockwell Automation Logix5000 Controllers Messages Programming Manual User Manual

Page 25

Advertising
background image

Send a message to multiple controllers Chapter 3

2. Create the local_array tag, which stores the data in this controller.

Tag Name

Type

local_array

data_type [length]
where:
data_type is the data type of the data that the message sends or receives, such as
DINT, REAL, or STRING.
length

is the number of elements in the local array.

Create a user-defined data type to store the configuration variables for the message

to each controller.

Some of the required members of the data type use a string data type.

The default STRING data type stores 82 characters.

If your paths or remote tag names or addresses use less than 82 characters,

you have the option of creating a new string type that stores fewer

characters. This lets you conserve memory.

To create a string type, click File > New Component > String Type.

If you create a string type, use it in place of the STRING data type.

To store the configuration variables for the message to each controller, create the

following user-defined data type.

Data Type: MESSAGE_CONFIGURATION
Name: MESSAGE_CONFIGURATION
Description: Configuration properties for a message to another controller
Members
Name

Data Type

Style

Description

Path

STRING

RemoteElement

STRING

Create the MESSAGE_
CONFIGURATION data type

Rockwell Automation Publication 1756-PM012F-EN-P - October 2014

25

Advertising