torch not shutting off until it moves to home

Having problems with or questions about SheetCam? Post them here.
SpoolnMS
Posts: 23
Joined: Mon Oct 28, 2019 12:25 am

torch not shutting off until it moves to home

Post by SpoolnMS »

Having a small issue where the torch will complete its cut, and stay on at the end of the cutting process until it moves to home x0y0 after the cut then it will turn the torch off (using the m5 m30 command). Am using the mach 3 with thc and scriber post processor. Otherwise its working great. Thanks.
User avatar
Les Newell
Site Admin
Posts: 3665
Joined: Thu May 11, 2006 8:12 pm

Re: torch not shutting off until it moves to home

Post by Les Newell »

Are you sure you are using the mach 3 with thc and scriber post processor? The symptoms you describe sound like you are using a milling/routing post processor.
SpoolnMS
Posts: 23
Joined: Mon Oct 28, 2019 12:25 am

Re: torch not shutting off until it moves to home

Post by SpoolnMS »

Yes mach 3 thc with scriber
robertspark
Posts: 257
Joined: Thu Feb 26, 2015 12:11 am

Re: torch not shutting off until it moves to home

Post by robertspark »

Does OnPenUP() look like this?

Code: Select all

function OnPenUp()
   if toolClass == "MarkerTool" then
      post.Text(" M09\n")
   else
      post.Text (" M05\n")
   end
   if (endDelay > 0) then
      post.Text (" G04 P")
      post.Number (endDelay,"0.###")
      post.Eol()
   end
end
SpoolnMS
Posts: 23
Joined: Mon Oct 28, 2019 12:25 am

Re: torch not shutting off until it moves to home

Post by SpoolnMS »

Yes it does
WyoGreen
Posts: 257
Joined: Wed May 07, 2014 10:02 pm

Re: torch not shutting off until it moves to home

Post by WyoGreen »

How about posting your g-code file so we can see what it's telling the controller to do?
SpoolnMS
Posts: 23
Joined: Mon Oct 28, 2019 12:25 am

Re: torch not shutting off until it moves to home

Post by SpoolnMS »

At the end:
N11110 X0.0000 Y0.0000
N11120 M05 M30

Telling the torch to go to the home position before it turns the torch off.
Attachments
American flag punisher skull.dxf
(32.75 KiB) Downloaded 76 times
robertspark
Posts: 257
Joined: Thu Feb 26, 2015 12:11 am

Re: torch not shutting off until it moves to home

Post by robertspark »

Can you post the gcode file, not the DXF

*.tap
*.NC

Etc
SpoolnMS
Posts: 23
Joined: Mon Oct 28, 2019 12:25 am

Re: torch not shutting off until it moves to home

Post by SpoolnMS »

Open it with notepad, will show the gcode
User avatar
djreiswig
Posts: 482
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: torch not shutting off until it moves to home

Post by djreiswig »

Edit the post.

function OnFinish()
**********************************<---- to here
endZ = safeZ
OnRapid()
endX = 0
endY = 0
offX = 0
offY = 0
offZ = 0
OnRapid()
post.Text (" M05 M30\n") <---- move this line
end

Then the torch will shut off before the rapid moves.

Evidently OnPenUp isn't triggered on the last cut before OnFinish.
SpoolnMS
Posts: 23
Joined: Mon Oct 28, 2019 12:25 am

Re: torch not shutting off until it moves to home

Post by SpoolnMS »

djreiswig wrote: Thu Feb 06, 2020 3:39 am Edit the post.

function OnFinish()
**********************************<---- to here
endZ = safeZ
OnRapid()
endX = 0
endY = 0
offX = 0
offY = 0
offZ = 0
OnRapid()
post.Text (" M05 M30\n") <---- move this line
end

Then the torch will shut off before the rapid moves.

Evidently OnPenUp isn't triggered on the last cut before OnFinish.
Thank you soo much!
User avatar
djreiswig
Posts: 482
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: torch not shutting off until it moves to home

Post by djreiswig »

Happy to help.
User avatar
Les Newell
Site Admin
Posts: 3665
Joined: Thu May 11, 2006 8:12 pm

Re: torch not shutting off until it moves to home

Post by Les Newell »

Evidently OnPenUp isn't triggered on the last cut before OnFinish.
It should be. Just a thought - Are you running a licensed version of SheetCam? The demo version of SheetCam will limit the amount of code generated. In this case it can stop a cut half way through which would leave the torch on.
robertspark
Posts: 257
Joined: Thu Feb 26, 2015 12:11 am

Re: torch not shutting off until it moves to home

Post by robertspark »

SpoolnMS wrote: Thu Feb 06, 2020 3:49 am
djreiswig wrote: Thu Feb 06, 2020 3:39 am Edit the post.

function OnFinish()
**********************************<---- to here
endZ = safeZ
OnRapid()
endX = 0
endY = 0
offX = 0
offY = 0
offZ = 0
OnRapid()
post.Text (" M05 M30\n") <---- move this line
end

Then the torch will shut off before the rapid moves.

Evidently OnPenUp isn't triggered on the last cut before OnFinish.
Thank you soo much!

You SHOULD NOT move the M30 up to the line as shown as M30 as M30 = Program End + REWIND {it rewinds the gcode to the first line....}

you can insert post.Text (" M05\n") at the start of function OnFinish()..... but as Les pointed out maybe you have another problem....

Although looking at your gcode it looks like you have M3 where it should be and M5 where it should be.... so your problem in my opinion is with Mach3 (do you have a valid licence.... with your name registered against it not someone elses name or someone elses business name etc).

Mach3 with a fake licence will do odd things....

+ what motion controller are you using?

Code: Select all

N0150 M03
N0160 G04 P0.3
N0170 G01 Z0.1150 F5.0
N0180 X3.7215 Y5.2502 F60.0
N0190 G02 X3.7311 Y5.2333 I-0.0337 J-0.0304
N0200 G01 X3.7323 Y5.2302
N0210 G02 X3.7466 Y5.1412 I-0.3384 J-0.1000
N0220 X3.7517 Y4.8345 I-5.0808 J-0.2374
N0230 X3.7331 Y4.5729 I-1.6042 J-0.0174
N0240 X3.6563 Y4.3090 I-1.3570 J0.2516
N0250 X3.4562 Y3.8454 I-7.2068 J2.8360
N0260 X3.4020 Y3.7498 I-0.5425 J0.2442
N0270 X3.3892 Y3.7417 I-0.0136 J0.0073
N0280 X3.3400 Y3.7663 I0.0091 J0.0797
N0290 G01 X3.3140 Y3.7961
N0300 G02 X3.1240 Y4.1108 I1.3938 J1.0561
N0310 G01 X3.1133 Y4.1359
N0320 G02 X3.0869 Y4.2669 I0.2740 J0.1233
N0330 X3.1171 Y4.3945 I0.4361 J-0.0356
N0340 X3.4305 Y4.9996 I3.0098 J-1.1752
N0350 X3.5880 Y5.2008 I1.1718 J-0.7553
N0360 X3.6637 Y5.2589 I0.2009 J-0.1836
N0370 G01 X3.6677 Y5.2605
N0380 G02 X3.7215 Y5.2502 I0.0201 J-0.0407
N0390 G01 X3.5731 Y5.1161
N0400 M05
User avatar
djreiswig
Posts: 482
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: torch not shutting off until it moves to home

Post by djreiswig »

robertspark wrote: Thu Feb 06, 2020 9:30 am You SHOULD NOT move the M30 up to the line as shown as M30 as M30 = Program End + REWIND {it rewinds the gcode to the first line....}
Oops. Guess that's what happens when I read things too fast.
Post Reply