Subprogram Return M17 - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Work preparation
3.2 Subprogram technique
Read subprogram with preparation and subprogram call
The cycle directories are processed in the same order both for subprograms preprocessed with
parameters during power up and during subprogram call.
1. _N_CUS_DIR user cycles
2. _N_CMA_DIR manufacturer cycles
3. _N_CST_DIR standard cycles
In the case of NC programs sharing the same name but having different characteristics, the first
PROC operation found is activated and the other PROC operation is overlooked without an alarm
message.
3.2.2.8

Subprogram return M17

The return command M17 (or the part program end command M30) appears at the end of a
subprogram. It prompts the return to the calling program at the part program block following the
subprogram call.
Note
M17 and M30 are treated as equivalents in the NC language.
Syntax
PROC <program name>
...
M17/M30
Supplementary conditions
Effect of the subprogram return on continuous-path mode
If M17 (or M30) appears on its own in the part program block, active continuous-path mode in
the channel will be interrupted.
To avoid continuous-path mode being interrupted, M17 (or M30) has to be included in the last
traversing block. Furthermore, the following machine data must be set to "0":
MD20800 $MC_SPF_END_TO_VDI = 0 (no M30/M17 output to the NC/PLC interface)
Example
1. Subprogram with M17 in a separate block
Program code
N10 G64 F2000 G91 X10 Y10
N20 X10 Z10
N30 M17
510
Comment
; Return jump with interruption of continuous-path
mode.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents