Homing / limits - the manual is misleading, possibly wrong
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).
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.
Please Log in or Create an account to join the conversation.
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.
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.
home offset is 0.5home = -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
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Chris,
Under Figure 1,
really should sayC is the home switch trip pointC is the home switch trip point (once triggered, home switch must remain active from the home switch position all the way to the hard limit)
Did you include something about this? Could not see it.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19209
- Thank you received: 6438
Very nice, thank you.linuxcnc.org/docs/devel/html/config/ini-homing.html
Please Log in or Create an account to join the conversation.
Yes in the prerequisiteDid you include something about this? Could not see it.
If using a separate homing switch, it’s possible to start homing on the wrong side of the home switch,
which combined with HOME_IGNORE_LIMITS option will lead to a hard crash.
You can avoid this by making the home switch toggle it’s state when the trip dog is on a particular side until it returns passed the trip point again.
Said another way, the home switch state must represent the position of the dog relative to the switch (ie before or after the switch),
and must stay that way even if the dog coasts past the switch in the same direction.
Please Log in or Create an account to join the conversation.
- jay.perez1
- Offline
- Senior Member
- Posts: 47
- Thank you received: 3
I've been posting recently under "Sharing Limit Switches and Homing on a Single Input" looking for help with setting up Homing and Limit Switches using a single input pin on my breakout board. I have successfully gotten the single pin deal to work and stumbled around until I managed to get Homing and soft limits etc. to work. However, it would be a significantly large understatement if I said I don't actually understand how to correctly set the different variables.
I've been struggling to make sense of the different sections of the manual and tie it all together. A large part of that is my limitations but I'm starting to suspect there might also be some errors and omissions in the manual and areas that could be more clearly stated.
I've read a few of your comments and would appreciate your insights and suggestions. Would you please check out my posting if you have time and let me know what you think ? I just updated it to include a copy of the "Figure 2. Demonstrative Shares Switch Layout" image from the manual with extensive mark-ups to help me try to understand how things fit together, and, some areas where I have questions or think the information may be incorrect. Per your comments on this thread I believe I'm using the version of the manual you recommended and have put that info on the image I submitted.
Thanks in advance for any help you can provide.
Jay
Please Log in or Create an account to join the conversation.