EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Page 295

Mitsubishi Electric Q172CPU
634 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...
7 - 34
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(2) Logical operations (AND, OR, XOR, NOT), shift operators (<<, >>)
• For AND, OR, XOR, <<, >>
The data type combinations and conversion methods for logical operations
(AND, OR, XOR) and shift operators (<<, >>) are shown below.
Operation result = [Data 1] operator [Data 2]
Operator indicates AND, OR, XOR, << or >>
For logical and shift operations, operation including the 64-bit floating-point type
cannot be performed. (Error "560 : format error")
No. Operation result Data 1 Data 2 Remarks
1
#n (16 bit)
No conversion
2
#nL, #n:L (32 bit)
32-bit data is converted into 16-bit data.
Error occurs if conversion result exceeds 16-bit range.
(Error : 531)
3
#n (16 bit)
No conversion
#nF, #n:F (64 bit)
Operation cannot be performed.
Operation disabled
4
#n (16 bit)
No conversion
5
#nL, #n:L (32 bit)
32-bit data is converted into 16-bit data.
Error occurs if conversion result exceeds 16-bit range.
(Error : 531)
6
#nL, #n:L (32 bit)
32-bit data is converted into 16-bit
data.
Error occurs if conversion result
exceeds 16-bit range.
(Error : 531)
#nF, #n:F (64 bit)
Operation cannot be performed.
Operation disabled
7
#n (16 bit)
Operation cannot be performed.
Operation disabled
8
#nL, #n:L (32 bit)
Operation cannot be performed.
Operation disabled
9
#n (16 bit)
No conversion
#nF, #n:F (64 bit)
Operation cannot be performed.
#nF, #n:F (64 bit)
Operation cannot be performed.
Operation disabled
10
#n (16 bit)
16-bit data is converted into 32-bit data.
11
#nL, #n:L (32 bit)
No conversion
12
#n (16 bit)
16-bit data is converted into 32-bit
data.
#nF, #n:F (64 bit)
Operation cannot be performed.
Operation disabled
13
#n (16 bit)
16-bit data is converted into 32-bit data.
14
#nL, #n:L (32 bit)
No conversion
15
#nL, #n:L (32 bit)
No conversion
#nF, #n: F (64 bit)
Operation cannot be performed.
Operation disabled
16
#n (16 bit)
Operation cannot be performed.
Operation disabled
17
#nL, #n:L (32 bit)
Operation cannot be performed.
Operation disabled
18
#nL, #n:L (32 bit)
(32 bit)
No conversion
#nF, #n:F (64 bit)
Operation cannot be performed.
#nF, #n:F (64 bit)
Operation cannot be performed.
Operation disabled
n : Indicates variable number or device number

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals