3. Instruction Set

API

87

Mnemonic

 

Operands

Function

 

 

 

 

 

 

D

ABS

 

P

 

Absolute Value

 

 

 

 

 

 

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

ABS, ABSP: 3 steps

D

 

 

 

 

 

*

*

*

*

*

*

*

*

DABS, DABSP: 5 steps

 

 

 

 

 

 

 

PULSE

 

 

 

 

16-bit

 

32-bit

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

SE

SE

SE

Operands:

D: Device for absolute value operation

Explanation

1.The instruct ion conducts absolute value operation on D

2.This instruction is generally used in pulse execution mode (ABSP, DABSP).

3.If operand D uses index F, then only 16-bit instruction is available.

Program Example:

When X0 goes from OFF to ON, ABS instruction obtains the absolute value of the content in D0.

X0

ABS D0

3 - 2 3 9

Page 355
Image 355
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Abs, Explanation