![Mitsubishi Electric CR750 Series Instruction Manual Download Page 234](http://html.mh-extra.com/html/mitsubishi-electric/cr750-series/cr750-series_instruction-manual_238840234.webp)
4-214
Detailed explanation of command words
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 16 characters. Refer to the
Page 136, "4.4.6 Types of characters that
for the characters that can be used.
(3) When designating multiple variable names, the maximum value (240 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 145, "4.4.24 User-defined external variables"
for details.
Def[]Pos[] <Position variable name> [, <Position variable name>]...