beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 491

background image

9 Application Instructions API 150-199

DVP-PLC Application Manual

9-19

API Mnemonic

Operands

Function

156

D ZRN

Zero Return

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

*

*

*

*

*

*

*

*

*

*

*

S

3

* * * *

D

*

ZRN: 9 steps

DZRN: 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

: Zero return speed S

2

: Creep speed S

3

: Near p oint signal (DOG) D: Pulse output device (please use

transistor output module)

Explanations:

1. When

S

1

and S

2

are used in device F, only 16-bit instruction is applicable.

2.

S

1

and S

2

of SC series MPU only support device K, H and D. S

3

of SC series MPU only supports device X10

and X11.

3.

Flag: see remarks of API 155 ABSR and API 158 DDRVI for more details.

4.

S

1

is the starting speed of zero return operation. For EH/EH2/SV series MPU, the 16-bit instruction can

designate the range of the speed, which is 10 ~ 32,767Hz and the range designated by the 32-bit instruction is

10 ~ 200,000Hz. If the designated speed is slower than 10Hz, the zero return will operate at 10Hz and when

the designated speed is faster than 200KHz, the zero return will operate at 200KHz. For SC series MPU, the

32-bit instruction can designate the range of speed , which is 100 ~ 100,000Hz. If the designated speed is

slower than 100Hz, the zero return will operate at 100Hz, and when the designated speed is faster than

100KHz, the zero return will operate at 100KHz.

5.

S

2

is the designated low speed after the near point signal (DOG) is On. EH/EH2/SV series MPU can designate

the range of S

2

, which is 10 ~ 32,767Hz and SC series MPU can designate the range 100 ~ 100,000Hz.

6.

S

3

is the designated near point signal (DOG) input (input from A contact). In EH/EH2/SV series MPU, if devices

other than the external output device (X10 ~ X17), e.g. X, Y, M, S are designated, they will be affected by the

scan period, resulting in dispersion of the zero point. In addition, please note that the MPU cannot designate

the same input points X10 ~ X17 as those designated by DCNT and PWD instructions. SC series MPU can

only designate X10 and X11 and cannot designate the same input points as those designated by DCNT

instruction.

7.

EH series MPU has two groups of A/B phase pulse output, CH0 (Y0, Y1) and CH1 (Y2, Y3); EH2/SV series

MPU has four groups of A/B phase pulse output, CH0 (Y0, Y1), CH1 (Y2, Y3), CH2 (Y4, Y5) and CH3 (Y6, Y7).

See remarks for the setup methods.

8.

Zero return output device in different models

Model

SC MPU

EH MPU

EH2/SV MPU

Zero return output

Y10, Y11

Y0, Y2

Y0, Y2, Y4, Y6

9.

When executing API 158 DRVI (releative positioning) or API 159 DRVA (absolute positioning), PLC will

automatically store the increasing or decreasing forward/reverse pulses in the present value registers. For