beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 330

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-46

API Mnemonic

Operands

Function

62

D ABSD

Absolute Drum Sequencer

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

S

1

*

*

*

*

*

*

*

S

2

*

*

*

D

*

*

*

n

*

*

ABSD: 9 steps

DABSD: 17 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:

S

1

: Start device in the data table S

2

: No. of counter D: Start No. of the devices for the comparison results

n

: Number of data for comparison

Explanations:

1. When

S

1

designates KnX, KnY, KnM and KnS, the 16-bit instruction has to designate K4 and 32-bit instruction

has to designate K8.

2. Range

of

n

: 1 ~ 64

3.

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

4.

ABSD instruction is for the absolute control of the multiple output pulses generated by the present value in the

counter.

5.

S

2

of DABSD instruction can designate high speed counters. However, when the present value in the high

speed counter is compared with the target value, the result cannot output immediately owing to the scan time. If

an immediate output is required, please use DHSZ instruction that is exclusively for high speed counters.

Program Example:

1. Before the execution of ABSD instruction, use MOV instruction to write all the set values into D100 ~ D107 in

advance. The even-number D is for lower bound value and the odd-number D is for upper bound value.

2. When X10 = On, the present value in counter C10 will be compared with the four groups of lower and upper

bound values in D100 ~ D107. The comprison results will be stored in M10 ~ M13.

3. When X10 = Off, the original On/Off status of M10 ~ M13 will be remained.

X10

ABSD

D100

C10

M10

K4

C10

RST

C10

X11

CNT

C10

K400

X11

4. M10~ M13 will be On when the present value in C10 ≦ upper bound value or ≧ lower bound value.

Lower bound value

Upper bound value

Present value in C10

Output

D100 = 40

D101 = 100

40 ≦ C10 ≦ 100

M10 = On

D102 = 120

D103 = 210

120 ≦ C10 ≦ 210

M11 = On