Indirect Subprogram Call With Specification Of The Calling Program Part - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.24 Subprogram technique
1.24.3.6
Indirect subprogram call with specification of the calling program part (CALL BLOCK ...
TO ...)
Function
CALL
execute the program part designated by the start and end labels.
Syntax
CALL <program name> BLOCK <start label> TO <end label>
CALL BLOCK <start label> TO <end label>
Meaning
CALL
<program name>
BLOCK ... TO ...
<start label>
<end label>
Example
Main program:
Program code
...
DEF STRING[20] STARTLABEL, ENDLABEL
STARTLABEL="LABEL_1"
ENDLABEL="LABEL_2"
...
CALL "CONTUR_1" BLOCK STARTLABEL TO ENDLABEL
...
194
and the keyword combination
:
:
:
:
:
is used to call a subprogram indirectly and
BLOCK ... TO
Command for the indirect subprogram call.
Name of the subprogram (variable or constant) that contains
the program part to be executed (specification optional).
Type:
STRING
Note:
If a
has not been programmed, the program part
<program name>
designated by
<start label>
the current program and executed.
Keyword combination for indirect program part execution
Variable that refers to the start of the program part to be
executed.
Type:
STRING
Variable that refers to the end of the program part to be
executed.
Type:
STRING
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
and
is searched for in
<end label>
Comment
; Variable definition for the
start and end labels.
; Indirect subprogram call and
identifier associated with
the calling program part.
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents