EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 525

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

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals