Homing / limits - the manual is misleading, possibly wrong

More
6 years 7 months ago #160882 by Clive S
I never use travelling switches. I have built several gantry machine (routers) and never had any problem with homing I also always use one switch for home and limit and a another sensor for a limit at the other end. Also use soft limits.
.
In the below I am restricting the home position to a small portion of the table temporally.
Code:
left right # final home position HOME = -200 HOME = -200 # use this to square the gantry HOME_OFFSET = 0.5 HOME_OFFSET = 0 HOME_SEARCH_VEL = 30 HOME_SEARCH_VEL = 30 HOME_LATCH_VEL = -2 HOME_LATCH_VEL = -2 HOME_FINAL_VEL = 50 HOME_FINAL_VEL = 50 HOME_SEQUENCE = -2 HOME_SEQUENCE = -2 HOME_USE_INDEX = False HOME_USE_INDEX = False HOME_IGNORE_LIMITS = True HOME_IGNORE_LIMITS = True

I think that the home offset is often used wrong according to my reading of the docs and it is the home position that the axis will move to at the end of the homing sequence

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #160891 by cmorley

In the below I am restricting the home position to a small portion of the table temporally.


Can you explain what you mean here, 'temporarily' confuses me - home position is not defined till the end of homing -it can't be until linuxcnc knows where the Origin is.

What soft limits goes with those settings?

Chris

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #160894 by dgarrett
Re: homing and stopping distance
To clarify:

All homing moves use a single-joint trajectory
planner (simple_tp) that implements a trapezoidal
velocity profile using specified maximum speed and
acceleration (vmax,amax).
Code:
if (v < vmax): v = amax * t (fixed accel phase) then : v = vmax (fixed vel phase) So starting (from 0 speed to vmax) or stopping (from vmax to 0 speed) the time taken is: tstop = tstart = vmax/amax Speed is the derivative of position (x) or, alternately, position is the integral of speed so the distance traveled while in the fixed accel phase is: x = Integral(v dt) = Integral(amax*t dt) = 0.5 * amax * tstart^2 (similary for tstop) x = 0.5 * amax * (vmax/amax)^2 x = 0.5 * vmax^2 / amax Example: vmax = 500 units/sec amax = 5000 units/sec^2 tstart = tstop = 500/5000 = 0.1 ( = time to reach full speed from 0) (or time to stop from full speed) xstart = xstop = 0.5 * 500^2/5000 = 25 units ( = distance traveled to reach full speed) ( = or distance to stop from full speed)

Note: Velocity is a vector quantity, speed is a scalar
measure of velocity magnitude. The terms are commonly
interchanged and misused in Linuxcnc documents and pin
names.
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #160895 by Clive S

cmorley wrote:

In the below I am restricting the home position to a small portion of the table temporally.


Can you explain what you mean here, 'temporarily' confuses me - home position is not defined till the end of homing -it can't be until linuxcnc knows where the Origin is.

What soft limits goes with those settings?

Chris


Chris. these are the soft limits. but full disclosure I changed my home position from -20 to -200 so the limit below are correct with the home set at -20.
these settings are on a plasma table I am building the table is about 1260mm in X and 750mm in Y but I have a piece of MDF as a bench on it so I have cut the soft limits down so I don't move the gantry by mistake to far.
.
My switches are fitted top left on the machine but I will make my final home bot left so that my gcode will be +ve when using G54. If that makes sense

AXIS = Y
MIN_LIMIT = -200
MAX_LIMIT = 0

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #160903 by cmorley
home = -200
home offset = .05
min = -200
max = 0

I don't see any problem with that nor does the docs say that's not ok. your machine coordinates are all negative but that doesn't really matter.

Chris

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #160905 by Clive S

cmorley wrote: home = -200
home offset = .05
min = -200
max = 0

I don't see any problem with that nor does the docs say that's not ok. your machine coordinates are all negative but that doesn't really matter.

Chris

home offset is 0.5

Yes Y G53 will be -ve but X is +ve

My machine homes without any problems.

Thanks again for the work you put in

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds
Powered by Kunena Forum