Siemens sinumerik 840d Programming Manual page 112

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Subprograms, Macros
2
2.11 Executing an external subprogram (SW 4.2 and higher)
840D
840D
NCU 571
NCU 572
NCU 573
If the external subprogram is called without an
absolute path name, the same search path is
executed on the MMC as for calling a subprogram
from user memory.
Adjustable load memory (FIFO buffer)
A load memory is required in the NCK in order to
process a program in "Execution from external"
mode (main program or subprogram). The default
setting for the size of the load memory is 30 Kbytes.
The size of the memory can be adjusted via MD
18360 EXT_PROG_BUFFER_SIZE.
POWER ON, RESET
Reset and POWER ON cause external subprogram
calls to be interrupted and the associated load
memory to be erased.
Additional notes
External subprograms are not permitted to include
jump commands such as GOTOF, GOTOB, CASE,
IF - ELSE, FOR, LOOP, WHILE or REPEAT.
Subprogram calls are possible.
Programming example
Setting data $SC_EXT_PROG_PATH contains the
following path: "_N_WCS_DIR/_N_WPC1".
The main program _N_MAIN_MPF is in user memory and
is selected.
%_N_MACHINE1_MPF
N10 PROC MAIN
N20 ...
N30 EXTCALL ROUGHING_SPF
N40 ...
N50 M30
2-112
810D
840Di
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
; Call of external subprogram
ROUGHING_SPF
 Siemens AG 2000. All rights reserved
12.98
2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents