MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.16k stars 19.21k forks source link

[BUG] Sensorless homing only works when homing manually with display menu and not from SD G28 G-code #27358

Open GITRDUN75 opened 3 weeks ago

GITRDUN75 commented 3 weeks ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Using TMC2209 drivers on an Octopus motherboard with a full graphics smart controller. Machine is custom made coreXY. Have tried the latest bugfix version and also a couple older versions of Marlin. New machine build so this isnt something that was working and now is not. Sensorless homing works as expected if I click AUTO HOME on the display menu. Does not work when a G28, G28 X or G28 Y is issued from G code on a SD card. Instead the machine will begin homing X and or Y and will vibrate the motors when they physically run up against the rails but will not home. If I home manually using AUTO HOME then print from SD without a G28 X or Y in the G-code it will home Z using G28 Z in the G code and will print fine. Then when the print is finished if I click on AUTO HOME it will not successfully home. After resetting the controller it will home with auto home again.

Bug Timeline

not sure. New machine build

Expected behavior

When the machine is given a G28 command from the G-code file it is running it should home XY then Z axes.

Actual behavior

When the machine is given a G28 command via G-code on the SD card reader the machine attempts to home X and Y axis but does not sense the stall and does not complete the homing sequence. However if the machine is homed using the AUTO HOME command from the UI display menu it will home as it should.

Steps to Reproduce

Compile and load latest Marlin 2.1 or 2.1 bugfix. Home machine using AUTO HOME from the UI. Machine will home normally. Run a G-code program which contains a G28 from the onboard SD card. Machine will attempt to home but will not sense the motors stalling and will continue turning motors.

Version of Marlin Firmware

Marlin-Bugfix-2.1X , Marlin-2.0.9.7

Printer model

CoreXY custom

Electronics

BTT Octopus

LCD/Controller

reprap discount full graphics smart controller

Other add-ons

No response

Bed Leveling

ABL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

SD Card (headless)

Don't forget to include

Additional information & file uploads

Configuration.zip Configuration_adv.zip

GITRDUN75 commented 3 weeks ago

I have other printers using this same electronics setup only are not coreXY kinematics. They do not have this problem. I have tried using the same Marlin version as some of my other printers which are not coreXY and the problem is there only for coreXY.

Persei1980 commented 2 weeks ago

У меня была така же проблема, отредактируйте Configuration_adv.h начиная со строки 1520 #if ENABLED(SDSUPPORT).

GITRDUN75 commented 2 weeks ago

У меня была така же проблема, отредактируйте Configuration_adv.h начиная со строки 1520 #if ENABLED(SDSUPPORT).

Translated ( I had the same problem, edit Configuration_adv.h starting from line 1520 #if ENABLED(SDSUPPORT). )

What SD setting was causing your problem? I will toy around with the SD settings this evening.