3. Instruction Set

API

 

 

Mnemonic

 

Operands

Function

 

 

 

 

 

 

 

 

 

135

 

D

 

ATAN

 

P

 

Arc Tangent

 

 

 

 

 

 

 

 

 

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

 

DATAN, DATANP: 9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

steps

 

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

 

 

 

 

32-bit

 

 

 

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

 

 

 

 

 

 

 

SE

SE

 

SE

Operands:

S: Source device (binary floating value) D: Operation result

Explanations:

1.ATAN instruction performs arc tangent operation on S and stores the result in D

2.ATAN value=TAN-1

3.See the figure below for the relation between the input and the result:

R

S:Input (TAN value)

R:Result (ATAN value)

2

 

S

0

 

-2

4.If operation result in D is 0, Zero flag M1020 = ON.

Program Example:

When X0 = ON, DATAN instruction performs arc tangent operation on the binary floating value in (D1, D0) and stores the ATAN value in (D11, D10) in binary floating format.

X0

 

DATAN

D0

D10

 

D1

D0

Binary floating point

D11

D10

ATAN value

 

 

binary floating point

3 - 3 2 5

Page 441
Image 441
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Mnemonic Operands Function 135, Arc Tangent, DATAN, Datanp