Siemens SINUMERIK 840D sl Programming Manual page 112

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Subroutines, Macros
2.14 Execute external subroutine (EXTCALL)
Example: HMI Advanced
The program to be reloaded is stored on the local hard disk of HMI Advanced.
In the setting data SD 42700: EXT_PROG_PATH is stored in the following path:
"/_N_WKS_DIR/_N_WST1". The _N_MAIN_MPF main program is present in user memory
and has been selected.
N10 PROC MAIN
N20 ...
N30 EXTCALL "ROUGHING"
N40 ...
N50 M30
Subroutine "ROUGHING" (located in the HMI Advanced directory structure under
workpieces->WST1):
N10 PROC ROUGHING
N20 G1 F1000
N30 X=... Y=... Z=...
N40 ...
N90 M17
Example: HMI embedded powerline
The program to be reloaded is located on the network drive or ATA card
EXTCALL Windows path name
Call for ATA card (HMI embedded only for SINUMERIK powerline systems) e.g.
EXTCALL C:\Werkstücke\Kontur2.spf
Example: HMI Advanced or HMI Embedded with network drive option
Call for network drive (HMI Embedded or HMI Advanced)
EXTCALL \\R4711\Workpieces\Contour.1.spf
External program path
The call path can be set flexibly in SD 42700: EXT_PROG_PATH. SD 42700 contains a path
definition that builds the absolute path name of the program to be called in conjunction with
the programmed subroutine identifier.
2-28
; Call of external subroutine
; ROUGHING
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents