Floating head touch off

More
17 Jun 2017 21:42 #94662 by BigJohnT
Replied by BigJohnT on topic Floating head touch off
That is not G code from my sheetcam post, you must have selected something else as a post processor.

JT

Please Log in or Create an account to join the conversation.

More
29 Jun 2017 20:53 #95191 by spesmek
Replied by spesmek on topic Floating head touch off
I discovered that this was a problem related to my computer being named bjørn, sheetcam did not like the norwegian letter in the path to the post.
but i had to edit the post to put G92.1 after M5 onPenUp
If not all cutting paths was on different heights on Z axis, is this normal or is it something wrong with my setup?

Regards Bjørn K

Please Log in or Create an account to join the conversation.

More
29 Jun 2017 22:34 #95195 by BigJohnT
Replied by BigJohnT on topic Floating head touch off
You must not be using my Sheetcam post processor and touchoff.ngc file.

Here is an example of the output from my Sheetcam Post Processor
(Filename: Leg10Right.ngc)
(Post processor: EMC-Plasma.scpost)
(Date: 04/06/16)
G20 (Units: Inches)
G40 (Cancel Cutter Comp)
G90 (Absolute Mode)
F1 S1 (Feed Rate)
G64 P0.005 (Continuous mode + path tolerance)
G92 X0 Y0
(Part: Leg10Right)
(Process: Outside Offset, 0, T40: FC 11ga 40a 82v)
M68 E0 Q82
G0 Z0.1000
 X-0.1334 Y1.6654 Z0.1000
 Z0.1000
o<touchoff> call [0.080] [0] [0.08] (Touchoff and start cutting)
F60
G3 X-0.0326 Y1.7169 I0.0247 J0.0761
G1 X-0.0238 Y1.7442 F60
 X7.7643 Y25.7566
G2 X7.7924 Y25.7735 I0.0238 J-0.0077
G1 X10.7468 Y25.2526
G2 X10.7674 Y25.2271 I-0.0043 J-0.0246
G1 X9.8731 Y-0.0009
G2 X9.8437 Y-0.0246 I-0.0250 J0.0009
G1 X-0.0043 Y1.7119
 X-0.0326 Y1.7169
G3 X-0.1253 Y1.6520 I-0.0139 J-0.0788
M5 (Torch Off)
G0 Z0.1000
G92.1 (Cancel offsets and set to zero)
G0 Z0
M2

And my touchoff.ngc
o<touchoff> sub
(#1 pierce height, #2 pierce delay, #3 cut height)
F10
G38.2 Z-1.625 (Probe to find the surface)
G0 Z[#5063 + 0.07] (Move to Probe Trip point + switch hysteresis)
G92 Z0 (Set Z zero)
G1 Z#1
M3 S1
M66 P0 L1 Q5 (Wait for Arc OK from Torch)
G4 P#2 (Pause for pierce delay)
F25
Z#3 (goto cut height)
o<touchoff> endsub
M2

JT

Please Log in or Create an account to join the conversation.

More
30 Jun 2017 11:02 #95206 by spesmek
Replied by spesmek on topic Floating head touch off
I had to check on my machine and i had an edited version of your touchoff.ngc (the one that are checking for tourch fail and pauses if no tourch ok) but i have now tested with yours, with my edited settings.
Here is the g-code:
(Filename: Plate fot..ngc)
(Post processor: EMC-Plasma.scpost)
(Date: 30/06/2017)
G21 (Units: Metric)
G40 (Cancel Cutter Comp)
G90 (Absolute Mode)
G64 P0.005 (Continuous mode + path tolerance)
G92 X0 Y0
(Part: benfeste for 40x40 rør)
(Operation: Outside Offset, VISIBLE, T1: Plasma, 2 mm kerf)
G0 Z10.0000
X32.0114 Y73.0102
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X30.0000 Y70.0000 I-2.5108 J-0.4994 F3000.0
X30.0000 Y70.0000 I0.0000 J5.0000
X27.1768 Y70.8733 I0.0000 J5.0000
X27.1966 Y72.6834 I0.9150 J0.8951
M5 (Torch Off)
G0 Z10.0000
X58.5600 Y17.4400
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X56.0000 Y20.0000 I0.0000 J2.5600 F3000.0
G1 Y63.0000 F3000
G3 X53.0000 Y66.0000 I-3.0000 J0.0000 F3000.0
G1 X52.0000 F3000
G2 X51.0000 Y67.0000 I0.0000 J1.0000 F3000.0
G1 Y75.0000 F3000
G3 X9.0000 Y75.0000 I-21.0000 J-0.0000 F3000.0
G1 Y67.0000 F3000
G2 X8.0000 Y66.0000 I-1.0000 J0.0000 F3000.0
G1 X7.0000 F3000
G3 X4.0000 Y63.0000 I0.0000 J-3.0000 F3000.0
G1 Y20.0000 F3000
G3 X15.0000 Y9.0000 I11.0000 J0.0000 F3000.0
G1 X45.0000 F3000
G3 X56.0000 Y20.0000 I0.0000 J11.0000 F3000.0
G1 Y23.0000 F3000
(Part: Plate fot)
G2 X57.2800 Y24.2800 I1.2800 J0.0000 F3000.0
(Operation: Outside Offset, 0, T1: Plasma, 2 mm kerf)
M5 (Torch Off)
G0 Z10.0000
X73.7577 Y133.4915
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X71.5000 Y135.0000 I-0.3746 J1.8831 F3000.0
X75.0000 Y138.5000 I3.5000 J0.0000
G1 X105.0000 F3000
G2 X105.0000 Y131.5000 I0.0000 J-3.5000 F3000.0
G1 X75.0000 F3000
G2 X72.0560 Y136.8929 I-0.0000 J3.5000 F3000.0
M5 (Torch Off)
G0 Z10.0000
X76.9200 Y23.4200
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X75.0000 Y21.5000 I-1.9200 J0.0000 F3000.0
X75.0000 Y28.5000 I0.0000 J3.5000
G1 X105.0000 F3000
G2 X105.0000 Y21.5000 I0.0000 J-3.5000 F3000.0
G1 X75.0000 F3000
G2 X73.1071 Y22.0560 I0.0000 J3.5000 F3000.0
M5 (Torch Off)
G0 Z10.0000
X73.0800 Y2.0800
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X75.0000 Y4.0000 I1.9200 J0.0000 F3000.0
G1 X105.0000 F3000
G3 X116.0000 Y15.0000 I0.0000 J11.0000 F3000.0
G1 Y145.0000 F3000
G3 X105.0000 Y156.0000 I-11.0000 J0.0000 F3000.0
G1 X75.0000 F3000
G3 X64.0000 Y145.0000 I0.0000 J-11.0000 F3000.0
G1 Y15.0000 F3000
G3 X75.0000 Y4.0000 I11.0000 J0.0000 F3000.0
G1 X77.0000 F3000
(Part: winsjfeste)
(Operation: Outside Offset, 0, T1: Plasma, 2 mm kerf)
M5 (Torch Off)
G0 Z10.0000
X209.9400 Y76.4400
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X212.5000 Y79.0000 I2.5600 J0.0000 F3000.0
X212.5000 Y51.0000 I0.0000 J-14.0000
G1 X167.5000 F3000
G2 X167.5000 Y79.0000 I0.0000 J14.0000 F3000.0
G1 X212.5000 F3000
G2 X215.4771 Y78.6798 I0.0000 J-14.0000 F3000.0
X216.4556 Y77.1569 I-0.2722 J-1.2507
M5 (Torch Off)
G0 Z10.0000
X246.3855 Y64.8448
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X245.0000 Y61.5000 I-2.3651 J-0.9797 F3000.0
X245.0000 Y61.5000 I0.0000 J3.5000
X242.3541 Y62.7089 I0.0000 J3.5000
X243.1649 Y64.3273 I1.2146 J0.4038
M5 (Torch Off)
G0 Z10.0000
X231.3855 Y15.3448
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X230.0000 Y12.0000 I-2.3651 J-0.9797 F3000.0
X230.0000 Y12.0000 I0.0000 J3.0000
X227.4756 Y13.3791 I0.0000 J3.0000
X228.5086 Y14.8656 I1.2598 J0.2268
M5 (Torch Off)
G0 Z10.0000
X151.3855 Y15.3448
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X150.0000 Y12.0000 I-2.3651 J-0.9797 F3000.0
X150.0000 Y12.0000 I0.0000 J3.0000
X147.4756 Y13.3791 I0.0000 J3.0000
X148.5086 Y14.8656 I1.2598 J0.2268
M5 (Torch Off)
G0 Z10.0000
X136.3855 Y64.8448
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X135.0000 Y61.5000 I-2.3651 J-0.9797 F3000.0
X135.0000 Y61.5000 I0.0000 J3.5000
X132.3541 Y62.7089 I0.0000 J3.5000
X133.1649 Y64.3273 I1.2146 J0.4038
M5 (Torch Off)
G0 Z10.0000
X261.2176 Y55.6183
Z6.0000
o<touchoff> call [6.000] [0.3] [2] (Touchoff and start cutting)
F100
G1
G2 X259.8144 Y58.9557 I0.9671 J2.3703 F3000.0
G3 X261.0000 Y65.0000 I-14.8144 J6.0443
G1 Y75.0000 F3000
G3 X250.8417 Y85.9678 I-11.0000 J0.0000 F3000.0
G2 X249.2113 Y86.2453 I0.6886 J8.9736
G1 X214.0239 Y95.6286 F3000
G3 X211.1896 Y96.0000 I-2.8343 J-10.6286 F3000.0
G1 X168.8104 F3000
G3 X165.9761 Y95.6286 I0.0000 J-11.0000 F3000.0
G1 X130.7887 Y86.2453 F3000
G2 X129.1583 Y85.9678 I-2.3190 J8.6961 F3000.0
G3 X119.0000 Y75.0000 I0.8417 J-10.9678
G1 Y65.0000 F3000
G3 X120.1856 Y58.9557 I16.0000 J0.0000 F3000.0
G1 X139.8151 Y10.8445 F3000
G3 X150.0000 Y4.0000 I10.1849 J4.1555 F3000.0
G1 X230.0000 F3000
G3 X240.1849 Y10.8445 I0.0000 J11.0000 F3000.0
G1 X259.8144 Y58.9557 F3000
G3 X260.6814 Y61.8231 I-14.8144 J6.0443 F3000.0
G2 X262.1901 Y62.8234 I1.2545 J-0.2542
M5 (Torch Off)
G0 Z10.0000
G92.1 (Cancel offsets and set to zero)
G0 Z0
M2

And here is the touchoff.ngc:

o<touchoff> sub
(#1 pierce height, #2 pierce delay, #3 cut height)
F1500
#1=4
#2=0.2
#3=1
G38.2 Z-30 (Probe to find the surface)
G91
G1 Z9.5 (Raise up to Z0)
G90
G92 Z0 (Set Z0)
G1 Z#1
M3 S1
M66 P0 L1 Q3 (Wait for Arc OK from Torch)
G4 P#2 (Pause for pierce delay)
F1500
Z#3 (goto cut height)
o<touchoff> endsub
M2


i dont know if i have done something wrong when i altered the settings to fit my machine.
but if i look at the backplot in axis and switch the wiev to Y or X i can see the different patch on different levels and i get the message that it will exceed machine limit on axis 2.

Please Log in or Create an account to join the conversation.

More
30 Jun 2017 18:52 #95237 by tommylight
Replied by tommylight on topic Floating head touch off
Was not following this so might have mised something.
The thing with diferent parts on diferent Z levels is SheetCam with a postprocessor for Mach3 with THC component installed. It's been a long time, but i think mach uses G28.x and Linuxcnc G38.x or vice versa. So check that first.

Please Log in or Create an account to join the conversation.

More
15 Aug 2019 08:01 #142204 by phoenix
Replied by phoenix on topic Floating head touch off
I have same problem when i merge that touchoff sub in gcode axis just ignore the o subroutine why is this happening??

Please Log in or Create an account to join the conversation.

More
15 Apr 2020 23:06 #164093 by timko307
Replied by timko307 on topic Floating head touch off
I know this is an old topic but I'm struggling to wrap my head around this.
I downloaded the post processor by Big John T (thanks!) and the sub routine, but couldn't figure out where to put the sub routine (Sheetcam code snips or path rules??, or somewhere in LinuxCNC??) I tried several different ways with no success. I eventually edited the post processor to define the sub routine and got it to work. I also had to take out the line about waiting for arc ok as I don't have that set up yet. (See attached edited post processor and generated g code from it).
It works well and performs the touch off except that now my torch does not fire until after the lead in.
I've studied the post processor and the g code and can't figure out what I did wrong.
Can any body shed some light on this please?
Thanks.
Attachments:

Please Log in or Create an account to join the conversation.

More
15 Apr 2020 23:53 #164097 by tommylight
Replied by tommylight on topic Floating head touch off
What are you using?
PlasmaC or another config ?
What GUI ?

Please Log in or Create an account to join the conversation.

More
16 Apr 2020 11:29 #164131 by timko307
Replied by timko307 on topic Floating head touch off
AXIS 2.7.14 and a cheap 5 axis BOB. Primeweld CUT60.
I bought the computer with LinuxCNC installed and don't know much about Linux. I'll eventually go to PlasmaC and MESA controller but I want to start off real basic and learn more before I get into automatic torch height control.

Please Log in or Create an account to join the conversation.

More
16 Apr 2020 19:47 #164199 by rodw
Replied by rodw on topic Floating head touch off
Thanks for clarifying.

If you are going to use sheetcam, the call to the touchoff routing need to be issued in the post processor in the onPenDown method.

The touchoff routine is just a Gcode subroutine in a different file that is called from the main gcode file. I recommend that you hand write a simple gcode file (just cut a straight line one to two inches long). Once you have that going, then edit the post processor so that it replicates the code you need to match with this handcoded file.

If you can find a couple of spare parallel port pins (or add a second BOB), you could add the THCAD to your setup using the encoder component. Then you could either use the thcad component to add that to your existing config or upgrade to plasmac to add torch height control.

Please Log in or Create an account to join the conversation.

Time to create page: 0.247 seconds
Powered by Kunena Forum