
Chapter 9 Declaration Statements
9-13
DEFPOS (Statement)
Function
Declares a position type variable.
Format
DEFPOS <Variable name>[=<Position type constant>][,<Variable name>
[=<Position type constant>]...]
Explanation
Declares a variable designated by <Variable name> as a position type variable.
By writing a constant after <Variable name>, initialization can be carried out
simultaneously with the declaration.
Multiple variable names can be declared at a time by delineating the names
using “,”.
Related Terms
DEFJNT, DEFTRN, DEFVEC
Example
6-axis DEFPOS lpx, lpy, lpz
'Declares lpx, lpy, and lpz as position type
variables.
DEFPOS lpx = (10, 10, 5, 0, 9, 0, 1)
'Declares lpx as a position type variable and sets
the 'initial value = (10, 10, 5, 0, 9, 0, 1).
6-axis DEFPOS lpx, lpy, lpz
'Declares lpx, lpy, and lpz as position type
variables.
DEFPOS lpx = (100, 100, 300, 45, 0)
'Declares lpx as a position type variable and sets
the 'initial value = (100, 100, 300, 45, 0).
Komentarze do niniejszej Instrukcji