| Posted: 05:01am 16 Apr 2026 |
|
|
|
Ok got everything hooked but just keep getting errors
The code
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"
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
The error in MCCC
RUN 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, GP24, GP25, GP26, 1, 800, 100, 100 Error : Pin 42/GP24 is in use
So tried GP27
RUN 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 my idea is simply go forward 100 then back 100 and if the E-Stop is pressed stop the output |