Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Exp

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 423
Image 423

3. Instruction Set

API

124

Mnemonic

 

Operands

Function

 

 

 

 

 

 

D

EXP

 

P

 

Float exponent operation

 

 

 

 

 

 

Controllers

ES2/EX2 SS2 SA2 SX2

SE

Type

Bit Devices

 

Word devices

 

 

 

 

Program Steps

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

DEXP, DEXPP: 9 steps

S

 

 

 

 

*

*

 

*

 

 

 

D

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

PULSE

 

 

16-bit

 

32-bit

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

SE

SE

SE

Operands:

S: Exponent D: Operation result

Explanations:

1.The base is e = 2.71828 and exponent is S

2.EXP [ S +1, S ] = [ D +1, D ]

3.Both positive and negative values are valid for S. Register D has to be 32-bit format. Operation is conducted in floating point value, so the value in S needs to be converted into floating value before exponent operation.

4.The content in D: e S, e =2.71828 and S is the specified exponent..

5.Flags: M1020 (Zero flag), M1021 (Borrow flag) and M1022 (Carry flag).

If absolute value of the result is larger than max. floating value, carry flag M1022 = ON.

If absolute value of the result is smaller than min. floating value, borrow flag M1021 = ON. If the conversion result is 0, zero flag M1020 = ON.

Program Example:

1.When M0 = ON, convert (D1, D0) to binary floating value and save the result in (D11, D10).

2.When M1= ON, perform exponent operation with (D11, D10) as the exponent. The value is saved in register (D21, D20) in binary floating format.

3.When M2 = ON, convert the value in (D21, D20) into decimal floating point value and save the

result in (D31, D30). (At this time, D31 indicates powers of 10 for D30)

M0

RST M1081

DFLT D0 D10

M1

DEXP D10 D20

M2

DEBCD D20 D30

3 - 3 0 7

Page 423
Image 423
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Exp