Mitsubishi MELFA CR1D Instruction Manual page 201

Table of Contents

Advertisement

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]
Def[]Jnt[] <Joint variable name> [, <Joint variable name>]...
[Terminology]
<Joint variable name>
[Reference Program]
1 Def Jnt SAFE
2 Mov J1
3 SAFE = (-50,120,30,300,0,0,0,0)
4 Mov 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"
Designate a variable name.
' Declare "SAFE" as a joint variable.
' For joint type position variables starting with J, the definition of
"Def Jnt" is not required.
' Move to SAFE.
Page 129, "4.3.6
for details.
Detailed explanation of command words 4-188
4MELFA-BASIC IV
Types of characters

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents