Could you explain this g-code

Could someone explain what “mech mode fast check” and “the following g-code” are?

thanks in advance ^^

;===== mech mode fast check============================
G1 X128 Y128 Z10 F20000
M400 P200
M970.3 Q1 A7 B30 C80 H15 K0
M974 Q1 S2 P0

G1 X128 Y128 Z10 F20000
M400 P200
M970.3 Q0 A7 B30 C90 Q0 H15 K0
M974 Q0 S2 P0

M975 S1
G1 F30000
G1 X230 Y15
G28 X ; re-home XY
;===== mech mode fast check============================

Its covered mostly here

Besides @John_Hoke you can also check the codes:

If still with doubts, please let us know.

1 Like

I wonder what M970.3 / Q1 / C80 / K0 mean in the G-code “M970.3 Q1 A7 B30 C80 H15 K0”

plus Q0 and C90 mean in the G-code “M970.3 Q0 A7 B30 C90 Q0 H15 K0”

I can’t find the answer in marlin firmware Gcode

thanks in advance!

1 Like

You are right… that commands “are not Marlin”.
I cannot give you the answer as I don’t know, and to the best o my knowledge, it is not explained elsewhere.
I only know that this command is part of the resonance checkup procedure at the beginning of a print, which compares it to the calibration values. Since a few command lines constitute the set, it is possible to guess (interpret it) without too many details or certainty.

1 Like

i wonder if i this just a safety check if the machine is in the right range, OR if it saves the messurement to use somehow in the print :thinking:

the reason, our apartment has thin walls, the neighbours feel disturbed by the shaking at night when i start my little experiment prints every 15min. it would be VERY nice if i could disable this mech mode fast check if its not realy saving something very usefull.

does someone know something about this question?

2 Likes

It’s the code for a fast check of mechanical resonance to see if the current resonance value matches the value recorded in a full resonance calibration.

It can be turned off by commenting out relative lines in Edit printer preset → Machine G-code → Machine start G-code like:

;===== mech mode fast check============================
;G1 X128 Y128 Z10 F20000
;M400 P200
;M970.3 Q1 A7 B30 C80  H15 K0
;M974 Q1 S2 P0

;G1 X128 Y128 Z10 F20000
;M400 P200
;M970.3 Q0 A7 B30 C90 Q0 H15 K0
;M974 Q0 S2 P0

M975 S1
G1 F30000
G1 X230 Y15
G28 X ; re-home XY
;===== fmech mode fast check============================
2 Likes