EasyManua.ls Logo

Mitsubishi MELFA CR1D - Page 279

Mitsubishi MELFA CR1D
458 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...
4MELFA-BASIC IV
Detailed explanation of Robot Status Variable 4-266
C_Mecha
[Function]
This variable returns the name of the mechanism to be used.
[Format]
[Terminology]
<Character String Variable > Specify a character string variable to be assigned.
<Mechanism Number> Enter the mechanism number. 1 to 3, If the argument is omitted, 1 is set
as the default value.
[Reference Program]
1 C1$=C_Mecha(1) ' "RV-6SD" is assigned to C1$. (If the robot type name is RV-6SD)
[Explanation]
(1) This variable returns the name of the mechanism to be used.
(2) This variable only reads the data.
C_Prg
[Function]
This variable returns the selected program number (name).
[Format]
[Terminology]
<Character String Variable > Specify a character string variable to be assigned.
<Numeric> 1 to 32, Enter the task slot number. If the argument is omitted, 1 is set as
the default value.
[Reference Program]
1 C1$=C_Prg(1) ' "10" is assigned to C1$. (if the program number is 10.)
[Explanation]
(1) The program number (name) set (loaded) into the specified task slot is assigned.
(2) If this variable is used in single task operation, the task slot number becomes 1.
(3) If it is set in the operation panel, that number is set.
(4) This variable only reads the data.
(5) If a task slot for which a program is not loaded is specified, an error occurs at execution.
Example) <Character String Variable >=C_Mecha[(<Mechanism Number>)]
Example) <Character String Variable >=C_Prg [(<Numeric>)]

Table of Contents

Related product manuals