3. Instruction Set

API

195

Mnemonic

Operands

Function

 

 

 

 

 

D

PTPO

 

 

Single-axis pulse output by

 

 

table

 

 

 

 

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

DPTPO: 13 steps

S1

 

 

 

 

 

 

 

*

 

 

 

S2

 

*

 

 

 

 

 

*

 

 

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

16-bit

 

32-bit

 

 

ES2/EX2

SS2

SA2

SX2 ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

 

SE

SE

SE

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

S1: Source start device

S2: Number of segments

D: Pulse output device

 

 

Explanations:

1.S1 specifies the output frequency and the number of pulses according to the number of segments set by S2. Each segment occupies consecutive 4 registers, i.e. (S1+0), (S1+1), (S1+2) and (S1+3). (S1+0) and (S1+1) stores the output frequency; (S1+2) and (S1+3) stores the number of output pulses.

2.Available output frequency for S1 : 6Hz~100,000Hz.

3.S2 + 0: total number of segments (range: 1 ~ 40). S2 + 1: The No. of current executing segment. The number in S2 + 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:

S2 = D300, number of

S1 = D0, frequency (S1 + 0)

S1 = D0, number of output

segments (D300

= K40)

 

pulses (S1 + 2)

K1

(1st segment)

 

D1, D0

D3, D2

 

 

 

 

 

K2

(2nd segment)

 

D5, D4

D7, D6

 

 

 

 

 

 

:

 

:

:

 

 

 

 

 

3 - 4 3 7

Page 553
Image 553
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Api, Ptpo