Programming manual
CNC 8055
CNC 8055i
PROGR
A
M CONTR
O
L
INSTRUCTIONS
14.
·M· & ·EN· M
ODELS
S
OFT
: V02.2
X
·403·
Sub
routine
i
n
stru
ctio
ns
(PCALL (expression), (assignment instruction), (assignment instruction),...) )
The mnemonic PCALL calls the subroutine indicated by means of a number or any expression that
results in a number. In addition, it allows up to a maximum of 26 local parameters of this subroutine
to be initialized.
These local parameters are initialized by means of assignment instructions.
Example: (PCALL 52, A3, B5, C4, P10=20)
In this case, in addition to generating a new subroutine nesting level, a new local parameter nesting
level will be generated, there being a maximum of 6 levels of local parameter nesting, within the 15
levels of subroutine nesting.
Both the main program and each subroutine that is found on a parameter nesting level, will have
26 local parameters (P0-P25).
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
(CALL 11)
G91 G01 YP1
(CALL 11)
G91 G01 X-P0
(CALL 11)
G91 G01 Y-P1
(CALL 11)
(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)
; Also (PCALL 10, A20, B10)
; Also (PCALL 10, A10, B20)
; Drilling canned cycle
; Threading canned cycle
Summary of Contents for 8055 M
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: ......