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.24.2

Definition of a subprogram

1.24.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
Program code
PROC SUB_PROG
N10 G01 G90 G64 F1000
N20 X10 Y20
...
N100 RET
Example 2: Subprogram without
Program code
N10 G01 G90 G64 F1000
N20 X10 Y20
...
N100 RET
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
:
Definition operation at the beginning of a program
Name of the program
operation
PROC
Comment
; Definition line
; Subprogram return
operation
PROC
Comment
; Subprogram return
Flexible NC programming
1.24 Subprogram technique
161

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents