
Chapter 3 Define a Datatype component
64 Rockwell Automation Publication 1756-RM084S-EN-P - March 2015
L5X Item L5K Item Description
EngineeringUnit EngineeringUnit (optional) User-specified description of the unit of the value,
such as feet, gallons, and kilos.
Members member_definitions Defines the members of the data structure.
Datatype attributes
Attribute Description
Name L5X only. Specify the name of the data type.
In L5K, the name is an element of the data type statement.
Family (L5X)
FamilyType (L5K)
Specify StringFamily for a string data type.
Specify NoFamily for all other data types.
Class
L5X only. Type User.
There are two kinds of datatype members:
• Bit member—a member in which only a single bit of information is
accessed.
• Nonbit member—a member that is defined as another data type, such as
SINT, INT, DINT, and COUNTER.
L5X datatype member structure
<Members>
<Member [Member_Attributes]>
<Description>
<![CDATA[ text ]]>
</Description>
<EngineeringUnit>
<![CDATA[ engineeringunit_unit_text ]]>
</EngineeringUnit>
<State0>
<![CDATA[ state0_text ]]>
</State0>
<State1>
<![CDATA[ state1_text ]]>
</State1>
</Member>
</Members>
Datatype member