Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: matttargett4 on January 30, 2010, 03:14:44 PM

Title: Homing, machine co ordinates and touch off
Post by: matttargett4 on January 30, 2010, 03:14:44 PM
Hi,

Ive been looking further into my touch off problem on my plasma, it appears that when my z axis home switch is tripped the machine co ordinates on all axes are zeroed. I understand the z machine cordinates should be zeroed but why the x y and a axes? Is there a setting that would change this? Ive ruled out mechanical problems by disconnecting all the home switches except the z.

Any ideas??

Matt
Title: Re: Homing, machine co ordinates and touch off
Post by: Hood on January 30, 2010, 03:27:22 PM
How are you sending the Z to home? Do the other axis move or do they just zero?
Hood
Title: Re: Homing, machine co ordinates and touch off
Post by: matttargett4 on January 30, 2010, 03:51:10 PM
The other axes do not move, they are just zeroed as the z axis is zeroed, the code looks like this:

N0080 G00 Z25.0000
N0090 X95.5000 Y22.7500
N0100 Z5.0000
N0110 G28.1 Z3.00
N0120 G92 Z0.0
N0130 G00 Z0.0520
N0140 G92 Z0.0
N0150 G00 Z5.0000
N0160 M03
N0170 G01 Z1.5000 F1000


Im not great with g code but when the z switch contacts the machine co ordinates for all axes are zeroed

Thanks for the help
Title: Re: Homing, machine co ordinates and touch off
Post by: Hood on January 30, 2010, 03:55:18 PM
Do you have a macropump running? or a Brain running?
Can you attach your xml please.
Hood
Title: Re: Homing, machine co ordinates and touch off
Post by: matttargett4 on January 30, 2010, 04:18:59 PM
I think ive attached the xml, i am also running a G100 motion controller.

Thanks again
Title: Re: Homing, machine co ordinates and touch off
Post by: Hood on January 30, 2010, 04:21:18 PM
ah OK could well be the G100 plugin that is doing this. Will look at your xml but afraid I dont have a clue about the G100 :(
Hood
Title: Re: Homing, machine co ordinates and touch off
Post by: matttargett4 on January 30, 2010, 04:24:45 PM
That would suck if it was since i just spent ages fitting the g100!!
Title: Re: Homing, machine co ordinates and touch off
Post by: Hood on January 30, 2010, 04:29:17 PM
Just simulated here and it seems to work fine so looks like it could well be the G100 :(
If you just press the switch do the axis zero or is it only when you do the G28.1Z3?

Hood
Title: Re: Homing, machine co ordinates and touch off
Post by: matttargett4 on January 30, 2010, 04:46:26 PM
Not sure, i will try it and let you know, will try to see if the other home switches do the same or if its just the z

Thanks for the help

Matt
Title: Re: Homing, machine co ordinates and touch off
Post by: rrc1962 on January 30, 2010, 05:43:02 PM
Try changing the torch switch to a probe input, then use G31 instead of G28.1.  The only change in your code would be this line...

N0110 G28.1 Z3.00

Would change to this....

N0110 G31 Z3.00  (if your Z plunges on a positive move)
N0110 G28.1 Z-3.00  (if your Z plunges on a negative move)
Title: Re: Homing, machine co ordinates and touch off
Post by: matttargett4 on January 31, 2010, 02:16:10 PM
Ive been trying the G31 all afternoon, still no luck.

I have substituted G31 instead of G28.1, put in a value of 50mm so the torch has loads of slack to go down and touch the switch, then reset the dro to zero, then lift the torch by the switch offset, then reset the dro to zero, then raise to the peirce height. so goes a bit like this

G31 Z50

G92 Z0.0

G00 Z10.7

G92 Z0.0

G00 Z5.00

I figure that should work? But it doesnt, the torch comes down, the switch trips, the dro resets, then it goes wrong, if my torch offset value is posative then the torch goes up until it hits the z axis limit switch somewhere around +60mm, if it is negative then it reduces this movement but reagrdless of where it stops the torch going up when the next G92 is issued it adds a value into the dro, then my G00 Z5.00 simply goes up 5mm after this, usually ending up somewhere around 35mm.

Surely when the offset is put into the dro at the G92 making it greater than 5 the G00 Z5.00 should make the axis go down not up any more since im in absolute distance mode?

Where is this offset coming from? At the last G92 the dro just wont zero?

Any help would be greatly apreciated, im getting to the point im going to take the g100 out and throw it as far as possible

matt
Title: Re: Homing, machine co ordinates and touch off
Post by: rrc1962 on January 31, 2010, 03:42:26 PM
I do it a little differently...

N0110 (Operation: Reference Torch)

N0120 F15

N0130 G31 Z-1           //Plunge Z until probe switch activates.  Max of 1".

N0140 G92 Z-0.1080         //Reset Z to 0 - switch offset.

N0150 G00 Z0.1800          //Retract Z to pierce height

N0160 M03          //Start torch.

This is the way I've been doing torch referencing on the plasma and tool referencing on mills and routers for years.  My Z plunges on a negative move.  If it's not working, I'd be suspect of the G100, or the G100 plug-in.  I've never messed with one, so I can't offer anything in that regard.