Stepper Project


Author Message
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2080
Posted: 01:50am 17 Apr 2026      

Ok sort of getting there as I setup more switch's for the axis limits and did get a message HW Limits are configured  


'OPTION EXPLICIT

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"


STEPPER HWLimits GP23, GP21, GP20, GP19, GP18, GP17
Stepper limits X, 0, 200
Stepper Axis X, GP27, GP25, GP26, 1, 800, 100, 100
Stepper Position X, 0.1
Stepper run 1


do


RunStepper

loop


Sub RunStepper



'Stepper run 1
Stepper gc g1 x0 f100
Stepper gc g1 x100 f100
Stepper gc g1 x0 f100
end sub


Now after loading got this error

RUN
Stepper initialized - 100KHz timer active
Warning: Soft limits not configured. Use STEPPER LIMITS to set working area.
Hardware limit switches configured
[19] Stepper limits X, 0, 200
Error : Axis not configured