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 />

Subroutine instructions<br />

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

·T· MODEL<br />

(SOFT V16.3X)<br />

·262·<br />

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

By means of the mnemonic MCALL, any user-defined subroutine (SUB integer) acquires the<br />

category of canned cycle.<br />

The execution of this mnemonic is the same as the mnemonic PCALL, but the call is modal, i.e.,<br />

if another block with axis movement is programmed at the end of this block, after this movement,<br />

the subroutine indicated will be executed and with the same call parameters.<br />

If, when a modal subroutine is selected, a movement block with a number of repetitions is executed,<br />

for example X10 N3, the <strong>CNC</strong> will execute the movement only once (X10) and after the modal<br />

subroutine, as many times as the number of repetitions indicates.<br />

Should block repetitions be chosen, the first execution of the modal subroutine will be made with<br />

updated call parameters, but not for the remaining times, which will be executed with the values<br />

which these parameters have at that time.<br />

If, when a subroutine is selected as modal, a block containing the MCALL mnemonic is executed,<br />

the present subroutine will lose its modal quality and the new subroutine selected will be changed<br />

to modal.<br />

(MDOFF)<br />

The MDOFF instruction indicates that the mode assumed by a subroutine with the MCALL<br />

instruction or a part-program with MEXEC ends in that block.<br />

The use of modal subroutines simplifies programming.<br />

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

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

(P100=20, P101=-10)<br />

G90 G01 X80 Z330<br />

(MCALL 10)<br />

G90 G01 X80 Z260<br />

(P100=30, P101=-15)<br />

G90 G01 X200 Z200<br />

G90 G01 X200 Z115<br />

(MDOFF)<br />

M30<br />

( SUB 10)<br />

G91 G01 ZP101<br />

XP100 ZP101<br />

XP100<br />

ZP101<br />

(RET)

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

Saved successfully!

Ooh no, something went wrong!