Mitsubishi Electric CR750-Q Instruction Manual page 344

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
M_BrkCq
[Function]
Returns the result of executing a line containing a Break command that was executed last.
1: Break was executed
0: Break was not executed
[Format]
Example) <Numeric Variable>=M_BrkCq [(<Equation>)]
[Terminology]
<Numeric Variable>
<Equation>
[Reference Program]
1 While M1<>0
2 If M2=0 Then Break
3 WEnd
4 If M_BrkCq=1 Then Hlt
[Explanation]
(1) Check the state of whether the Break command was executed.
(2) This variable only reads the data.
(3) If the M_BrkCq variable is referenced even once, the Break status is cleared. (The value is set to zero.)
Therefore, to preserve the status, save it by substituting it into a numeric variable.
(4) The Break status is also cleared even if it is referenced on T/B monitor screen and so forth.
M_BTime
[Function]
Returns the remaining hour of battery left. (Unit: hour)
[Format]
Example)<Numeric Variable>=M_BTime
[Terminology]
<Numeric Variable> Specifies the numerical variable to assign.
[Reference Program]
1 M1=M_BTime
[Explanation]
(1) Returns the remaining hours the battery can last from now.
(2) As for the battery life, 14,600 hours are stored as the initial value.
(3) After summing the total amount of time the power of robot controller has been off, this value will be sub-
tracted from 14,600 and the result is returned.
(4) This variable only reads the data.
4-324 Detailed explanation of Robot Status Variable
Specifies the numerical variable to assign.
1 to 32, Enter the task slot number. If this argument is omitted, the current slot
will be used as the default.
' The remaining battery capacity time is assigned to M1.
' Hlt, if Break in While is executed.
' The remaining battery capacity time is assigned to M1.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents