realtime log position to txt use python script

More
11 months 3 weeks ago #338055 by tommylight
I am pretty sure it did till 2.7 as i used it on every machine, and we had power outages daily back then.
No idea now as we have no power outages so i do not use it anymore.

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

More
11 months 2 weeks ago - 11 months 2 weeks ago #338604 by fery15sty
I've tried it on LinuxCNC 7.4.15 Debian Wheezy. While LinuxCNC is running, coordinates aren't saved when the power outages.

The last coordinates are only saved when LinuxCNC is closed normally.
Last edit: 11 months 2 weeks ago by fery15sty.

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

More
11 months 1 week ago #338713 by unknown
Just an idea.
The last position that will be recorded will be the last data that that was successfully written to the hardware from the file buffer.
Now the power going out will be for all intents and purposes a random event, there is no guarantee that any particular data will be successfully written to hardware before a power outage.
The only way I can see everything happening gracefully is with a UPS, that once detects a mains outage is able to shutdown gracefully. But the machine itself may not be in the exact position you expect due to inertia and any other unknown factors mechanical or electrical.
So basically data not being written the disk is more of a limitation of an OS when power is removed suddenly.
Also one would hope the file being written to is not stored in tmpfs (ram) then written to disc during the shutdown process of Linuxcnc.

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

Time to create page: 0.141 seconds
Powered by Kunena Forum