3. Instruction Set

API

 

 

Mnemonic

 

Operands

Function

 

 

 

 

 

 

 

 

 

134

 

D

 

ACOS

 

P

 

Arc Cosine

 

 

 

 

 

 

 

 

 

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

 

DACOS, DACOSP: 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.ACOS instruction performs arc cosine operation on S and stores the result in D

2.ACOS value = COS-1

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

R

S:Input (COS value)

R:Result (ACOS value)

2

-1,0

 

 

S

0

1,0

 

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

5.The decimal value of the COS value designated by S should be within -1.0 ~ +1.0. If the value exceeds the range, M1067 and M1068 will be ON and instruction will be disabled.

Program Example:

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

X0

DACOS D0 D10

3 - 3 2 3

Page 439
Image 439
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Acos, DACOS, Dacosp