Mitsubishi Electric CR750-Q Instruction Manual page 389

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

Advertisement

M_Uar32
[Function]
Returns whether contained in the user-defined area.
Bits 0 to 31 correspond to areas 1 to 32, with the respective bits displaying the information below.
1: Within user-defined area
2: Outside user-defined area
[Format]
Example) <Numeric Variable> = M_Uar32 [(<Mechanism Number>)]
[Terminology]
<Numeric Variable>
<Mechanism Number>
[Reference Program]
1 Def Long M1
2 M1& = M_Uar32(1) AND &H00080000
3 If M1&<>0 Then M_Out(10)=1
[Explanation]
(1) Refer to,
Page 474, "5.8 About user-defined area"
(2) An error will occur if a 16-bit integer type is used for the <Numeric Variable> and the value is over. If so,
use a 32-bit integer type.
(3) The area in which 1 (signal output) is specified for parameter AREAnAT (n is the area no. (n = 1 to 32))
is applicable.
(4) When performing a comparison operation or logic operation, a negative value results in decimal notation
if bit 31 is 1, and therefore it is recommended that hexadecimal notation be used.
(5) This variable only reads the data.
[Related System Variables]
M_Uar
[M_Uar32 and User-defined Area Compatibility]
Bit
Area
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
13
13
14
14
15
15
16
Example) If contained in user-defined area 5 and 10, this will be the combined value of &H00000010, the
value indicating area 5, and H00000200, the value indicating area 10, however, this will be
returned as an M_Uar32 value.
Specifies the numerical variable to assign.
Enter the mechanism number from 1 to 3. If the argument is omitted, 1 is set as
the default value.
Decimal
Hexadecimal
Value
Value
1
&H00000001
2
&H00000002
4
&H00000004
8
&H00000008
16
&H00000010
32
&H00000020
64
&H00000040
128
&H00000080
256
&H00000100
512
&H00000200
1024
&H00000400
2048
&H00000800
4096
&H00001000
8192
&H00002000
16384
&H00004000
32768
&H00008000
'The result for area 20 only is assigned to M1.
'Output signal 10 turns ON if contained in area 20.
for details on how to use a user-defined area.
Bit
Area
16
17
17
18
18
19
19
20
20
21
21
22
22
23
23
24
24
25
25
26
26
27
27
28
28
29
29
30
30
31
31
32
Detailed explanation of Robot Status Variable 4-369
4MELFA-BASIC V
Hexadecimal
Decimal Value
Value
65536
&H00010000
131072
&H00020000
262144
&H00040000
524288
&H00080000
1048576
&H00100000
2097152
&H00200000
4194304
&H00400000
8388608
&H00800000
16777216
&H01000000
33554432
&H02000000
67108864
&H04000000
134217728
&H08000000
268435456
&H10000000
536870912
&H20000000
1073741824
&H40000000
-2147483648
&H80000000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents