Repeating Program Sections With Indirect Programming (Call) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Subroutines, Macros

2.9 Repeating program sections with indirect programming (CALL)

2.9
Repeating program sections with indirect programming (CALL)
2.9
Function
CALL is used to call up subroutines indirectly in which the program section repetitions
defined with BLOCK are run according to the start label and end label.
Programming
CALL <program_name> BLOCK <start_label> TO <end_label>
CALL BLOCK <start_label> TO <end_label>
Parameters
CALL
<program_name> (option)
BLOCK ... TO ...
<start_label> <end_label>
Example
DEF STRING[20] STARTLABEL, ENDLABEL
STARTLABEL = "LABEL_1"
ENDLABEL = "LABEL_2"
...
CALL "CONTOUR_1" BLOCK STARTLABEL TO ENDLABEL ...
M17
PROC CONTOUR_1 ...
LABEL_1
N1000 G1 ...
LABEL_2
2-22
Keyword for indirect subroutine call
Variable or constant of type string,
name of the program containing the
program section to run.
If no <program_name> is programmed,
the program section with
<start_label> <end_label> in the
current program is searched for and
run.
Keyword for
indirect program section repetition
Variable or constant of type string
Refers to the beginning or end of
the program section to run
; Beginning of program section
; repetition
; End of program section repetition
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents