XY Plotter v2 understanding X_STEPS_PER_MM and $6 command


#1

Hello,

i’m struggling understanding the meaning of $6 commands and the relationship with speed of drawing

While using GRemote.bat i noticed the following command
$6 X174.9781 Y174.9781 Z174.9781
the firmware source seems to say that it changes this parameter X_STEPS_PER_MM and Y_STEPS_PER_MM

Assuming X_STEPS_PER_MM stands for the number of steps to travel 1 millimeter on X
Assuming the micro is set to 8, then each round of stepper will require 200*8 = 1600 steps
Since there is a 18T pulley mounted on the stepper
since the pulley 18T internal diameter is 9.29mm according to its documentation
=> then one round of this pulley will boil down to traveling 9.29 * 3.14 = 29.18 mm
29.18 mm <=> 1600 steps
1 mm <=> 1600/29.18 = 54.83 steps to make 1 millimeter

=> 54.83 is way different from 174.9781

??? :cry: :cry: :cry:

And yet, when i use the following gcodes
$6 X174.9781 Y174.9781 Z174.9781
G0 X0 Y0
G0 X10 Y0
=> with my ruler i can measure that it does travel 10 millimeters on X

So I must be mistaken somewhere. What does X_STEPS_PER_MM = 174.9781 mean ? Where does this value come from ?

i’m confused :frowning:

Thanks for the help

fourchette


#2

doesnt anyone have a clue here ?
what’s wrong makeblock ?


#3

maybe comment from Adrian The User Guide and Troubleshooting of Stepper Motor and Stepper Motor Driver:

for starters i have the distance of 1 revolution wrong.

i have the feeling i need to read again adrian comment after a good night sleep

@Adrian_S => if you see this post, can you please comment ?


#4

Soon after I posted that the mDraw package arrived and I switched to it, so I am afraid I won’t be able to help you with GRemote. The header switches are changed to work with mDraw to the highest setting, and so I no longer use Gremote or BenBox. Since nobody ever replied to my query regarding the dip switch settings my guess about them could be incorrect (I was assuming switches 1-3 on the stepper boards equated to switches 5-7 on the datasheet in the absence of an actual datasheet for the board)

Reading back to your earlier post, I wouldn’t use the pulley diameter in the calculations, the most accurate figure to use for the distance moved in one full revolution of the pulley is the length of belt equivalent to the number of teeth on the pulley, so for an 18-tooth pulley, measure 18 teeth on the belt.


#5

thanks for the advice adian

i solved it by myself by using your tips

LLH 1/8 th (default) $6 X174.9781 Y174.9781 Z174.9781
LHL 1/4 quarter $6 X87.48905 Y87.48905 Z87.48905
HLL 1/2 (half) $6 X43.744525 Y43.744525 Z43.744525

now we’re getting pretty decent speed :smiley:


#6