The CNC 3018-Pro router arrived with GRBL 1.1f installed on the Camtool V3.3 board and ran well enough, although it accelerated very slowly. After installing Home switches, figuring out the travel limits, and trying different speeds & accelerations, it runs much better:
Configuration values to remember for next time:
$1=100 turns off the stepper motor drivers after 100 ms of inactivity:
There’s no force worth mentioning on a diamond scribe when the motors stop, so there’s no reason to keep them energized, and the DRV8825 chips resume from the same microstep when re-enabled.
$3=5 reverses the X and Z motor rotation, so you can use the same type of cable on all three axes and have them move the way you’d expect.
$20=1 turns on Soft Limits, thereby producing an error when you (or the G-Code) tries to move beyond the machine’s limits, as defined by the
$120 $121 $122 values relative to the Home switch positions.
$21=0 leaves Hard Limits off, because I didn’t see much point in switches on both ends of all the axes for this little bitty machine.
$22=1 enables the Home cycle, after which you must start each session by homing the machine.
$27=1.000 sets the Pull-off distance from all three Home positions, so the machine ends up at absolute XYZ = -1.000 mm relative to the switch trip points after homing. This depends on the mechanics of the limit switches, but seems OK with the MBI-style switches I used:
$100 $101 $102 = 1600 set the XYZ step/mm, which requires knowing the 3018-Pro uses two-start leadscrews with a 2 mm pitch = 4 mm lead:
The Camtool V3.3 board hardwires the DRV8825 stepper controllers into 32 microstep mode, so:
1600 step/mm = (200 full step/rev) × (32 microstep/full step) / (4 mm/rev)
$110 $111 $112 = 1100 set the maximum speed along the XYZ axes in mm/min. Note the hard upper limit set by the maximum microcontroller interrupt rate of about 40 k/s:
1500 mm/min = 25 mm/s = (40×10³ step/s) / (1600 step/mm)
I’ll have more to say about speed limits, stepper current, torque, and similar topics.
$120 $121 $122 = 3000 set the acceleration along the XYZ axes in mm/sec². These are two orders of magnitude higher than the default acceleration, which accounts for the as-received sluggish acceleration.
$130=299.000 $131=179.000 $132=44.000 set the XYZ travel limits relative to the Home switch trip points, which feed into the
$20=1 Soft Limits. You could probably eke out another millimeter along each axis, but this is what I came up with.
With all those in place, the
G54 coordinate system puts the XY origin dead in the middle of the platform and the Z origin a little bit below its upper travel limit. Set them thusly:
G10 L2 P1 X-147 Y-90.6 Z-1.5
The original and tweaked GRBL configuration settings as a GitHub Gist:
The as-shipped configuration is mostly for reference, but ya never know when it might come in handy.