Mitsubishi MELFA CR1D Instruction Manual page 298

Table of Contents

Advertisement

4MELFA-BASIC IV
M_Line
[Function]
Returns the line number that is being executed.
[Format]
Example)<Numeric Variable>=M_Line [(<Equation>)]
[Terminology]
<Numeric Variable>
<Equation>
[Reference Program]
1 M1=M_Line(2)
[Explanation]
(1) This can be used to monitor the line being executed by other tasks during multitask operation.
(2) This variable only reads the data.
M_Mode
[Function]
Returns the key switch mode of the operation panel.
1 : TEACH
2 : AUTO(OP)
3 : AUTO(Ext.)
[Format]
Example)<Numeric Variable>=M_Mode
[Terminology]
<Numeric Variable>
[Reference Program]
1 M1=M_Mode
[Explanation]
(1) This can be used in programs set to ALWAYS (constantly executed) during multitask operation.
(2) This variable only reads the data.
4-285 Detailed explanation of Robot Status Variable
Specifies the numerical variable to assign.
1 to 32, Specifies the task slot number. If this parameter is omitted, the current
slot will be used as the default.
' M1 will contain the line number being executed by slot 2.
Specifies the numerical variable to assign.
' M1 will contain the key switch status.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents