Re: [Emc-users] persistent homing

2012-04-20 Thread Viesturs Lācis
2012/4/20 Michael Haberler : > > I was thinking about introducing handlers similar to ON_ABORT which would > execute on startup, first machine-on and shutdown > There is INI file option to execute separate HAL file on shutdown: SHUTDOWN = shutdown.hal Viesturs --

Re: [Emc-users] persistent homing

2012-04-20 Thread Michael Haberler
I was thinking about introducing handlers similar to ON_ABORT which would execute on startup, first machine-on and shutdown this could be either NGC or Python functions which could - among other things - save/restore arbitrary state; in reality only Python has the powers to do read/write files

Re: [Emc-users] persistent homing

2012-04-20 Thread Erik Friesen
Yes, I thought I'd seen it somewhere. I'm running a little shy here, I had my machine set on noforcehoming, and it threw an joint out of range error while running, and everything was within the bounding box. On Fri, Apr 20, 2012 at 9:47 AM, wrote: > •POSITION_FILE = position.txt - If set to a n

Re: [Emc-users] persistent homing

2012-04-20 Thread samco
•POSITION_FILE = position.txt - If set to a non-empty value, the joint positions are stored between runs in this file. This allows the machine to start with the same coordinates it had on shutdown. This assumes there was no movement of the machine while powered off. If unset, joint positions are

Re: [Emc-users] persistent homing

2012-04-20 Thread Erik Friesen
proof = my eyes?? Proof doesn't need to be objective here. :-) On Fri, Apr 20, 2012 at 9:31 AM, Dave Caroline wrote: > On Fri, Apr 20, 2012 at 2:24 PM, Viesturs Lācis > wrote: > > 2012/4/20 Dave Caroline : > >> How would you know what state stepper/servos are in without homing in > some way > >

Re: [Emc-users] persistent homing

2012-04-20 Thread Dave Caroline
On Fri, Apr 20, 2012 at 2:24 PM, Viesturs Lācis wrote: > 2012/4/20 Dave Caroline : >> How would you know what state stepper/servos are in without homing in some >> way >> do you have absolute encoders > > If there are no significant external forces to shift motors, when they > are not powered, th

Re: [Emc-users] persistent homing

2012-04-20 Thread Erik Friesen
Thats right, I will still check homing, but if it remembers the last location with a step that is close enough for me. On Fri, Apr 20, 2012 at 9:24 AM, Viesturs Lācis wrote: > 2012/4/20 Dave Caroline : > > How would you know what state stepper/servos are in without homing in > some way > > do you

Re: [Emc-users] persistent homing

2012-04-20 Thread Viesturs Lācis
2012/4/20 Dave Caroline : > How would you know what state stepper/servos are in without homing in some way > do you have absolute encoders If there are no significant external forces to shift motors, when they are not powered, then steppers would not drift more than a half step from their previous

Re: [Emc-users] persistent homing

2012-04-20 Thread Viesturs Lācis
2012/4/20 Erik Friesen : > I don't have home switches, etc.  I want my last home position to be > remembered between software cycles. If I understand You correctly, then You want LinuxCNC to remember the position of joints/axes, when program is closed so that when You start it over again, it shows

Re: [Emc-users] persistent homing

2012-04-20 Thread Dave Caroline
How would you know what state stepper/servos are in without homing in some way do you have absolute encoders Dave Caroline -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Mon

[Emc-users] persistent homing

2012-04-20 Thread Erik Friesen
I don't have home switches, etc. I want my last home position to be remembered between software cycles. I currently have NO_FORCE_HOME = 1 in my ini, but that doesn't seem to make these persistent. Can this be done? The reason? I have different emc.vars files with persistent variables that I w