beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 390

background image

7 Application Instructions API 50-99

D V P - P L C A P P L I C AT I O N M A N U A L

7-106

API Mnemonic Operands

Function

87

D ABS P

Absolute Value

Controllers

ES/EX/SS SA/SX/SC EH/SV

Bit Devices

Word Devices

Program Steps

Type

OP

X Y M S K H

KnX

KnY KnM KnS T

C

D

E

F

D

*

*

*

*

*

*

*

*

ABS, ABSP: 3 steps

DABS, DABSP: 5 steps

PULSE 16-bit 32-bit

ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV

Operands:

D

: Device of the absolute value

Explanations:

1. See the specifications of each model for their range of use.

2. This instruction obtains the absolute value of the content in the designated in D.

3. This instruction adopts pulse execution instructions (ABSP, DABSP).

Program Example:

When X0 = Off→On, obtain the absolute value of the content in D0.

X0

ABS

D0