Machine Insists on Autohoming Still

So I’ve tested tweaking the firmware and the start code in the post processor and no matter what I do the machine still autohomes before beginning a job. This isn’t an issue most of the time but since I’m preparing to add a laser to my machine I’d really like to figure out what is making it do this. I don’t care if it wants to home X and Y so much but with the laser I really don’t want it trying to home the Z axis at all.

Again, there’s no G28 anywhere in the PP or the gcode files and the first line is a G92 X0 Y0 Z0 which is supposed to tell it to use the current position as the starting point.

Any advice welcome!

Can you post the top of the gcode file?

Sorry for the late reply, I’ve been out doing yard work all day.

Here is the first 30ish lines of code

; Inlay
; Safe Z height: 6.350
; Tools: 1 = UT End Mill (3.175 mm)
; Notes: 
; Generated Thursday April 30 2020 04:17 PM
 
M121
G90
M84 S0
M03 S20000
G21
G00 X0.000 Y0.000 Z0.000
G1 Z6.350 F500
G1 X0.000 Y0.000 F1080.0
 
; Tool 1: UT End Mill (3.175 mm)
; Path: Pocket Inlay 3 F:\Inlay.gcode
; 
G0 X72.063 Y42.641 Z6.350 F2160.0
G0   Z0.000 F2160.0
G1 X75.527  Z-0.325 F900.0
G1 X74.564 Y41.881 Z-0.440 F900.0
G1 X73.660 Y41.046 Z-0.555 F900.0
G1 X72.824 Y40.143 Z-0.670 F900.0
G1 X72.063 Y39.181 Z-0.786 F900.0
G1  Y42.641 Z-1.110 F900.0
G1 X72.924  Z-1.191 F900.0
G1 X72.063  Z-1.271 F900.0
G1  Y39.181 Z-1.596 F900.0
G1 X72.824 Y40.143 Z-1.711 F900.0
G1 X73.660 Y41.046 Z-1.826 F900.0
G1 X74.564 Y41.881 Z-1.941 F900.0
G1 X75.527 Y42.641 Z-2.056 F900.0

Also attached the full gcode file. I know there is a G00 at the top of the file but even when I take this out or replace it with G92 or add G92 before or after it, it still wants to do autohome.
Inlay.gcode (356.8 KB)

Marlin_mm test5.gcode (4.6 KB)

Here is the PP I’m using in Aspire, I had to give it a gcode file format or it wouldn’t let me upload it shrugs

This is going straight to the 0,0,0. If you haven’t reset home, it will return to where it was powered on.

You have two simple fixes here:

A) Before running this gcode, go to where you want the 0,0,0 to be and reset the home position by 1. Cycling power on the controller. 2. Sending G92 X0 Y0 Z0 from the computer or 3. Choose the option in the lcd that sets the home position (I can’t remember the exact name).

B) put G92 X0 Y0 Z0 at the start of the gcode, before that G0 command. When you start the gcode, start it at the 0,0,0 coordinate.

On A, 1. Would this be the same as having the router sitting at any position and then turning on power and starting the gcode, or does it require “turn on, place router where I want it to begin, turn off, turn on, start gcode”? 3. I know the button you’re talking about, not sure if I actually it on my lcd or not, will check and add it if needed.

On B, I am assuming you mean to add G92 X0 Y0 Z0 after the G21 and before the G00 X0 Y0 Z0 and not before the first G0 that is after the start gcode, correct? Does it matter where the G92 command is before the G00, as in, does it have to be between the G21 and G00.

Sorry, I know these may be really dumb questions I just want to make sure I’m fully understanding so I don’t come back with “it didn’t work!” And not have actually done it correctly :slight_smile:

I’m fairly certain I did try adding the G92 command in the PP but I can’t remember 100% if I did or if I just replaced the G00 with G92. Regardless, I will give your suggestions a try in the morning. No more yard work so dedicating pretty much all day tomorrow to getting this sorted and wiring up laser! Will update with progress. Thanks!

Yes.

That would work fine. Replacing the G0 will work fine too. Feel free to take out the bit, and give it a few tries. You can also post the first gcode here and I’ll check it when I get a chance.

I spent a few hours weeding today too. Those buggers are a PITA. It sure feels good when you make some progress though.

Ok so then why does it want to home if I turn on the power and start the gcode as is? If I understood right you’re saying that the G00 should tell it to treat the current position as 0,0,0 right?

Will still give these all a try just making sure I got that bit.

I sprayed for ticks and began power washing. May have to do some more of that tomorrow because power washing is strangely relaxing and fun haha. I have a HUGE weed/bush that I need to tackle but it’s so daunting I keep putting it off.

only if you repower the controller completely no USB or anyting if its just the steppers repowered it will go to the last home position

G00 means, “Go to”. G92 means, “This is where you are now, this is your new truth”. They are not the same. Don’t take this the wrong way, but I think there is some simple piece of confusion here, and I’m not sure where it is. Maybe that was it, but something seems like we are still not talking the same language.

1 Like

I’m about to try it again just to be certain that I did it right. But I know before I changed G00 to G92 and it still homed rather than just using the current position.