Subprogram Return M17 - Siemens Sinumerik 840D sl Programming Manual

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.25 Subprogram technique
1.25.2.8

Subprogram return M17

Function
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
General 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
2. Subprogram with M17 in the last traversing block
Program code
N10 G64 F2000 G91 X10 Y10
N20 X10 Z10 M17
184
Comment
; Return jump with interruption of continuous-path
mode.
Comment
; Return jump without interruption of continuous-
path mode.
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents