Home › G-codes › Siemens 808D › RET
RET Subprogram end without exact stop
Siemens 808D G-code · Mill and lathe
Ends a subprogram and returns to the calling program, like M17. Unlike M2, RET does not break continuous path mode G64.
Format
RET
How it works
Non modal. Needs a block of its own.
Example program
; SUBPROGRAM CONTOUR1.SPF
G91 G1 X20 F300 ; STEP 20 IN X
Y10 ; STEP 10 IN Y
G90 ; BACK TO ABSOLUTE
…
G91 G1 X20 F300 ; STEP 20 IN X
Y10 ; STEP 10 IN Y
G90 ; BACK TO ABSOLUTE
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Use RET when the contour runs on after the call, so the machine does not stop at the return.
Related codes
Every G-code for Siemens 808D in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open RET in the app All Siemens 808D G-codes