beautypg.com

Delta DVP-ES2 User Manual

Page 484

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 3 6 8

Program Example 2:

When M0 = ON, Y0 pulse output executes zero return with a frequency of 20kHz. When it reaches the

DOG switch, X4 = ON and the frequency changes to JOG frequency of 1kHz. When X4 = OFF, it seeks

the second X2(Z-phase) pulse input (right-edge trigger signal), and Y4 stops after a pulse (the width of

On is 20ms) is output from it (M1029=On).

MOV K-2 D1312

RST M1308

SET M1346

M0

M0

DZRN K20000 K1000 X4 Y0

MOV K-2 D1312

RST M1308

SET M1346

M0

M0

DZRN K20000 K1000 X4 Y0

Points to note:

1. Associated

Flags:

M1029

CH0 (Y0, Y1) pulse output execution completed

M1102

Y2/CH1 (Y2, Y3) pulse output execution completed

M1106:

Zero point selection. M1106=ON, change the zero point to the right of DOG switch

for zero return on CH0

M1107:

Zero point selection. M1107=ON, change the zero point to the right of DOG switch

for zero return on CH1

M1305: Reverse Y1 pulse output direction in high speed pulse output instructions

M1306: Reverse Y3 pulse output direction in high speed pulse output instructions

M1307: For ZRN instruction, enable left limit switch

M1308:

Output specified pulses (D1312) or seek Z phase signal when zero point is

achieved.

M1346: Output clear signals when ZRN is completed

2. Special

D

registers:

D1312:

Specify the number of additional pulses for additional pulses output and Z-phase

seeking function of ZRN instruction (Has to be used with M1308)

This manual is related to the following products: