| Posted: 12:25am 17 Apr 2026 |
|
|
|
As this surface grinder is fully manual my idea of automating it does make sense so the grinder is more efficient.
Now going a damper on the Z axis could work but I already have a ball screw that is suitable to fit. I got this off an old Hercus cnc lathe and length wise it will fit easily.
Now I commented out the pin setting code and tried again.
Stepper initialized - 100KHz timer active Warning: Soft limits not configured. Use STEPPER LIMITS to set working area. Stepper armed - executing buffered commands [33] Stepper Axis X, GP27, GP25, GP26, 1, 800, 100, 100 Error : Pin 32/GP27 is in use
Now I commented out the const for the and got the same error.
On error skip Stepper close Stepper Init 0.05, 150, GP22
'setpin GP27, Dout 'setpin GP25, dout 'setpin gp26, dout
'const dir = "GP25" 'const steppin = "GP27" 'const enable = "GP26" const E_Stop = "GP22"
const FEED_MAX = 6 const FEED_DEFAULT_ON = 2 const UNIT_MM = 2 Const STEP_FEEDRATE = 200 const PRIME_STEP_MM = 5
do
RunStepper
loop
Sub RunStepper Stepper Axis X, GP27, GP25, GP26, 1, 800, 100, 100 Stepper Position X, 0.1 Stepper run 1 Stepper gc g1 x0 f100 Stepper gc g1 x100 f100 Stepper gc g1 x0 f100 end sub
So not sure whats going on here as I let Stepper Axis assign the pins Edited 2026-04-17 10:32 by Bryan1 |