Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homingZ change from Incremental to Absolute #2

Open
ojaatka opened this issue May 6, 2020 · 1 comment
Open

homingZ change from Incremental to Absolute #2

ojaatka opened this issue May 6, 2020 · 1 comment

Comments

@ojaatka
Copy link

ojaatka commented May 6, 2020

I have been using this PP very successfully with CNCGraf.

Since homingZ is implemented as relative movement, there are problems if the axis is too high at start. I think it would be better if the value is given as absolute value.
Then my axis would always move to a Safe-Z position.

Would that make sense?

@timschneider
Copy link
Owner

Hi @ojaatka, yes that's right - I've encountered that from time to time, when milling high parts in a vise, the problem of the CNC Graf Controller is, that it does not have a stack. I would usually do some kind of push current motion settings on stack and pop them later to do the following,

G53 ; disable WorkpiceCoordinateSystem, but it does not switch to MachineCoordinateSystem
; push current motion settings, e.g. feed rate / absoule / relative ...
G90 ; (absolute move)
G0 Z150 F2000 ; or whatever your machine is able to
; pop stored motion settings, e.g. feed rate / absoule / relative ...
G60 ; reactivate last coordinate system

Ah and an important note, the G-Code is always in WCS, so if you set Zero ontop of your vise (80mm), and try to move to 100mm absolute WCS, (180mm MCS), it's not possible for the example with Z 150mm max.

grafik

To fix your problem, you can change this with the Homing Z Parameter, just lower the value to 50 or less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants