Rockwell Automation Publication 1756-PM004D-EN-P - September 2012 39
Organizing Tags Chapter 2
Creating a User-defined
Data Type
User-defined data types (structures) let you organize your data to match your
machine or process.
User-defined data type that stores a recipe.
ATTENTION: In a system of several tanks, each tank can run a variety of recipes. Because the recipe requires a mix of data types (REAL,
DINT, BOOL, so forth), a user-defined data type is used.
ATTENTION: An array that is based on this data type would look like this example.
Name (of data type): TANK
Member Name Data Type
Temp REA L
Deadband REAL
Step DINT
Step_time TIMER
Preset DINT[6]
Mix BOOL
42368
Array of Recipes
First Recipe
This array contains three
elements of the TANK
data type.
Members of
the Recipe