Mitsubishi Electric CR750-Q Instruction Manual page 234

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
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]
Def[]Pos[] <Position variable name> [, <Position variable name>]...
[Terminology]
<Position variable name> Designate a variable name.
[Reference Program]
1 Def Pos WORKSET
2 Mov P1
3 WORKSET=(250,460,100,0,0,-90,0,0)(0,0)
4 Mov 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
can be used in program"
(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"
4-214 Detailed explanation of command words
' Declare "WORKSET" as the XYZ type position variable.
' For XYZ type position variables starting with P, the defini-
tion of "Def Pos" is not required.
' Move to WORKSET.
for the characters that can be used.
Page 136, "4.4.6 Types of characters that
for details.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents