beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 306

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

D1151

0

1

2

0

3

4

0

5,000

10,000

15,000

M1153

0

100

200

300

400

500

(Hz)

Present value

in C251

12. Special registers for flags and relevant settings:

Flag

Function

M1152

DHSZ instruction in frequency control mode

M1153

The execution of DHSZ frequency control mode is completed.

Special D

Function

D1151

Table counting register for DHSZ multiple set values comparison mode

D1152 (low word)
D1153 (high word)

In frequency control mode, DHSZ reads the upper and lower limits in the

table counting register D1153 and D1152.

D1336 (low word)
D1337 (high word)

Current number of pulses output by DPLSY instruction

13. The complete program:

X10

DMOVP

K5000

D2

DMOVP K10000

D6

DMOVP K15000

D10

DMOVP

K6000

D14

DMOVP

K0

D18

DMOVP

K0

D0

DMOVP

K100

D4