DVP-ES2/SX2/SS2/SA2/SX2/SE Operation Manual – Programming

API Mnemonic

Operands

Function

Controllers

202

SCAL

P

 

 

 

 

Proportional

 

 

ES2/EX2 SS2 SA2 SX2

 

 

 

 

calculation

 

 

 

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

Type

Bit Devices

 

Word devices

 

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F SCAL,SCLAP: 9 steps

S1

 

 

 

 

 

*

*

 

 

*

 

 

 

 

S2

 

 

 

 

 

*

*

 

 

*

 

 

 

 

S3

 

 

 

 

 

*

*

 

 

*

 

 

 

 

D

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

16-bit

 

32-bit

 

 

 

 

 

 

 

 

 

SA2

 

 

 

SA2

SA2

 

 

 

 

 

 

 

 

ES2/EX2 SS2

SE SX2 ES2/EX2 SS2

SE

SX2 ES2/EX2 SS2 SE

SX2

Operands:

S1: Source value S2: Slope (unit: 0.001) S3: Offset D: Operation result

Range of operands S1, S2, S3: -32768~32767.

Explanations:

1.SCAL instruction performs a proportional calculation according to the internal slope equation.

2.Operation equation in the instruction: D = (S1 × S2) ÷ 1000 + S3

3.Users have to obtain S2 and S3 (decimals are rounded up into 16-bit integers) by using the slope and offset equations below.

Slope equation: S2 = [(max. destination value – min. destination value) ÷ (max. source value – min. source value)] × 1,000

Offset equation: S3 = min. destination value – min. source value × S2 ÷ 1,000

4.The output curve is shown as the figure:

Destination value

Max. Destination value

D

Source value

Min.

Max.

source value

source value

Min. destination value

3 - 454

Page 570
Image 570
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Destination value