5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-111
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
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
( /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
SET
X0
DSIN
D0
D10
Degree/radian
flag
D 1
D 0
D 11
D 10
Degree value
SIN value
binary floating point
Points to note:
For floating point operations, see “5.3 Numeric Values for Data Processing”.
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...