·404·
Programming manual
CNC 8055
CNC 8055i
14.
PROGR
A
M CONTR
O
L
INSTRUCTIONS
·M· & ·EN· M
ODELS
S
OFT
: V02.2
X
Sub
routine
i
n
stru
ctio
ns
(MCALL (expression), (assignment instruction), (assignment instruction),...) )
By means of the mnemonic MCALL, any user-defined subroutine (SUB integer) acquires the
category of canned cycle.
The execution of this mnemonic is the same as the mnemonic PCALL, but the call is modal, i.e.,
if another block with axis movement is programmed at the end of this block, after this movement,
the subroutine indicated will be executed and with the same call parameters.
If, when a modal subroutine is selected, a movement block with a number of repetitions is executed,
for example X10 N3, the CNC will execute the movement only once (X10) and after the modal
subroutine, as many times as the number of repetitions indicates.
Should block repetitions be chosen, the first execution of the modal subroutine will be made with
updated call parameters, but not for the remaining times, which will be executed with the values
which these parameters have at that time.
If, when a subroutine is selected as modal, a block containing the MCALL mnemonic is executed,
the present subroutine will lose its modal quality and the new subroutine selected will be changed
to modal.
( MDOFF )
The MDOFF instruction indicates that the mode assumed by a subroutine with the MCALL
instruction or a part-program with MEXEC ends in that block.
The use of modal subroutines simplifies programming.
Programming example.
G90 G00 X30 Y50 Z0
(PCALL 10, P0=20, P1=10)
G90 G00 X60 Y50 Z0
(PCALL 10, P0=10, P1=20)
M30
(SUB 10)
G91 G01 XP0 F5000
(MCALL 11)
G91 G01 YP1
G91 G01 X-P0
G91 G01 Y-P1
(MDOFF)
(RET)
(SUB 11)
G81 G98 G91 Z-8 I-22 F1000 S5000 T1 D1
G84 Z-8 I-22 K15 F500 S2000 T2 D2
G80
(RET)
Summary of Contents for 8055 EN
Page 1: ...CNC 8055 M EN Programming manual Ref 1711 Soft V02 2x...
Page 8: ...8 Programming manual CNC 8055 CNC 8055i SOFT V02 2X...
Page 12: ...12 CNC 8055 CNC 8055i Declaration of conformity and Warranty conditions...
Page 16: ...16 CNC 8055 CNC 8055i Version history...
Page 22: ...22 CNC 8055 CNC 8055i Returning conditions...
Page 24: ...24 CNC 8055 CNC 8055i Additional notes...
Page 26: ...26 CNC 8055 CNC 8055i Fagor documentation...
Page 448: ......
Page 464: ...464 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Page 466: ...466 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code MC operator panel...
Page 467: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 467 Key code...
Page 468: ...468 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Page 471: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 471 Key code 11 LCD Monitor...
Page 472: ...472 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Page 478: ...478 Programming manual CNC 8055 CNC 8055i F M EN MODELS SOFT V02 2X Maintenance...
Page 479: ...Programming manual CNC 8055 CNC 8055i F SOFT V02 2X 479...
Page 480: ...480 Programming manual CNC 8055 CNC 8055i F SOFT V02 2X...
Page 481: ......