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>SX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> – Programming<br />

Destination value<br />

= 500<br />

D<br />

= 30<br />

0<br />

S 1=500<br />

Source value<br />

Program Example 2:<br />

1. Assume source value S 1 = 500, max. source value D0 = 3000, min. source value D1 = 200,<br />

max. destination value D2 = 30, and min. destination value D3 = 500. When X0 = ON, SCLP<br />

instruction executes and the result of proportional calculation will be stored in D10.<br />

2. Equation: D10 = [(500 – 200) × (30 – 500)] ÷(3000 – 200) + 500 = 449.64. Rounding off the<br />

result into an integer, D10 = 450.<br />

X0<br />

MOV<br />

K3000<br />

D0<br />

MOV<br />

K200<br />

D1<br />

MOV<br />

K30<br />

D2<br />

MOV<br />

K500<br />

D3<br />

X0<br />

SCLP K500 D0 D10<br />

Destination value<br />

= 500<br />

D<br />

= 30<br />

0<br />

S 1=500<br />

Source value<br />

3-458

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

Saved successfully!

Ooh no, something went wrong!