EasyManua.ls Logo

Allen-Bradley ControlLogix 1756 - Specifying DATATYPE Member Attributes; DATATYPE Guidelines; DATATYPE Example

Allen-Bradley ControlLogix 1756
173 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Publication 1756-RM084F-EN-P - July 2002
3-4 Creating a Complete Import/Export File
Specifying DATATYPE member attributes
You can specify these attributes for a member of a DATATYPE:
DATATYPE guidelines
Keep these guidelines in mind when defining a data type:
Data types must be defined first within the controller body.
Data types can be defined out of order. For example, if Type1
depends on Type2, Type2 can be defined first.
Data types can be unverified. For example if Type1 depends on
Type2 and Type2 is never defined, then Type1 will be accessible
as an unverified type. Type2 will be typeless type. Tags of
Type1 may be created but not of Type2.
Data type members can be arrays but only one dimension
is allowed.
The following data types cannot be used in a user-defined data
type: AXIS types, MOTION_GROUP, and MESSAGE.
DATATYPE example
DATATYPE MyStructure (FamilyType := NoFamily)
DINT x;
TIMER y[3] (Radix := Decimal);
SINT MyFlags (Hidden :=1);
BIT aBit0 MyFlags : 0 (Radix := Binary);
BIT aBit1 MyFlags : 1 (Radix := Binary);
END_DATATYPE
Attribute: Description:
Description
Provide information about the data type member.
Specify:
Description := ”
text
Radix
Specify decimal, hex, octal, binary, exponential, float,
or ASCII.
Specify:
Radix :=
value
Hidden
Make the member a hidden member of the structure.
Specify:
Hidden := 1

Table of Contents

Related product manuals