![Mitsubishi Electric Q172CPU Programming Manual Download Page 297](http://html.mh-extra.com/html/mitsubishi-electric/q172cpu/q172cpu_programming-manual_1811836297.webp)
7 - 36
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(3) Trigonometric functions (SIN, COS, TAN, ASIN, ACOS, ATAN)
The data type combinations and conversion methods for trigonometric functions
(SIN, COS, TAN, ASIN, ACOS, ATAN) are shown below.
Operation result = trigonometric function [Data 1]
Trigonometric function indicates SIN, COS, TAN,
ASIN, ACOS or ATAN
Internal operation is performed with the 64-bit floating-point type.
When there is operation in Data 1, operation is performed after conversion into
64-bit data.
No.
Operation result
Data 1
1
#n (16 bit)
16-bit data is converted into 64-bit data.
Data is divided by 10000 during conversion.
2
#nL, #n:L (32 bit)
32-bit data is converted into 64-bit data.
Data is divided by 10000 during conversion.
3
#n (16 bit)
Internal operation result (64 bit) is multiplied by 10000
and result of multiplication is converted into16-bit data.
Fractional portion is dropped during conversion.
Error occurs if operation result exceeds 16-bit range.
(Error : 531)
#nF, #n:F (64 bit)
Data is divided by 10000 during conversion.
4
#n (16 bit)
16-bit data is converted into 64-bit data.
Data is divided by 10000 during conversion.
5
#nL, #n:L (32 bit)
32-bit data is converted into 64-bit data.
Data is divided by 10000 during conversion.
6
#nL, #n:L (32 bit)
Internal operation result (64 bit) is multiplied by 10000
and result of multiplication is converted into 32-bit data.
Fractional portion is dropped during conversion.
Error occurs if operation result exceeds 32-bit range.
(Error : 531)
#nF, #n:F (64 bit)
Data is divided by 10000 during conversion.
7
#n (16 bit)
16-bit data is converted into 64-bit data.
8
#nL, #n:L (32 bit)
32-bit data is converted into 64-bit data.
9
#nF, #n:F (64 bit)
Internal operation result (64 bit) is stored as it is.
#nF, #n:F (64 bit)
No conversion
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 ...