EasyManua.ls Logo

Mitsubishi Electric CR750-Q - Page 222

Mitsubishi Electric CR750-Q
730 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-202 Detailed explanation of command words
4MELFA-BASIC V
The robot's locus of movement may change with specified speed.
Especially as for the corner section, short cut distance may change. Therefore,
when beginning automatic operation, moves at low speed at first, and you should
gather speed slowly with being careful of interference with peripheral equipment.
[Related instructions]
Mva (Move Arch), Accel (Accelerate), Ovrd (Override), Mvs (Move S) (Used as a reference for interpolation
types 1 and 2)
Def Char (Define Character)
[Function]
Declares a character string variable. It is used when using a variable with a name that begins with a charac-
ter other than "C." It is not necessary to declare variables whose names begin with the character "C" using
the Def Char instruction.
[Format]
[Terminology]
<Character string variable name> Designate a variable name.
[Reference Program]
1 Def Char MESSAGE ' Declare "MESSAGE" as a character string variable.
2 MESSAGE = "WORKSET" ' Substitute "WORKSET" in the MESSAGE variable.
3 CMSG = "ABC" ' Substitute "ABC" for variable CMSG. For variables starting with
C, the definition of "Def Char" is not required.
[Explanation]
(1) The variable name can have up to 16 characters. Refer to the Page 136, "4.4.6 Types of characters that
can be used in program" for the characters that can be used.
(2) When designating multiple variable names, the maximum value (240 characters including command)
can be set on one step.
(3) A variable becomes a global variable that is shared among programs by placing "_" after C 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[]Char[]<Character string variable name> [, <Character string variable name>...
CAUTION

Table of Contents

Related product manuals