4MELFA-BASIC IV
Detailed explanation of command words
4-188
Def Jnt (Define Joint)
[Function]
This instruction declares joint type position variables. It is used when using a variable with a name that
begins with a character other than "J." It is not necessary to declare variables whose names begin with the
character "J" using the Def Jnt instruction.
[Format]
[Terminology]
<Joint variable name>
Designate a variable name.
[Reference Program]
1 Def Jnt SAFE
' Declare "SAFE" as a joint variable.
2 Mov J1
' For joint type position variables starting with J, the definition of
"Def Jnt" is not required.
3 SAFE = (-50,120,30,300,0,0,0,0)
4 Mov SAFE
' Move to SAFE.
[Explanation]
(1) Use this instruction to define a joint position variable by a name beginning with a character other than J.
(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. When designating multiple variable
names, the maximum value (127 characters including command) can be set on one step.
(3) A variable becomes a global variable that is shared among programs by placing "_" after J in the variable
name and writing it in a base program.
Refer to
Page 138, "4.3.24 User-defined external variables"
for details.
Def[]Jnt[] <Joint variable name> [, <Joint variable name>]...