4-191
Detailed explanation of command words
4MELFA-BASIC IV
Def Pos (Define Position)
[Function]
This instruction declares XYZ type position variables. It is used when using a variable with a name that
begins with a character other than "P." It is not necessary to declare variables whose names begin with the
character "P" using the Def Pos instruction.
[Format]
[Terminology]
<Position variable name> Designate a variable name.
[Reference Program]
1 Def Pos WORKSET
' Declare "WORKSET" as the XYZ type position variable.
2 Mov P1
' For XYZ type position variables starting with P, the defini-
tion of "Def Pos" is not required.
3 WORKSET=(250,460,100,0,0,-90,0,0)(0,0)
4 Mov WORKSET
' Move to WORKSET.
[Explanation]
(1) Use this instruction to define a XYZ type position variable by a name beginning with a character other
than P.
(2) The variable name can have up to eight characters. Refer to the
that can be used in program" for the characters that can be used.
(3) When designating multiple variable names, the maximum value (127 characters including command)
can be set on one step.
(4) A variable becomes a global variable that is shared among programs by placing "_" after P in the vari-
able name and writing it in a base program.
Refer to
Page 138, "4.3.24 User-defined external variables"
for details.
Def[]Pos[] <Position variable name> [, <Position variable name>]...