remember position between runs?
13 Jun 2016 23:12 #75940
by arhi
remember position between runs? was created 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?
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19265
- Thank you received: 6451
13 Jun 2016 23:47 #75942
by tommylight
Replied by tommylight on topic remember position between runs?
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
Regards,
Tom
Please Log in or Create an account to join the conversation.
13 Jun 2016 23:51 #75943
by arhi
Replied by arhi on topic remember position between runs?
great, thanks!
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19265
- Thank you received: 6451
13 Jun 2016 23:57 #75945
by tommylight
Replied by tommylight on topic remember position between runs?
You are welcomed.
Please Log in or Create an account to join the conversation.
13 Jun 2016 23:58 #75946
by arhi
Replied by arhi on topic remember position between runs?
had to add POSITION_FILE = last_position.txt
to [traj] but that's it
to [traj] but that's it
The following user(s) said Thank You: Tchefter
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19265
- Thank you received: 6451
14 Jun 2016 00:20 #75950
by tommylight
Replied by tommylight on topic remember position between runs?
ooops sorry i forgot that !
Please Log in or Create an account to join the conversation.
14 Jun 2016 01:24 #75952
by arhi
no worries, after you told me what to look for the solution was immediately found .. added that more for completeness so if someone tomorrow google this thread out gets the whole thing in one place
Replied by arhi on topic remember position between runs?
ooops sorry i forgot that !
no worries, after you told me what to look for the solution was immediately found .. added that more for completeness so if someone tomorrow google this thread out gets the whole thing in one place
Please Log in or Create an account to join the conversation.
06 Aug 2023 09:15 #277099
by Vector
Replied by Vector on topic remember position between runs?
Thanks for putting it all in one place: your mission has been accomplished!
Please Log in or Create an account to join the conversation.
06 Aug 2023 09:31 #277102
by Vector
Replied by Vector on topic remember position between runs?
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.
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.078 seconds