Indirect Subprogram Call With Specification Of The Calling Program Part (Call Block - Siemens SINUMERIK 828D Programming Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

1.25.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>
Significance
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
...
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
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
<program name>
part designated by
<start label>
for in 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
Flexible NC programming
1.25 Subprogram technique
and
is searched
<end label>
Comment
; Variable definition for the
start and end labels.
; Indirect subprogram call and
identifier associated with
the calling program part.
191

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents