gnea / grbl-Mega

An 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/gnea/grbl/wiki
Other
494 stars 229 forks source link

Maximum allowable value for $100,$101 and$102 parameter (step/mm) #100

Open tceccarini opened 5 years ago

tceccarini commented 5 years ago

I would like to ask what is the maximum allowable value for $100,$101 and$102 parameters (step/mm). if I set all 3 to 12800 the controller crash after issuing $X, G91, G0 X10Y10Z10 commands, if set all to 8192 it restart.. more or less the same with 6400.

I hope 3200 will be a safe value...

Thanks

langwadt commented 5 years ago

you have to take $110,$111,$112 into account, code mentions a maximum ~30kHz step rate

tceccarini commented 5 years ago

Thank very much for your fast reply.

So the constraint is MaxRate[mm/min] StepForMM[step/mm] <= 3000060

So setting parameters with: $100 = $101 = $102 = 12800 $110= $111 = $112 = 130

satisfies the constraint, in fact, the controller doesn't crash any longer.