VA Motion Controller Programming Manual
18
0 to 4294967295 (16 #
00..16 # FFFFFFFF)
4.2 Generic Data Type
The generic data type is to group the basic data types hierarchically, with ANY as the prefix
of the data type. For example, ANY_INT indicates that all integer data including SINT, INT,
DINT, USINT, UINT, and UDINT are included. If the input or output of a function block is
connected to ANYINT, it means that this function block can handle variables of integer data such
as SINT, INT, DINT, USINT, UINT and UDINT.
Generic data types are organizeDAs follows:
SINT
USINT
INT
UINT
DINT
UDINT
4.3 User-defined data types
User-defined data types must be inserted into the user-defined data type in the project "data
type", which must be done with the “TYPE ...END_TYPE” declaration block. The middle part of
the declaration block is the defined derivative data, and the derived data type can be the
structure,or an array.
Array
An array is a collection of single data type objects. Like a basic data, it has a unique name. A
single object is not named, but the user can access it through its position in the array. An example
of an array is as follows:
TYPE
graph: ARRAY [0 ... 23] OF INT;
END_TYPE
Note: the lowest byte array ARRAY graph is graph [0]
structure
A structure is a collection of objects of different data types. Like a basic data, it has a unique
name. A member of a structure is a basic data type or an array type, or it can be another structure,