EasyManua.ls Logo

Allen-Bradley ControlLogix 1756 - Page 23

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
Creating a Complete Import/Export File 3-3
For example, create a user-defined datatype called “MyBits” and a tag
called “MyTag” of type “MyBits.”
ZZZZZZZZZZMyBits0 is the host member of MyBit0 and MyBit1. The
datatype syntax for this example is:
DATATYPE MyBits (FamilyType := NoFamily)
SINT ZZZZZZZZZZMyBits0 (Hidden := 1);
BIT MyBit0 ZZZZZZZZZZMyBits0 : 0 (Radix := Binary);
BIT MyBit1 ZZZZZZZZZZMyBits0 : 1 (Radix := Binary;
END_DATATYPE
The host member is normally a hidden member because only the bit
references are visible when you define a tag of the datatype.
Bit members cannot be defined before their host members. Note that
BitPosition zero is the least significant bit.
User-defined datatype “MyBits”
Tag “MyTag” of type “MyBits”
IMPORTANT
There must be a space between the host member
name and the colon and the colon and the bit
position because type names can contain a colon
(for example, I/O structures) and without the space
we could not tell where type name actually ends.
Spare Allen-Bradley Parts

Table of Contents

Related product manuals