28.08.2013 Views

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Programming</strong> <strong>manual</strong><br />

12.<br />

PROGRAM CONTROL INSTRUCTIONS<br />

Program instructions<br />

<strong>CNC</strong> <strong>8035</strong><br />

·T· MODEL<br />

(SOFT V16.3X)<br />

·266·<br />

Example of how to create a program that contains several points of a parabolic path.<br />

The X axis is programmed in diameter, it uses subroutine number 2 and its parameters have the<br />

following meaning:<br />

Call parameters:<br />

A or P0 Value of the K constant.<br />

B or P1 Initial X coordinate.<br />

C or P2 Final X coordinate.<br />

D or P3 Increment or step in X.<br />

Calculated parameters:<br />

E or P4 X coordinate.<br />

F or P5 Z coordinate.<br />

A way to use this example could be:<br />

G00 X0 Z0<br />

(PCALL 2, A0.01, B0, C100, D1)<br />

M30<br />

Program generating subroutine.<br />

Z = -K * X**2<br />

( SUB 2)<br />

(OPEN P12345) ; Starts editing of program P12345<br />

(P4=P1)<br />

N100 (IF (P4+P3 GE P2) P4=P2 ELSE P4=P4+P3)<br />

(P5=-(P0 * P4 * P4))<br />

(WRITE G01 XP4 ZP5) ; Movement block<br />

(IF (P4 NE P2) GOTO N100)<br />

(WRITE M30) ; End of program block<br />

(RET) ; End of subroutine

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!