Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 36
6 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