#G-Code Question

20 messages · Page 1 of 1 (latest)

foggy sequoia
#

I have replaced the hotend that a stock Ender-3 Pro comes with to a Micro-Swiss Revo NG direct drive extruder. The motor on the Micro-Swiss extruder is different than the motors on an E3P but they include a wiring harness and a GCode file to compensate for the different motor. The harness changes the Micro-Swiss wiring while the gcode file corrects the esteps value.
When I run the gcode file I get a pair of errors related to what now I think is a file meant for Marlin.
M92 E400 ; Set E Steps to 400
M500     ; Store Settings
M117 Saved!

(there are some characters after M500 but before the semi-colon)
Pretty sure I need to convert this from a Marlin based script tosomething that Klipper understands, but I am not sure where to start.

rose birchBOT
#

Ahoi @foggy sequoia!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

rose heron
#

But klipper doesn't use esteps, so you have to convert them to microsteps (please google it, as I don't have any idea about this ^^)

#

Or was esteps the same as rotation distance?

foggy sequoia
#

Yes it is rotation distance.

foggy sequoia
#

What is the directory where you define your G-Code? For Example where do you define "Save Settings" or "Save Configuration. That's about as basic a command that every program is going to have.

rose heron
#

I don't know if I understand your question.
Klipper is completely different to Marlin. You don't have a directory with configurations (at least your question sounds like that) but only one file that can include multiple files. The directory storing that config (printer.cfg) is ~/printer_data/config/ or just on your machine tab

#

I highly recommend to read yourself into klipper and macros instead of asking a lot of simple questions, as this just takes more of your and our time

#

You are searching for SAVE_CONFIG

#

And also explain me what do you mean with

That's about as basic a command that every program is going to have.
In this overall context.
Your gcodes should never contain such a thing. If you mean "programs" to calibrate stuff, then they already include the correct stuff, as you should never try to translate Marlin to Klipper code. If you meant overall, it's already answered above and a small google search, would have result in a faster response

foggy sequoia
#

Klipper and Marlin both use G-Code. Klipper's use of G-Code is different than Marlins G-Code. Because Micro-Swiss provides a Marlin based script. I needed to translate it from Marlin to Klipper. I fired off the same question to Micro-Swiss and a few hours later I got an answer from Micro-Swiss. The equivalent value in Klipper ROTATION_DISTANCE: 8 I would think that people routinely have heavily modded Marlin systems they want to convert to Klipper without having to start from scratch but apparently that is the only option.

rose heron
#

Because Micro-Swiss provides a Marlin based script. I needed to translate it from Marlin to Klipper.
That "script" was just setting a variable, saved it and printed "Saved!". So nothing you couldn't have done by entering the printer.cfg, setting the value and hitting the save button

foggy sequoia
#

IF I knew what the Klipper equivalent variable was. The esteps variable setting in the Marlin script was 400. What would have happened had I entered 400 in the ROTATION_DISTANCE field? Hopefully Klipper would have rejected a value that large. I do not know that to be the case.

pure iris
#

Just measure the diameter of the extruder gear, calculate the scope and this is your rotation distance. You don't need a "script" or something else

rose heron
#

Hopefully Klipper would have rejected a value that large.
No, as it's possible that someone really want that large of a rotation distance. But if you would read the docs, you would see yourself that it's wrong. If you would test it, you would see it's wrong. There is basically no reason why klipper should limit it, as someone should never just print after installing it for the first time, without checking anything, as the printer is not self-aware