Siemens SINUMERIK 840D sl Programming Manual page 525

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Examples
Example 1: Subprogram call preceded by declaration
Program code
N10 EXTERNAL BORDERS(REAL,REAL,REAL)
...
N40 BORDER(15.3,20.2,5)
Example 2: Subprogram call without declaration
Program code
N10 DEF REAL LENGTH, WIDTH, DEPTH
N20 ...
N30 LENGTH=15.3 WIDTH=20.2 DEPTH=5
N40 BORDER(LENGTH,WIDTH,DEPTH)
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Main program
N10 EXTERNAL
BORDER(REAL,REAL,REAL)
.
.
N40 BORDER(15.3,20.2,5)
3.2 Subprogram technique
Comment
; Specify the subprogram.
; Call the subprogram with parameter
transfer.
Comment
; or: N40 BORDER(15.3,20.2,5)
Work preparation
525

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents