VA Motion Controller Programming Manual
19
or nested. An example of declaring a structure is as follows:
TYPE
machine:
STRUCT
x_pos: INT;
y_pos: INT;
depth: INT;
rp: INT;
END_ STRUCT;
END _TYPE
String
A string is a finite sequence of multiple characters. Each character occupies one byte. The
data type of the string is STRING. When a string is declared, its length is set in parentheses after
the data type, anDA string is declared example as follows:
TYPE
STRING10: STRING (10);
END_TYPE
In this example, the length of the string is 10, i.e. STRING10 is a string containing 10
characters. 1 is the shortest string length, the longest string length of 32,766.
4.4 constant data representation
T # 10MS, T # 10S, T # 10M,
T # 10H, T # 10D, T # 1D_10H
ADT # 2011-07-24 15: 23: 4555