DEFPOS
(Statement)
Declare a position variable.
DEFPOS <variablename>[=<position constant>][,<variablename>
[=<position constant>]...]
This statement declares the variable specified by <variablename> as a position type.
Specifying an equal sign and constant immediately following <variablename> performs initialization at the same time in declaration.
More than one variable name can be declared at a time by delimiting those names with commas.
6-axis
DEFPOS lpx, lpy, lpz
|
'Declare lpx, lpy, and lpz as position variables
|
DEFPOS lpx = (10,10,5,0,9,0,1)
|
|
|
'Declare lpx as a position variable and set the
'initial value (10,10,5,0,9,0,1)
|
4-axis
DEFPOS lpx, lpy, lpz
|
'Declare lpx, lpy, and lpz as position variables
|
DEFPOS lpx = (100,100,300,45,0)
|
|
|
'Declare lpx as a position variable and set the
|
|
'initial value (100,100,300,45,0)
|