![Mitsubishi Electric Q172CPU Programming Manual Download Page 292](http://html.mh-extra.com/html/mitsubishi-electric/q172cpu/q172cpu_programming-manual_1811836292.webp)
7 - 31
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.11.3 Operational data
(1) Four fundamental operations (+, -, *, /, MOD)
The data type combinations and conversion methods for four fundamental
operations (+, -, *, /, MOD) are shown below.
Operation result = [Data 1] operator [Data 2]
Operator ind, -, *, / or MOD
Internal operation is performed after conversion into the type of the operation
result. If there is no operation result such as a conditional expression, internal
operation is performed with 32-bit data. For MOD, however, if the operation result
type is 64-bit data with floating point, internal operation is performed with 32-bit
data, which is then converted into the operation result type and stored.
No.
Operation result
Data 1
Data 2
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)
64-bit data is converted into 16-bit data.
Fractional portion is dropped during conversion.
Error occurs if conversion result exceeds 16-bit range.
(Error : 531)
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)
64-bit data is converted into 16-bit data.
Fractional portion is dropped during conversion.
Error occurs if conversion result exceeds 16-bit range.
(Error : 531)
7
#n (16 bit)
No conversion
8
#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)
9
#n (16 bit)
No conversion
Error occurs if
conversion result
exceeds 16-bit
range.
(Error: 531)
#nF, #n:F (64 bit)
64-bit data is converted into 16-bit
data.
Fractional portion is dropped
during conversion.
Error occurs if conversion result
exceeds 16-bit range.
(Error : 531)
#nF, #n:F (64 bit)
64-bit data is converted into 16-bit data.
Fractional portion is dropped during conversion.
Error occurs if conversion result exceeds 16-bit range.
(Error : 531)
n : Indicates variable number or device number
Summary of Contents for Q172CPU
Page 229: ...5 88 5 POSITIONING DEDICATED SIGNALS MEMO ...
Page 447: ...7 186 7 MOTION PROGRAMS FOR POSITIONING CONTROL MEMO ...
Page 535: ...8 88 8 AUXILIARY AND APPLIED FUNCTIONS MEMO ...
Page 557: ...11 10 11 COMMUNICATIONS VIA NETWORK MEMO ...
Page 559: ...12 2 12 MONITOR FUNCTION OF THE MAIN CYCLE MEMO ...