Delta Electronics AH — 2.5 Data Type Unit (DUT): ENUM

AH Motion Controller – Motion Control Instructions Manual *1. The data stored in an index register indicates the offset for the device which the index register modifies. If the system automatically assigns a device to a symbol, the use of an index register to modify the symbol will cause the program to be executed incorrectly because users do not know which device is assigned to the symbol. *2. If you want to assign index registers to symbols, you have to specify device addresses and data types. 2.5 Data Type Unit (DUT): ENUM You can also use the data type unit (DUT) for enumeration (ENUM).

ENUM is a derivative data type which defines the ENUM symbol with its elements and the associated values. You can specify the initial value to an element, and use one of the enumerated values in the associated elements list. The list defines an ordered set of values in series, starting with the first element and ending with the last one. You can use the same element in different ENUM symbols. _2 The rules for specifying the elements and the values for an ENUM symbol:  If elements are not specified, the initial value will be 0, and following 1, and etc.  When elements are specified with initial values, the initial value of the element will be changed.

The enumerated values before the element is defined with an initial value remain unchanged. For example, 0, 1, 2 (not defined), 35(the defined initial value), 36, 37, and etc.  Another example when the element is defined twice: 0, 1, 2 (not defined), 35(first defined value), 36, 70(second defined value), 71, and etc.  The two setting methods: Via table Via texts You can refer to Appendices of this manual for a list of Enumerations. For more information about the software operation, refer to ISPSoft User Manual . 2-20