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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

(PCALL (expression), (assignment instruction), (assignment instruction),...) )<br />

The mnemonic PCALL calls the subroutine indicated by means of a number or any expression that<br />

results in a number. In addition, it allows up to a maximum of 26 local parameters of this subroutine<br />

to be initialized.<br />

These local parameters are initialized by means of assignment instructions.<br />

Example: (PCALL 52, A3, B5, C4, P10=20)<br />

In this case, in addition to generating a new subroutine nesting level, a new local parameter nesting<br />

level will be generated, there being a maximum of 6 levels of local parameter nesting, within the 15<br />

levels of subroutine nesting.<br />

Both the main program and each subroutine that is found on a parameter nesting level, will have<br />

26 local parameters (P0-P25).<br />

<strong>Programming</strong> example.<br />

The X axis is programmed in diameter.<br />

G90 G01 X80 Z330<br />

(PCALL 10, P0=20, P1=-10) ; Also (PCALL 10, A20, B-10)<br />

G90 G01 X80 Z260<br />

(PCALL 10, P0=20, P1=-10) ; Also (PCALL 10, A20, B-10)<br />

G90 G01 X200 Z200<br />

(PCALL 10, P0=30, P1=-15) ; Also (PCALL 10, A30, B-15)<br />

G90 G01 X200 Z115<br />

(PCALL 10, P0=30, P1=-15) ; Also (PCALL 10, A30, B-15)<br />

M30<br />

( SUB 10)<br />

G91 G01 ZP1<br />

XP0 ZP1<br />

XP0<br />

ZP1<br />

(RET)<br />

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

PROGRAM CONTROL INSTRUCTIONS<br />

Subroutine instructions 12.<br />

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

·T· MODEL<br />

(SOFT V16.3X)<br />

·261·

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

Saved successfully!

Ooh no, something went wrong!