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

API Mnemonic

Operands

Function

Controllers

203

D

SCLP P

 

 

 

Parameter 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

SCLP, SCLPP: 7 steps

S1

 

 

 

 

 

 

*

*

 

*

 

 

DSCLP, DSCLPP: 13

 

S2

 

 

 

 

 

 

 

 

 

*

 

 

steps

 

 

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: Parameters D: Operation result

Explanations:

1.SCLP instruction performs a proportional calculation according to the internal slope equation as well as the parameters set in this instruction.

2.Settings of S2 for 16-bit instruction (occupies 4 consecutive devices):

Device No.

Parameter

Range

S2

Max. source value

-32768~32767

S2+1

Min. source value

-32768~32767

 

 

 

S2+2

Max. destination value

-32768~32767

 

 

 

S2+3

Min. destination value

-32768~32767

3.Settings of S2 for 32-bit instruction (occupies 8 consecutive devices).

Device No.

Parameter

Range

 

Integer

 

 

S2S2+1

Max. source value

 

S2+23

Min. source value

-2,147,483,648~2,147,483,647

 

 

S2+45

 

Max. destination value

 

S2+67

Min. destination value

 

 

 

 

Floating point number

Range of 32-bit floating point number

4.Operation equation in the instruction: D = [(S1 – min. source value) × (max. destination value – min. destination value)] ÷ (max. source value – min. source value) + min. destination value

5.The equation to obtain the operation equation of the instruction:

y = kx + b

where

y= Destination value (D)

k = Slope = (max. destination value – min. destination value) ÷ (max. source value – min. source value)

x= Source value (S1)

b = Offset = Min. destination value – Min. source value × slope

3 - 456

Page 572
Image 572
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Device No Parameter Range Integer S2、S2+1, Floating point number, = kx + b