5 Categories and Use of Basic Application Instructions Program Example 2: Radian/degree selection flag = OFF indicates radian mode. Select the degree value from inputs X0 and X1 and convert it to RAD value for further sine operation. X0 (K30) (D11,D10) X1 (K60) (D11,D10) M1000 (D11,D10) (D15,D14) binary floating point ( /180) (D21,D20) binary floating point (D15,D14) degree x ( /180) (D41,D40) RAD binary floating point (D41,D40) RAD (D51,D50) SIN binary floating point Program Example 3: Radian/degree selection flag = ON indicates degree mode.
When X0 = ON, DSIN instruction performs sine operation on the degree value (0° degree ≦ < 360°) in (D1, D0) and stores the SIN value in (D11, D10) in binary floating format M1002 X0 Degree value SIN value binary floating point Points to note: For floating point operations, see “5.3 Numeric Values for Data Processing”. DVP-PM Application Manual 5-111 DMOVP K30 D10 DMOVP K60 D10 DFLT D10 D14 DEDIV F3.1415926 F180.0 D20 DEMUL D14 D20 D40 DSIN D40 D50 SET Degree/radian flag DSIN D0 D10 D 1 D 0 D 11 D 10