EasyManua.ls Logo

Mitsubishi Electric CR760-D - Page 388

Mitsubishi Electric CR760-D
730 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...
4-368 Detailed explanation of Robot Status Variable
4MELFA-BASIC V
M_Uar
[Function]
Returns whether the robot is in the user-defined area.
Bits 0 through 7 correspond to areas 1 to 8 and each bit displays the following information.
1: Within user-defined area
0: Outside user-defined area
[Format]
[Terminology]
<Numeric Variable> Specifies the numerical variable to assign.
<Mechanism Number> Enter the mechanism number. 1 to 3, If the argument is omitted, 1 is set as the
default value.
[Reference Program]
1 M1=M_Uar(1) AND &H0004 ' The result for area 3 only is assigned to M1.
2 If M1<>0 Then M_Out(10)=1 ' Output signal 10 turns ON if contained in area 3.
[Explanation]
(1) For details on how to use user-defined areas, refer to Page 474, "5.8 About user-defined area".
(2) This variable only reads the data.
Example)<Numeric Variable>=M_Uar [(<Mechanism Number>)]

Table of Contents

Related product manuals