Subroutines, Macros
2.14 Execute external subroutine (EXTCALL)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-27
2.14 2.14 Execute external subroutine (EXTCALL)
Function
EXTCALL can be used to reload a program from the HMI in "Processing from external
source" mode. All programs that can be accessed via the directory structure of HMI can be
reloaded and run.
Programming
EXTCALL (<path/program_name>)
Parameters
EXTCALL\ Keyword for subroutine call
<path/program_name> Constant/variable of type STRING
An absolute path name or program name can
be specified.
The program name is written with/without
the leading _N_ and without an extension.
An extension can be appended to the
program name using the <_> character.
Example:
EXTCALL ("/_N_WKS_DIR/_N_SHAFT_WPD/_N_SHAFT_SPF") or EXTCALL ("SHAFT")
Note
External subprograms are not permitted to include jump commands such as GOTOF,
GOTOB, CASE, FOR, LOOP, WHILE or REPEAT.
IF-ELSE-ENDIF constructions are possible.
Subroutine calls and nested EXTCALL calls, may be used.
POWER ON, RESET
RESET and POWER ON cause external subroutine calls to be interrupted and the
associated load memory to be erased. The reloading programs does however remain
selected and is also immediately ready for SINUMERIK solution line systems for
implementation as before with no limitations.