EasyManua.ls Logo

Mitsubishi MELFA CR1D - Page 305

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-292
M_SkipCq
[Function]
Returns the result of executing the line containing the last executed Skip command.
1 : Skip has been executed.
0 : Skip has not been executed.
[Format]
[Terminology]
<Numeric Variable> Specifies the numerical variable to assign.
<Equation> 1 to 32, Specifies the task slot number. If this parameter is omitted, the current
slot will be used as the default.
[Reference Program]
1 Mov P1 WthIf M_In(10)=1,Skip ' If the input signal 10 is 1 when starting to move to P1, skip
the Mov instruction.
2 If M_SkipCq=1 Then GoTo 1000 ' If Skip instruction has been executed, jump to line 1000.
;
1000 End
[Explanation]
(1) Checks if a Skip instruction has been executed.
(2) This variable only reads the data.
(3) If the M_SkipCq variable is referenced even once, the Skip status is cleared. (The value is set to zero.)
Therefore, to preserve the status, save it by substituting it into a numeric variable.
Example)<Numeric Variable>=M_SkipCq [(<Equation>)]

Table of Contents

Related product manuals