dhirdesh - there is no mystery in the use of User-Defined data types. Data
types are "templates" that are used in the creation of data
tags.
There are only a very small number of data-types that exist...
BOOL - 1 bit - Value 0/1
SINT - 8 bits - Value Range -128/+127
INT - 16 bits - Value Range -32768/+32767
DINT - 32 bits - Value Range -2,147,483,648/+2,147,483,647
REAL - 32 bits - Value Range long forgotten, but it's an IEEE floating point
These are the
Atomic data-types, from which
all of the others are fabricated. Look at some of the
Pre-Defined data-types, and you will see that they are all constructed from these atomic types.
A
Timer, for instance, is a data-type that has been constructed by Rockwell from 2 DINTS and 3 BOOLS.
There is a big collection of pre-defined types that you can use, but if you can't see a type that fits your application, you can create your own. And you can nest types within types.