17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

Program Example 2:<br />

M1018 = OFF, radian mode. Select the degree value from inputs X0 and X1 and convert it to RAD<br />

value for further sine operation.<br />

X0<br />

MOVP K30 D10 (K30 D10)<br />

X1<br />

MOVP K60 D10 (K60 D10)<br />

M1000<br />

FLT D10 D14 (D10 D15, D14) Binary floating point<br />

DEDIV<br />

K31415926<br />

K1800000000<br />

D20<br />

( π /180) (D21, D20)<br />

Binary<br />

floating point<br />

Binary<br />

floating point<br />

DEMUL<br />

D14<br />

D20<br />

D40<br />

(D15, D14) Degree x π /180<br />

(D41, D40) RAD binary floating point<br />

DSIN<br />

D40<br />

D50<br />

(D41,<br />

D40) RAD (D51, D50) SIN<br />

binary floating point<br />

Program Example 3:<br />

M1018 = ON, degree mode. When X0 = ON, DSIN instruction performs sine operation on the<br />

degree value (0° ≦degree

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!