Programming manual
486
CNC 8070
15.
STATEMENTS AND
IN
STRUCTI
O
NS
Pr
ogr
am
m
ing st
at
em
ent
s
(S
OFT
V02.0
X
)
422
#PCALL
Call to a local or global subroutine initializing parameters
It calls a subroutine (local or global) whose full path may be defined.
This type of call allows initializing local parameters of the subroutine.
The programming format is:
#PCALL <path><sub> P0 P1 P2...
When there are two subroutines, one local and the other one global,
with the same name, the following criteria is applied. If the path has
been defined in the call, the CNC will execute the global subroutine,
otherwise, it will execute the local one.
The values of the call parameters may be defined in two ways. With
the parameter name P0, P1, P2, etc. or with the letters A-Z (except
the Ñ) in such a way that "A" is the same as P0 and "Z" is the same
as P25.
When using local parameters in the subroutine calls, besides
generating a new nesting level, it will also generate a new nesting level
for the local parameters; there may be up to 7 nesting levels of local
parameters within the 20 nesting levels of the subroutines.
#MCALL
Call to a local or global subroutine, being modal, initializing
parameters
It calls a subroutine (local or global) whose full path may be defined.
This type of call allows initializing local parameters of the subroutine.
With this type of call, the subroutine becomes modal; i.e. the
subroutine remains active in successive movements and it is repeated
at the end of each move. The modal subroutine is canceled with the
instruction
#MDOFF
.
The programming format is:
#MCALL <path><sub> P0 P1 P2...
When there are two subroutines, one local and the other one global,
with the same name, the following criteria is applied. If the path has
been defined in the call, the CNC will execute the global subroutine,
otherwise, it will execute the local one.
#CALL C:\Cnc8070\Users\Prg\sub1.nc
#CALL C:\Cnc8070\Users\sub2.nc
#CALL Sub3.nc
Parameter
Meaning
<path>
Subroutine location.
<sub>
Name of the subroutine
#PCALL C:\Cnc8070\Users\Prg\sub1.nc
#PCALL C:\Cnc8070\Users\sub2.nc A12.3 P10=6
#PCALL Sub3.nc A12.3 F45.3 P10=6
Parameter
Meaning
<path>
Subroutine location.
<sub>
Name of the subroutine
Содержание CNC 8070
Страница 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 12: ......
Страница 14: ......
Страница 16: ......
Страница 22: ......
Страница 26: ......
Страница 28: ......
Страница 30: ......
Страница 32: ......
Страница 34: ......
Страница 54: ...Programming manual 20 CNC 8070 1 CREATING A PROGRAM Parameters constants and expressions SOFT V02 0X 20...
Страница 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Страница 154: ...Programming manual 120 CNC 8070 6 TOOL PATH CONTROL Manual intervention G200 G201 G202 SOFT V02 0X 120...
Страница 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Страница 188: ...Programming manual 154 CNC 8070 8 ADDITIONAL PREPARATORY FUNCTIONS Probing G100 SOFT V02 0X 154...
Страница 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Страница 446: ...Programming manual 412 CNC 8070 14 CNC VARIABLES Alphabetical listing of variables SOFT V02 0X 412...
Страница 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...