Danaher Motion
06/2005
GENERIC ELEMENTS
M-SS-005-03 Rev
E
145
The right-side element of the assignment statement can be either generic or
a “real”. A group cannot be assigned to a generic axis, and an axis cannot
assign a generic group.
Common Shared Gen_Group As Generic Group
Gen_Axis = G1
Error: 7067, "Wrong input type", Module: Translator
Gen_Group = A1
Error: 7067, "Wrong input type", Module: Translator
Joint axes cannot be used in either sides of assignment statement.
Gen_Group.j1 = A1
Error: 7039, "Syntax Error", Module: Translator
Gen_Axis = G1.j1
Error: 7039, "Syntax Error", Module: Translator
9.1.3. Limitations
Generic elements cannot be printed. Arithmetic, logic and bitwise operators
cannot be applied on generic elements.
Generic elements cannot be used as conditions in flow control statements
and event definitions.
Generic elements cannot be recorded.
Generic elements cannot be structure elements.
Generic element cannot serve as parameters of C functions.
Deletion of global generic element cannot be performed with
DELETEVAR
or
DELETEGROUP
. Hardware or software reset (
RESET ALL
) is required.
Dim Shared Gen_Axes_List[32] As Generic Axis
Gen_Axes_List[1] = A1
Gen_Axes_List[2] = A2
Gen_Axes_List[3] = A3
Gen_Axes_List[4] = A4
? Gen_Axes__List[1]
Error: 7039, "Syntax Error", Module: Translator
Gen_Axes__List[4] = Gen_Axes__List[1]+ 3
Error: 7039, "Syntax Error", Module: Translator
If Gen_Axes__List[3] > Gen_Axes__List[2] Then
Æ
Syntax Error
DeleteGroup Gen_Group
‘ Gen_Group is a global generic group
Error: 7039, "Syntax Error", Module: Translator