I am trying to learn how to turn my torch off during motion, Candcnc ethercut system running mach3. I made a path rule in sheetcam thats inserts an M10p1 .15 before end, i was trying to get rid of end of cut divot. It seems as tho mach3 does not recognise that command, it still runs to the end, stops, then turns off the torch on the m05 command. How can I get mach3 to read the code properly? Here is sample code.
N0250(Paused: Check the DTHC Settings Hit RUN to continue)
N0260 G00 Z1.000
N0270 X0.871 Y2.129
N0280 S20 (DTHCON)
N0290 S20 (DTHCON)
N0300 G00 X0.871 Y2.129 Z1.000
N0310 M900 (Check for Z active)
N0320 G28.1 Z0.30 (Start Touch-Off)
N0330 G92 Z0.0
N0340 G00 Z0.150
N0350 M03
N0360 M11P1
N0370 G04 P0.6
N0380 G01 Z0.060 F150.0
N0390 S20 (DTHC is on)
N0400 X0.730 Y2.270 F45.0
N0410 G03 X1.244 Y2.295 I0.270 J-0.270
N0420 S10 (DTHC OFF) (Before end)
N0430 X0.853 Y2.353 I-0.244 J-0.295
N0440 M10P1 (Quick Torch Off) (Before end)
N0450 X0.730 Y2.270 I0.147 J-0.353
N0460 M10P1 (Quick Torch Off)
N0470 M05
N0480 S10 (DTHC is off)
N0490 G04 P0.5
N0500 G00 Z1.000
N0510 X4.900 Y2.600
Torch off code
-
- 3 Star Elite Contributing Member
- Posts: 312
- Joined: Mon Oct 14, 2019 1:47 pm
Torch off code
5X10 Shop built table
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
- djreiswig
- 4.5 Star Elite Contributing Member
- Posts: 2027
- Joined: Thu Nov 19, 2015 10:02 pm
- Location: SE Nebraska
Re: Torch off code
I played with this for a while. Never really got it working very well. Finally gave up. Hopefully you find success.
viewtopic.php?f=114&t=25142
viewtopic.php?f=114&t=25142
2014 Bulltear (StarLab) 4x8
C&CNC EtherCut
Mach3, SheetCam, Draftsight
Hypertherm PM65
Oxy/Acetylene Flame Torch
Pneumatic Plate Marker, Ohmic, 10 inch Rotary Chuck (in progress)
C&CNC EtherCut
Mach3, SheetCam, Draftsight
Hypertherm PM65
Oxy/Acetylene Flame Torch
Pneumatic Plate Marker, Ohmic, 10 inch Rotary Chuck (in progress)
-
- 3 Star Elite Contributing Member
- Posts: 312
- Joined: Mon Oct 14, 2019 1:47 pm
Re: Torch off code
Think i got it, had to take off the m03 command in gcode, works like a top!
5X10 Shop built table
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
-
- 4.5 Star Elite Contributing Member
- Posts: 2191
- Joined: Fri Apr 17, 2009 11:48 am
Re: Torch off code
Thanks for posting your solution and glad it works. So to confirm you removed this line "N0350 M03"?
-
- 3 Star Elite Contributing Member
- Posts: 312
- Joined: Mon Oct 14, 2019 1:47 pm
Re: Torch off code
I set the macros in mach3 per Robertspark post
The "Newer" way:
Open up the M10.m1s and M11.m1s macros using a text editor (notepad / notepad++ etc).
in M10.m1s scroll down to the last lines and change the default macro code from:
ActivateSignal( 9 )
to:
DeActivateSignal(OUTPUT1)
in M11.m1s scroll down to the last lines and change the default macro code from:
DeActivateSignal( 9 )
to:
ActivateSignal(OUTPUT1)
Then changed post processor m03 to m11p1. It made this code. Torch stopped one inch before end of cut, just like it was supposed to. Now i can fiddle with setting overcut and before end of cut torch off to make it extinguish at the moment piece drops. Been fooling with it for the last three days, had 600 parts to cut and feel like I finally made progress!
N0010 M07
N0020 (Filename: lift hook.tap)
N0030 (Post processor: CandCNCPlasma-rev11M3.scpost)
N0040 (Date: 09/03/2022)
N0050 G20 (Units: Inches)
N0060 F1
N0070 G53 G90 G40
N0080 (Part: Part of Copy of lift hook also[1])
N0090 (Operation: Outside Offset, 0, T9: 45 amp 1/4 steel)
N0100(Preset Volts: 129) (Preset AMPS: 45)
N0110 ( Air Pressure Preset: 75)
N0120 ( Soft pierce is off )
N0130 (This code for use with Ether-Cut upgrade 12-19-14 or later)
N0140( Suggested Tip Size: 45 ) ( DTHC Delay: 2 sec )
N0150 ( Min Cut Length for DTHC ON : 2 units )
N0160 S900 (Global DTHC ON/OFF is ON )
N0170 S10 (Turn off DTHC at the beginning)
N0180 S3129 (Preset Volts set to 129 Volts)
N0190 S445
N0200 S875
N0210 S520 (DTHC Delay set to 2 Seconds)
N0220 S711 (DTHCIV tuning set to level 1)
N0230 S701 (Clear S Register)
N0240 M00
N0250(Paused: Check the DTHC Settings Hit RUN to continue)
N0260 G00 Z1.000
N0270 X0.000 Y0.000
N0280 S20 (DTHCON)
N0290 S20 (DTHCON)
N0300 G00 X0.000 Y0.000 Z1.000
N0310 M900 (Check for Z active)
N0320 G28.1 Z0.30 (Start Touch-Off)
N0330 G92 Z0.0
N0340 G00 Z0.150
N0350 M11p1
N0360 M11P1
N0370 G04 P0.6
N0380 G01 Z0.060 F150.0
N0390 S20 (DTHC is on)
N0400 X1.000 F45.0
N0410 M10P1 (Quick Torch Off) (Before end)
N0420 X1.435
N0430 S10 (DTHC OFF) (Before end)
N0440 X2.000
N0450 M10P1 (Quick Torch Off)
N0460 M05
N0470 S10 (DTHC is off)
N0480 G04 P0.5
N0490 G00 Z1.000
N0500 X0.000
N0510 S900
N0520 S10 (DTHC is off)
N0530 S701 (Clear S Register)
N0540 M05 M30
The "Newer" way:
Open up the M10.m1s and M11.m1s macros using a text editor (notepad / notepad++ etc).
in M10.m1s scroll down to the last lines and change the default macro code from:
ActivateSignal( 9 )
to:
DeActivateSignal(OUTPUT1)
in M11.m1s scroll down to the last lines and change the default macro code from:
DeActivateSignal( 9 )
to:
ActivateSignal(OUTPUT1)
Then changed post processor m03 to m11p1. It made this code. Torch stopped one inch before end of cut, just like it was supposed to. Now i can fiddle with setting overcut and before end of cut torch off to make it extinguish at the moment piece drops. Been fooling with it for the last three days, had 600 parts to cut and feel like I finally made progress!
N0010 M07
N0020 (Filename: lift hook.tap)
N0030 (Post processor: CandCNCPlasma-rev11M3.scpost)
N0040 (Date: 09/03/2022)
N0050 G20 (Units: Inches)
N0060 F1
N0070 G53 G90 G40
N0080 (Part: Part of Copy of lift hook also[1])
N0090 (Operation: Outside Offset, 0, T9: 45 amp 1/4 steel)
N0100(Preset Volts: 129) (Preset AMPS: 45)
N0110 ( Air Pressure Preset: 75)
N0120 ( Soft pierce is off )
N0130 (This code for use with Ether-Cut upgrade 12-19-14 or later)
N0140( Suggested Tip Size: 45 ) ( DTHC Delay: 2 sec )
N0150 ( Min Cut Length for DTHC ON : 2 units )
N0160 S900 (Global DTHC ON/OFF is ON )
N0170 S10 (Turn off DTHC at the beginning)
N0180 S3129 (Preset Volts set to 129 Volts)
N0190 S445
N0200 S875
N0210 S520 (DTHC Delay set to 2 Seconds)
N0220 S711 (DTHCIV tuning set to level 1)
N0230 S701 (Clear S Register)
N0240 M00
N0250(Paused: Check the DTHC Settings Hit RUN to continue)
N0260 G00 Z1.000
N0270 X0.000 Y0.000
N0280 S20 (DTHCON)
N0290 S20 (DTHCON)
N0300 G00 X0.000 Y0.000 Z1.000
N0310 M900 (Check for Z active)
N0320 G28.1 Z0.30 (Start Touch-Off)
N0330 G92 Z0.0
N0340 G00 Z0.150
N0350 M11p1
N0360 M11P1
N0370 G04 P0.6
N0380 G01 Z0.060 F150.0
N0390 S20 (DTHC is on)
N0400 X1.000 F45.0
N0410 M10P1 (Quick Torch Off) (Before end)
N0420 X1.435
N0430 S10 (DTHC OFF) (Before end)
N0440 X2.000
N0450 M10P1 (Quick Torch Off)
N0460 M05
N0470 S10 (DTHC is off)
N0480 G04 P0.5
N0490 G00 Z1.000
N0500 X0.000
N0510 S900
N0520 S10 (DTHC is off)
N0530 S701 (Clear S Register)
N0540 M05 M30
5X10 Shop built table
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
-
- 3 Star Elite Contributing Member
- Posts: 312
- Joined: Mon Oct 14, 2019 1:47 pm
Re: Torch off code
BTW this last code was just a one line cut, not actually a lift hook as the name would suggest
5X10 Shop built table
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
20x80x32 inch gap lathe
10x40 lathe
10x54 milling machine
2-Miller 255
Miller XMT350MPA
Lincoln squarewave tig 255
12 Ft Durma Brake
-
- 1/2 Star Member
- Posts: 2
- Joined: Sun Jul 25, 2021 12:53 pm
Re: Torch off code
Trying to get rid of my pause and have been fighting with it for awhile. Where do you do this? "Then changed post processor m03 to m11p1. It made this code. Torch stopped one inch before end of cut, just like it was supposed to. "