40
Rockwell Automation Publication 1756-PM004D-EN-P - September 2012
Chapter 2
Organizing Tags
Guidelines for User-defined Data Types
When you create a user-defined data type, use these guidelines:
·
If you include members that represent I/O devices, you must use logic to
copy the data between the members in the structure and the corresponding
I/O tags. Refer to “
on
·
If you include an array as a member, limit the array to a single dimension.
Multi-dimension arrays are
not
permitted in a user-defined data type.
EXAMPLE
User-defined data type that stores the data that is required to run a machine.
Because several drill stations require the following mix of data, use a user-defined data type.
ATTENTION:
An array that is based on this data type looks like this example.
Name (of data type): DRILL_STATION
Member Name
Data Type
Part_advance
BOOL
Hole_sequence
CONTROL
Type
DINT
Hole_position
REAL
Depth
REAL
Total_depth
REAL
42583
Array of Drills
First Drill
This array contains four
elements of the
DRILL_STATION
data type.
Data for the Drill
Summary of Contents for 1756-L65 ControlLogix 5565
Page 4: ...2 Rockwell Automation Publication 1756 PM004D EN P September 2012 Summary of Changes Notes...
Page 8: ...6 Rockwell Automation Publication 1756 PM004D EN P September 2012 Preface Notes...
Page 66: ...64 Rockwell Automation Publication 1756 PM004D EN P September 2012 Chapter 3 Force I O Notes...
Page 88: ...86 Rockwell Automation Publication 1756 PM004D EN P September 2012 Index...
Page 89: ......