Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual MOV K-2 D1312 RST M1308 SET M1346 Dzrn K20000 K1000 X4 Y0

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 484
Image 484

DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

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).

M0

MOV K-2 D1312

RST M1308

SET M1346

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:

M1107:

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

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)

3 - 368

Page 484
Image 484
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual MOV K-2 D1312 RST M1308 SET M1346 Dzrn K20000 K1000 X4 Y0