fra589 / grbl-Mega-5X

5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/fra589/grbl-Mega-5X/wiki
Other
344 stars 161 forks source link

Dual Y Axis #220

Closed judyhusin closed 2 years ago

judyhusin commented 3 years ago

I'm using Mega 5x 1.2d version, using dual Y axis with one stepper driver for each Y axis. Recently i noticed my dual Y axis has difference in step per mm, for example Y1 move 100 cm and Y2 only move 99.5 cm. So i tried to adjust the steps/mm differently $101=10, $103=10.065. But when i do that, the gcode runs ok only for 500 line and then comes alarm 4, or just hang, and the movement stops and feed rate become 2147483647 or X, Y and Z 2147483647 . Is it normal behavior that we can't adjust different step/mm for cloned axis? Because when i put the same value in $101 and $103, it runs smoothly till the end of gcode line.

fra589 commented 3 years ago

Hi @judyhusin,

You need to have exactly same parameters (step/unit, maximum travel, speed and acceleration) for cloned axes, as somepart of the code can only use one parameter for computing and planing movements and force this movement to the cloned axis.

This mean you need to have the same hardware for cloned axes.

Perhaps I need to add some verifications in the code and throw an throw an error in case of wrong cloning axis config...

@++; Gauthier.