U1 start G-code line "G0 X85 Y1 Z2" gave "Move out of range on Y axis" (0003-0522-0001-0013) on toolheads 1, 3, 4. Y5 fixed it for us. Are we right?

Setup: Snapmaker U1, stock firmware 2.0.0 (2.0.0.205), Snapmaker Orca, default U1 0.4 nozzle machine preset.

What happened: Prints kept failing right at the start with error 0003-0522-0001-0013, on toolheads 1, 3 and 4. I calibrated the machine multiple times (XYZ offsets) and it didn’t help.

I used Claude (Anthropic’s AI assistant) to dig into it. It read klippy.log through the Moonraker API and found:

Move out of range on Y axis: 84.9 -0.09 2.0

That matches the start/purge line in the default machine start G-code:

G0 X85 Y1 Z2 F18000

Our reading: each toolhead has its own XY offset, and on toolheads 1, 3 and 4 the offset puts the nozzle about 1 mm below zero at Y1, below the Y minimum, so Klipper refuses the move. Toolhead 2 has the opposite offset and worked, which is why it looked random.

What we changed: G0 X85 Y1 Z2 F18000 to G0 X85 Y5 Z2 F18000, rest of the stock start routine untouched. Everything has printed normally on all toolheads since.

We might be wrong about the cause. It is what the log and the fix point to, but we haven’t looked at the firmware itself. If you know better, or if Y5 has side effects we haven’t noticed, we’d like to learn. Could Snapmaker confirm whether the default start line should change?

Hi, rather than changing the start.gcode, have you tried the suggestions shared here:

Scenario 3: No error during slicing, but the machine reports an error during printing

Wait for your reply.

Best regards.

I am having difficulty working out what the cause of this problem is.

Does that mean you didn’t test toolhead 2, and in fact the problem affects all the toolheads? It is hard to see why toolhead 2 would get left out.

Is it feasible for you to zip up the G-Code file and post it here?

@Zoe_M I don’t think the wiki suggestions fit this case.

@saurabh.1e1 yes, your reading is right, and the firmware also explains why it is heads 1, 3 and 4 and never 2 (@CrazyIvan, that is the part that looks random).

The U1 firmware does not measure each head’s offset against head 1. In klippy/kinematics/extruder.py, get_center_base_position() takes the midpoint between the lowest and the highest calibrated base position of the four heads, and each head’s offset is its base position minus that midpoint. So the Y offsets always straddle zero, and the lowest head gets minus half the Y spread. In your log the head that started the print was at (-0.10, -1.09), so your heads are at least 2.18 mm apart in Y. Heads 3 and 4 failing too means their Y offsets are also below -1.0: they sit near head 1, and head 2 is the one on the high side.

The stock start G-code draws the purge line with G0 X85 Y1 after T{initial_extruder}, so the line runs with the offset of the print’s first head. Y1 minus 1.09 is -0.09, below position_min: 0 of [stepper_y], and Klipper refuses the move. Recalibrating cannot fix it, because it measures the same spread again.

I reproduced it on the real U1 Klipper code (firmware 2.0.0 and 2.1.0, run in batch mode with no printer): with the first head’s offset set to (-0.10, -1.09), the stock line gives exactly Move out of range on Y axis: 84.900 -0.090 2.000, the same head passes with the line at Y5, and the high head (+1.09) passes at Y1. Test and logs: GitHub - DesignMaster-Solutions/u1-fixpack: Reproduce, fix and regression-test open bugs in the Snapmaker U1 firmware, with no printer · GitHub

So Y5 is a sound fix: it covers offsets down to -5 mm, which is a Y spread of up to 10 mm between your heads. The same Moonraker API you used shows each head’s offset:
/printer/objects/query?extruder=extruder_offset&extruder1=extruder_offset&extruder2=extruder_offset&extruder3=extruder_offset
Any head with Y below -1.0 fails with the stock line when it starts the print. I have not checked this on a physical U1, so if you post those four values, they should line up with which heads failed.

Thank you all. @alandebortolo this is exactly the check we hoped someone would do, and your reading holds on our printer. I queried the four offsets through Moonraker (firmware is now 2.1.0, it was 2.0.0 when this started, and the values are after our recalibrations):slight_smile:

Head 1 (extruder): Y -1.129, so the Y1 line lands at -0.129

Head 2 (extruder1): Y +1.129, so the line lands at 2.129

Head 3 (extruder2): Y -1.055, so the line lands at -0.055

Head 4 (extruder3): Y -1.010, so the line lands at -0.010

Heads 1, 3 and 4 are below -1.0 and failed, head 2 is at +1.13 and never did. Head 4 only just misses. That also answers CrazyIvan: it was not all heads, only 1, 3 and 4, and head 2 always worked. The start line is the stock G0 X85 Y1 Z2 F18000 from the default U1 profile. If a zipped G-code is still useful I’m happy to attach one.

@Zoe_M thanks for the pointer. We did recalibrate several times before changing anything and it did not help, and as alandebortolo explains, calibration measures the same spread each time. Everything else on the printer moves fine, the only out-of-range move is that one start-line move missing zero by 0.01 to 0.13 mm. Could the default start G-code in the U1 profile move to Y5 (or similar) so others don’t hit this?

We have also noted it on GitHub: U1 default start G-code `G0 X85 Y1 Z2 F18000` gave "Move out of range on Y axis" on toolheads 1, 3, 4 (we may be wrong, sharing what we found) · Issue #1143 · Snapmaker/OrcaSlicer · GitHub

@saurabh.1e1 thank you for reading the four offsets. They line up exactly: the three heads below -1.0 are the ones that failed, and head 4 misses zero by only 0.01 mm. I opened a pull request on Snapmaker’s profile repository that moves the start line to Y5 in the four U1 nozzle profiles, citing your issue and these values: U1: draw the start purge line at Y5 so heads with a negative Y offset do not fail the first move by alandebortolo · Pull Request #5 · Snapmaker/snapmaker-profiles · GitHub

Until it is merged, your Y5 edit is the right local fix.

OK, so am I correct:

  • This problem only affects the OP because their toolhead offsets are excessive (differences from the mean offset greater than 1mm);
  • The solution is a tweak to SnOrca start code definitions.

If so, this thread should be reclassified as a SnOrca bug.

@CrazyIvan mostly yes, with one correction on the first point.

  1. It is not the mean, and only the low side fails. Each head’s offset is taken from the midpoint between the lowest and the highest head, so the spread is split evenly around zero. The stock start line fails only for the head that starts the print, and only if its Y offset is below -1.0 mm, which needs a Y spread over 2 mm with that head on the low side. On saurabh’s printer the spread is 2.26 mm, and head 2 at +1.13 never failed. Whether 2.26 mm is out of tolerance is for Snapmaker to say, and one printer does not tell us how common it is. If you query yours with /printer/objects/query?extruder=extruder_offset&extruder1=extruder_offset&extruder2=extruder_offset&extruder3=extruder_offset, that would be a second data point.

  2. Yes. The firmware does what its config says (Y position_min is 0), and a start line at Y1 leaves only 1 mm of margin for a negative offset. The fix belongs in the U1 machine profiles that Snorca ships: PR #5 on Snapmaker/snapmaker-profiles moves the line to Y5, and saurabh’s report is Snapmaker/OrcaSlicer#1143. So I agree it is a Snorca profile issue, not a firmware bug.

This does not seem very informative, what have I done wrong?:

{“result”: {“eventtime”: 4564.317057301, “status”: {“extruder”: {“extruder_offset”: [0, 0, 0]}, “extruder1”: {“extruder_offset”: [0, 0, 0]}, “extruder2”: {“extruder_offset”: [0, 0, 0]}, “extruder3”: {“extruder_offset”: [0, 0, 0]}}}}

Disclosure: I currently have a toolhead disconnected and trying to bypass it with the Paxx firmware setting.

@CrazyIvan you did nothing wrong. The firmware reports [0, 0, 0] for every head until it has a saved base position (the calibrated XYZ position) for at least two heads: get_center_base_position() in extruder.py needs two or more calibrated heads to find the midpoint, and while there is no midpoint, extruder_offset stays at zero.

So on your printer the calibration data is not being loaded right now. I can’t tell from here whether that comes from the disconnected head or from the Paxx bypass, but either is the place to look. In that state the stock code applies no per-head XY offset at all, which matters if you print with more than one head, and it also means the Y1 start line cannot fail on it. Once all four heads are back and calibrated, the same query should show four non-zero values.

OK here we go (rounded to 3 decimal places – the originals go to as much as 18 places):

  • Toolhead 1: [-0.160, -0.045, 0.000]
  • Toolhead 2: [-0.005, -0.013, 0.016]
  • Toolhead 3: [0.160, 0.118, 0.067]
  • Toolhead 4: [-0.129, -0.118, -0.031]

These figures are wayyyy smaller than the OP’s. It strikes me there might be something wrong with the OP’s U1.

@CrazyIvan thanks, that is the second data point. Your numbers fit the midpoint rule exactly: in X, head 1 and head 3 read -0.160 and +0.160, and in Y, head 4 and head 3 read -0.118 and +0.118, so the lowest and the highest head mirror each other around zero.

Your Y spread is 0.24 mm against 2.26 mm on saurabh’s printer. Your lowest head sits at -0.12 mm, which still leaves 0.88 mm above Y0 at the Y1 start line, so the stock line cannot fail on your machine whichever head starts. That supports your point: a spread about ten times yours looks unusual, and whether 2.26 mm is within tolerance is for Snapmaker to say. Y5 in the profile covers a starting head down to -5 mm.

@saurabh.1e1 On the basis of my toolhead offset figures, I believe yours are extreme. I recommend you open a support ticket, because I think there’s something wrong with your U1.

Yes, moving the wipe line will work around the fault, but the original position of the wipe line (if I am correct) is perfectly OK except for unusual cases like yours. The fact that nobody else has mentioned this indicates it is rare and you may be the only sufferer.

The only other possibility I can think of is that you are using a very recent revision of SnOrca and the wipe line at Y = 1mm is a regression that nobody else has found yet. Certainly I don’t need the wipe line at Y = 5mm (which would reduce the available print area).

Sorry, the median.

@CrazyIvan close, but not the median either. It is the midpoint of the two extremes, (lowest + highest) / 2, so only the two outer heads set the center and the heads in between have no say.

Your own numbers show the difference. In X the four heads read -0.160, -0.129, -0.005 and +0.160: the median of those is -0.067, while the midpoint of -0.160 and +0.160 is exactly 0, and 0 is where the firmware puts the center. Same in Y: median -0.029, midpoint 0.

That is also why the spread is what matters for the Y1 start line: the lowest head always sits at minus half the Y spread, so it only drops below Y0 when the spread passes 2 mm, as on saurabh’s printer.

You’re right, I misremembered what median is. Strange there’s not a name for the mid-point of the range!

@CrazyIvan thanks for posting your numbers, that comparison was the useful part. Looking at ours again with that in mind, it isn’t a wide spread across all four heads. Heads 1, 3 and 4 agree within 0.12 mm in Y (-1.129, -1.055, -1.010), close to your 0.24 mm. Head 2 alone sits about 2.2 mm further toward +Y (+1.129), and because the centre is the midpoint of the two extremes, that one head pushes the other three to about -1.1, below zero at the Y1 line. X shows the same on a smaller scale: head 2 is the high end at +0.25.

So I agree it looks like something on our printer, most likely toolhead 2, rather than a profile problem most people will hit. We’ve opened a support ticket with these numbers and a link to this thread, and we’ll post what Snapmaker finds. Y5 stays as our local workaround for now.

@alandebortolo thanks again for checking the firmware and for PR #5. Whether Snapmaker goes with Y5, Y3 or keeps Y1 is their call. If our head 2 turns out to be faulty, Y1 may be fine for nearly everyone.

Thanks for re-reading the numbers with CrazyIvan’s in hand, that is the useful part. Your reading of the mechanism is right, and in both axes the head that sits apart is head 2: about 2.2 mm on the high side in Y, and on the high side in X too. Because the centre is the midpoint of the two extremes, one head that far off pulls the midpoint by half of it and leaves the other three about 1.1 mm below zero, which is what puts them under Y0 at the Y1 line.

Whether that head is physically out of place or its calibration got saved wrong is what support can tell you, and the numbers plus the link to this thread is the right way to ask.

One thing that may matter to whoever looks: the Y1 is hardcoded in the stock machine_start_gcode, in all four U1 nozzle profiles of Snapmaker/snapmaker-profiles, so nothing in your slicer caused it and nothing you change on your side would prevent it either. Only a profile update from Snapmaker would.

Y5 costing 4 mm at the front edge is the honest trade. Post what support says, I would like to know if a single bad head is enough to do this on other machines too.

Yes, I agree Toolhead 2 is the issue, even though that isn’t the one that had a problem!

I would be inclined to disassemble the toolhead and check whether the nozzle assembly is seated correctly.