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

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
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Definition operation at the beginning of a program
Name of the program
Comment
; Definition line
; Subprogram return
Comment
; Subprogram return
Flexible NC programming
1.25 Subprogram technique
173

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents