Get the size of the local array, Load the message properties for a controller – Rockwell Automation Logix5000 Controllers Messages Programming Manual User Manual

Page 28

Advertising
background image

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.

This value tells a subsequent rung when the message is sent to all controllers and to

start with the first controller again.

1. The XIO instruction conditions the rung to continuously send the message.

2. The first COP instruction loads the path for the message. The value of

index determines which element the instruction loads from message_config.

The instruction loads one element from message_config.

3. The second COP instruction loads the tag name or address of the data in

the controller that receives the message. The value of index determines

which element the instruction loads from message_config. The instruction

loads one element from message_config.

Get the size of the local
array

Load the message
properties for a controller

28

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

Advertising