Hello Guest it is October 21, 2021, 04:43:44 AM

Author Topic: return called with no sub in effect...  (Read 1669 times)

0 Members and 1 Guest are viewing this topic.

return called with no sub in effect...
« on: December 12, 2012, 04:24:20 PM »
Hi,

Can someone take a look at the following code and tell me what I'm doing wrong? I get the error "return called with no sub in effect...". It simulates just fine in NCPlot. Thank you very much.

Pat

G17 G21 G40 G80 G90
G00 Z1.0
G00 X10.125 y-0.5 (start point)
G41 P0.0889 (0.007" end mill)
g01 z0 f150
m98 p100 L19
g90
g40 (end tool radius compensation)
m0 (end of program)

o100
g91 g01 z-0.01316 f50
g90
X10.125 Y4.0 F150
G02 X11.99858 Y5.87358 I1.87358 J0
G01 X22.72216 Y5.87358
G03 X24.84858 Y8.0 I0 J2.12642
G01 X24.84858 Y22.0
G03 X22.72216 Y24.12642 I-2.12642 J0
G01 X11.99858 Y24.12642
G02 X10.125 Y26.0 I0 J1.87358
G01 X10.125 Y30.0
X9.875 Y30.0
X9.875 Y26.0
G03 X11.99858 Y23.87642 I2.12358 J0
G01 X22.72216 Y23.87642
G02 X24.59858 Y22.0 I0 J-1.87642
G01 X24.59858 Y8.0
G02 X22.72216 Y6.12358 I-1.87642 J0
G01 X11.99858 Y6.12358
G03 X9.875 Y4.0 I0 J-2.12358
G01 X9.875 Y0
X10.125 Y0
m99
Re: return called with no sub in effect...
« Reply #1 on: December 12, 2012, 05:02:54 PM »
Put an M30 after the M0.

Regards,
Ray L.
Regards,
Ray L.
Re: return called with no sub in effect...
« Reply #2 on: December 13, 2012, 10:54:54 AM »
Thanks, that worked.

pat