beautypg.com

Delta DVP-ES2 User Manual

Page 553

background image

3 . I n s t r u c t i o n S e t

3 - 4 3 7

API Mnemonic Operands

Function

195

D PTPO

Single-axis pulse output by
table

Controllers

ES2/EX2 SS2 SA2

SE

SX2

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

*

DPTPO: 13 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

S

1

: Source start device S

2

: Number of segments D: Pulse output device

Explanations:

1. S

1

specifies the output frequency and the number of pulses according to the number of

segments set by S

2

. Each segment occupies consecutive 4 registers, i.e. (S

1

+0), (S

1

+1), (S

1

+2)

and (S

1

+3). (S

1

+0) and (S

1

+1) stores the output frequency; (S

1

+2) and (S

1

+3) stores the

number of output pulses.

2. Available output frequency for S

1

: 6Hz~100,000Hz.

3. S

2

+ 0: total number of segments (range: 1 ~ 40). S

2

+ 1: The No. of current executing

segment. The number in S

2

+ 1 will be updated when the PLC scan reaches this instruction.

4. D can only be designated with output devices Y0 and Y2, i.e. only pulse output is supported.

Users need to apply other instructions if a control on direction signal output is required.

5. This instruction does not offer ramp up/down function. Therefore, when the instruction is

disabled, the output pulses will stop immediately.

6. There is no limitation on the times of using this instruction, however during each scan cycle,

Y0 and Y2 can be driven by one instruction at a time.

7. When the instruction is being executed, changes to the instruction parameter will be invalid.

8. Cyclic output can be performed on this instruction by driving ON M1262.

Program Example:

1. When X0 = ON, pulse output will be operated according to the set frequency and number of

pulses in every segment.

2. Format of the table:

S

2

= D300, number of

segments (D300 = K40)

S

1

= D0, frequency (S

1

+ 0)

S

1

= D0, number of output

pulses (S

1

+ 2)

K1 (1

st

segment)

D1, D0

D3, D2

K2 (2

nd

segment)

D5, D4

D7, D6

: : :

This manual is related to the following products: