Help with moving the spindle over a set distance in mm

If you have a question about the software please ask it here.

Help with moving the spindle over a set distance in mm

Postby Martingchapman » Sun Dec 08, 2019 8:27 pm

I have a Stepcraft D420 machine running UCCNC.
I would like to be able to manually move the spindle in any axis by a set distance (in mm) using UCCNC.
I can use the Jog Controller to move the spindle in the X, Y or Z axis but I cannot set an exact distance in mm for the spindle to move here.
I can also enter move commands into the MDI to move the spindle, but can not work out the relationship between units entered and the actual distance the spindle moves.

The machine appears to be set up ok as I have run a few jobs (created in Vectric Cut2d using the "Stepcraft UCCNC Arcs(mm)(*.txt)" post processor) and they have come out the correct sizes.

Thanks - Martin.
Martingchapman
 
Posts: 3
Joined: Wed Dec 04, 2019 9:04 pm

Re: Help with moving the spindle over a set distance in mm

Postby dezsoe » Mon Dec 09, 2019 10:43 am

Hi Martin,

The UCCNC is by default in absolute distance mode (G90). When you type G0 X20 in the MDI then it will travel to X20 in the current coordinate system. If you want to move it by 20 mm then you have to switch to relative distance mode with G91. First type G91 in MDI, press enter. Next you can move relative coordinates by typing e.g. G0 X20 or G0 Y-5 etc. Don't forget to switch back to absolute distance mode with G90. (Most generated g-codes have G90 in the first rows but it is better to not forget it.)
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Help with moving the spindle over a set distance in mm

Postby Martingchapman » Mon Dec 09, 2019 3:32 pm

@dezsoe
That is so helpful, thank you very much.
Will give it a try as soon as I am next in the workshop.

Martin.
Martingchapman
 
Posts: 3
Joined: Wed Dec 04, 2019 9:04 pm

Re: Help with moving the spindle over a set distance in mm

Postby Martingchapman » Thu Dec 12, 2019 7:24 pm

Tried this out today and it worked fine.

@dezsoe thanks again.

Martin.
Martingchapman
 
Posts: 3
Joined: Wed Dec 04, 2019 9:04 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 21 guests