Mitsubishi MELFA CR1D Instruction Manual page 204

Table of Contents

Advertisement

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]
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 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"
4-191 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.
Page 129, "4.3.6
for details.
Types of characters

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents