5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-111
Example 2
A radian/degree flag is OFF. A degree is set by means of X0 or X1. After the
degree is converted into a radian, the sine of the radian will be calculated.
X0
DMOVP K30 D10
X1
DMOVP K60 D10
M1000
DFLT D10 D14
DEDIV
F3.1415926 F180.0 D20
DEMUL D14 D20 D40
DSIN D40 D50
(K30) (D11, D10)
(K60) (D11, D10)
(D11, D10) (D15, D14) Binary floating-point value
( /180) (D21, D20)
Binary floating-point value
(D15, D14) x ( /180) Degree
(D41,D40) Radian
Binary floating-point value
(D41,D40) Radian
(D51,D50) Sine
Binary floating-point value
Example 3
A radian/degree flag is set to ON. The value in (D1, D0) is a degree in the
range of 0° to 360°. When X0 is ON, the sine of the value in (D1, D0) is stored
in (D11, D10). The value in (D11, D10) is a binary floating-point value.
Radian/Degree flag
M100
SET
X0
DSIN
D0 D10
D 1 D 0
S
D
D 11 D 10
Sine
Binary floating-point value
Degree
Additional
Pl
rema
rk
ease refer to section 5.3 for more information about performing operations on
floating-point values.