Siemens SINUMERIK 828D Programming Manual page 158

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Flexible NC programming
1.25 Subprogram technique
Significance
PROC
<program name>
<parameter type>
<parameter name>
NOTICE
The program name specified after the
assigned on the user interface.
Example
Definition of a subprogram with 2 REAL type parameters
Program code
PROC SUB_PROG (REAL LENGTH, REAL WIDTH)
...
N100 RET
158
:
:
:
:
Definition operation at the beginning of a program
Name of the program
Data type of the parameter (e.g. REAL, INT, BOOL)
Name of the parameter
keyword must match the program name
PROC
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Comment
; Parameter 1: Type: REAL, name:
LENGTH
Parameter 2: Type: REAL, name:
WIDTH
; Subprogram return
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents