remember position between runs?

More
13 Jun 2016 23:12 #75940 by arhi
Hi,
trying to figure out how to make linuxCNC remember the position between runs.

so for e.g. I home the machine now, I move it around and leave it at X100, Y10, Z223, I turn linuxcnc off, I turn machine off (do not move any axes manually), I turn linuxcnc on, I turn machine on ... I know now machine is at X100, Y10, Z223 as I left it there and didn't move it but linuxcnc is unaware of that... any way to make it aware?

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

More
13 Jun 2016 23:47 #75942 by tommylight
Just create an empty file and name it "last_position.txt" and place it in the ~/linuxcnc/configs/yourconfigname, That's it. Even if the power goes off it remembers it's last position.
Regards,
Tom
The following user(s) said Thank You: Tchefter, arhi

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

More
13 Jun 2016 23:51 #75943 by arhi
great, thanks!

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

More
13 Jun 2016 23:57 #75945 by tommylight
You are welcomed.

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

More
13 Jun 2016 23:58 #75946 by arhi
had to add POSITION_FILE = last_position.txt
to [traj] but that's it :D
The following user(s) said Thank You: Tchefter

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

More
14 Jun 2016 00:20 #75950 by tommylight
ooops sorry i forgot that ! :ohmy:

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

More
14 Jun 2016 01:24 #75952 by arhi

ooops sorry i forgot that ! :ohmy:


no worries, after you told me what to look for the solution was immediately found :D .. added that more for completeness so if someone tomorrow google this thread out gets the whole thing in one place :D
The following user(s) said Thank You: tommylight, thefabricator03, Vector

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

More
06 Aug 2023 09:15 #277099 by Vector
Thanks for putting it all in one place: your mission has been accomplished!

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

More
06 Aug 2023 09:31 #277102 by Vector
Follow up question:

This is optional, it seems, but is there a way to have the DRO on gmoccapy stay "green" with the position file storing the position?

My axes are all lead-screw based, so they can't go anywhere without manual intervention, so once homed, and if the positions are stored, I feel I could simply put the machine into a "homed" state in my mind.

But the DRO (which displays the axis positions) is red on re-start. And that plays with my brain telling me I have to home it again. Even though I shouldn't need to. It's a big machine so homing is actually a bit of a pain.

But it seems the only way to make it show green is to go through homing again.

Is there an important reason for this? (Like does the machine lose its internal understanding of where the axis is, even though it's stored the last position?)

If its safe to leave green, then is there a way to do so?

I'm still newbie, so please don't think an obvious answer isn't what I need ;-)  Thanks.

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

Time to create page: 0.433 seconds
Powered by Kunena Forum