1 (edited by redbarret 2014-12-18 14:07:57)

Topic: [SOLVED] M98 and M99 backlash compensation commands?

I want to try out the "M99 Xmm Ymm Zmm Emm" and see how backlash can be reduced or eliminated via software.

However, my firmware (Solidoodle 3 Marlin firmware, Solidoodle 4 printrboard Rev E motherboard) appears to not support that command, or it does something else.

While M99 allows to set the backlash compensation values in mm, M98 prints out the current values.
Typing "M98" in Manual Control of Repetier-Host I get "N13 M98 *0" (13 and 0 change when I try again).

If this means my firmware doesn't support hysteresis, please tell me how I can modify the firmware source to enable it.
If I'm doing it wrong, please tell me what I'm doing wrong.

Another user gets this:

pirvan wrote:

When I type M98 I get this, but then again, I'm running on a RAMPS board, not a stock Solidoodle board.

H=X0.00 Y0.00 Z0.00 E0.00 SHIFTS:x=0.00 y=0.00 z=0.00 e=0.00

Solidoodle 4

2

Re: [SOLVED] M98 and M99 backlash compensation commands?

Okay, can anyone who works on the Marlin code explain what happened?
2 years ago Neil Martin added these commands: https://groups.google.com/forum/#!topic … Nnym1MC94Y
The files  Hysteresis.h and Hysteresis.cpp by Neil James Martin are still in the sourcecode folder, but the "Step 1" and "Step 2" are missing in the source files. I'm not a programmer to understand more than this.

So it appears this was a problem 2 years ago, someone makes an easy fix for it, then it gets removed. Why? And why isn't anyone talking about this? And how to get it back?

Solidoodle 4

3

Re: [SOLVED] M98 and M99 backlash compensation commands?

Hysteresis compensation is not implemented in Marlin by default, nor in the solidoodle version. You will need to install firmware that has this patch implemented, such as adrian's fork https://github.com/ozadr1an/Solidoodle-Marlin_v1.

SD3. Mk2b + glass, heated enclosure, GT2 belts, direct drive y shaft, linear bearings, bowden-feed E3D v5 w/ 0.9° stepper
Smoothieboard via Octoprint on RPi

4 (edited by redbarret 2014-12-16 00:21:43)

Re: [SOLVED] M98 and M99 backlash compensation commands?

Thanks grob. I'll try it out.
I just talked with the dude who wrote the hysteresis compensation code. He said it gave problems with some fast prints and he didn't have time to fix that issue, also that it wouldn't be hard to implement in software (slicer).

Solidoodle 4

5

Re: [SOLVED] M98 and M99 backlash compensation commands?

I'm unable to upload a firmware anymore...

hid_bootloader_cli -mmcu=at90usb1286 -w -v firmware.cpp.

Board type set to BootloaderCDC/Teensylu/printrboard.

What am i doing wrong now?

Solidoodle 4

6

Re: [SOLVED] M98 and M99 backlash compensation commands?

Oh no! sad Please clarify 'unable... anymore' - what's happened specifically? Any error messages?

Following this? http://wiki.solidoodle.com/update-firmware

Your command forgot the ".hex" - I presume it's just a copy-paste error!
* Did you successfully find the right file after arduino had compiled it (many people find this a pain, it's a bit non-obvious in the temp directory!)?
* Did you receive any errors while attempting to update?
* Have you followed the instructions to get the device into boot mode (jumper and reset)?

hid_bootloader_cli -mmcu=at90usb1286 -w -v firmware.cpp.hex
SD3. Mk2b + glass, heated enclosure, GT2 belts, direct drive y shaft, linear bearings, bowden-feed E3D v5 w/ 0.9° stepper
Smoothieboard via Octoprint on RPi

7

Re: [SOLVED] M98 and M99 backlash compensation commands?

File was in user/AppData/Local/Temp/buildx/Marlin.cpp.hex. And yes, forgot to post the ".hex" here.
No errors while compiling.
There's no error, Bootloader HID is just waiting for the motherboard to be ready, forever.
I'll post the actual log when I run all this again. Thanks.

Solidoodle 4

8 (edited by redbarret 2014-12-18 10:39:14)

Re: [SOLVED] M98 and M99 backlash compensation commands?

Update: Okay, I noticed there were two RepetierHost.exe processes going on for some reason. I rebooted my PC and retried, worked fine.

Currently testing the commands...

Solidoodle 4

9

Re: [SOLVED] M98 and M99 backlash compensation commands?

Ah, good find! If the com port is open (e.g. in RH), that would explain there being some difficulty... smile
Another win for "have you tried turning it off and on again?" smile

SD3. Mk2b + glass, heated enclosure, GT2 belts, direct drive y shaft, linear bearings, bowden-feed E3D v5 w/ 0.9° stepper
Smoothieboard via Octoprint on RPi

10 (edited by redbarret 2014-12-19 06:06:42)

Re: [SOLVED] M98 and M99 backlash compensation commands?

One thing which caused confusion and might be helpful to explain for anyone else looking for this is,

Official firmware file link in the official wiki leads to 404.
http://wiki.solidoodle.com/update-firmware

However, the (recent) support page has a new link which works.
http://support.solidoodle.com/hc/en-us/ … urce-Files

But I didn't find the support page about the firmware with the link via google initially. There are two actually, the one for updating the firmware doesn't have the link.

So I used the link from Soliwiki which works.
However, the text in Soliwiki is misleading or outdated that makes you think it links to the official firmware files.
http://www.soliwiki.com/Updating_Solido … 2Ffirmware
https://github.com/mlaws/solidoodle2-marlin

And here's the other problem. In this version Hysteresis is not implemented or has been removed, but there still are the files named "Hysteresis.cpp" and "Hysteresis.h" written by Neil, so for a non-programmer initially it appears it should be there.

Just putting this info here.

Solidoodle 4

11

Re: [SOLVED] M98 and M99 backlash compensation commands?

grob wrote:

Ah, good find! If the com port is open (e.g. in RH), that would explain there being some difficulty... smile
Another win for "have you tried turning it off and on again?" smile


LOL also the Windows tech support tip. "Have you reinstalled Windows and rebooted?"

Solidoodle 2 with Deluxe kit cover & glass bed with heater. and 2nd board SD2 used not 3rd and alum platform not installed yet still wood. also need cooling fan installed to board. use Repetier Host couple vers. Slic3r also have all free ware STL programs

12

Re: [SOLVED] M98 and M99 backlash compensation commands?

So, were you able to compile the firmware with the hysteresis fix?  Did it work?

I'm wondering if we can patch the Solidoodle Press firmware to support this.