Definition Of A Subprogram; Subprogram Without Parameter Transfer - Siemens Sinumerik 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.25 Subprogram technique
1.25.2

Definition of a subprogram

1.25.2.1

Subprogram without parameter transfer

Function
When defining subprograms without parameter transfer, the definition line at the beginning of
the program can be omitted.
Syntax
[PROC <program name>]
...
Significance
PROC:
<program name>:
Example
Example 1: Subprogram with PROC operation
Program code
PROC SUB_PROG
N10 G01 G90 G64 F1000
N20 X10 Y20
...
N100 RET
Example 2: Subprogram without PROC operation
Program code
N10 G01 G90 G64 F1000
N20 X10 Y20
...
N100 RET
168
Definition operation at the beginning of a program
Name of the program
Comment
; Definition line
; Subprogram return
Comment
; Subprogram return
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents