4MELFA-BASIC IV
Detailed explanation of Robot Status Variable
4-298
M_Wai
[Function]
Returns the standby status of the program for the specified task slot.
1 : Paused (The program has been paused.)
0 : Not paused (Either the program is running or is being stopped.)
[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 M1=M_Wai(1)
' M1 will contain the standby status of slot 1.
[Explanation]
(1) This can be used to check whether the program has been paused.
(2) Combine M_Run and M_Wai to determine if the program has stopped (in case the currently executed
line is the top line).
(3) This variable only reads the data.
[Reference]
M_Wupov, M_Wuprt, M_Wupst
Example)<Numeric Variable>=M_Wai [(<Equation>)]