Programming manual
CNC 8070
STATEMENTS AND
IN
STRUCTI
O
NS
Pr
ogr
am
m
ing st
at
em
ent
s
15.
(S
OFT
V02.0
X
)
425
15.1.5 Program instructions
It is possible to execute blocks and even programs in a channel from
a program being executed in another channel.
#EXEC
Executes a program in the indicated channel
With this instruction, it is possible to execute a program in the indicated
channel. The execution of the program starts in the indicated channel
in parallel (at the same time) with the block following the
#EXEC
instruction.
If the channel where it is to be executed is busy, it will issue the relevant
error message.
The programming format is:
#EXEC [<path><prg>,<channel>]
Program location
The program to be executed may be defined by either writing the full
path or without it. When a call indicates the full path, it will only look
for it in the indicated directory. If the path is not indicated, the search
is carried out in this order and in these directories:
1.
Directory selected with the
#PATH
instruction.
2.
Directory of the program that executes the
#EXEC
instruction.
3.
Directory defined by machine parameter
SUBPATH
.
Considerations
If the channel is not indicated or it coincides with the channel where
the
#EXEC
instruction is executed, the indicated program will be
executed as a subroutine. In this case, functions M02 and M30 will
carry out all the associated actions (initialization, sending to the PLC,
etc.) except the one for finishing the program. After executing function
M02 or M30, it goes on executing the blocks programmed after the
#EXEC
instruction.
A program containing the
#EXEC
instruction may be executed,
simulated, syntax checked or searched for a particular block. In all the
cases, programs called upon using the
#EXEC
instruction are
executed in the same conditions as the original program
Parameter
Meaning
<path>
File location
<prg>
Program to be executed.
<channel>
Channel where the block is to be executed.
#EXEC [PRG1.NC,2]
(It executes in channel 2 the indicated program)
#EXEC [C:\CNC8070\USERS\PRG\EXAMPLE.NC,3]
(It executes in channel 3 the indicated program)
Содержание 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...