Page 1 of 1

Loss of Kmotion and KmotionCNC files during operation.

Posted: Sun Feb 18, 2024 10:59 pm
by Alexanders
I'm finishing setting up the milling machine. I have completed the spindle operation programs in order to stop the axes and wait for acceleration / deceleration of the spindle. And I've already tested it through MDI. Everything worked fine.
Suddenly KmotionCNC froze, after which the PC started to reboot. After the reboot, the following messages appeared :
IMG_20240216_200344.jpg
IMG_20240216_200040.jpg
Windows 7 32

For some unknown reason, these files turned out to be empty. And KmotionCNC has reset all settings.
I have two questions:
1. Why could this happen?
2. How to save and restore KmotionCNC settings correctly? From where and which files should I save?

P.s. All my custom .c and .out files have not changed and are correct.

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Sun Feb 18, 2024 11:20 pm
by TomKerekes
Hi Alexanders,

Sorry to hear this.

The KMotionCNC Configuration is stored in \KMotion\Data\GCodeConfigCNC.txt. Later Versions maintain a copy in \KMotion\Data\GCodeConfigCNC.txt.bak which should be used automatically if the other is found to be corrupted. What Version of KMotion are you using?

Hard to say what was the cause for Windows to crash. If Windows is not shut down properly then disk files can be corrupted. More likely disk files recently written.

It's a good idea to backup the \KMotion\Data folder (or entire installation folder) periodically.

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Mon Feb 19, 2024 12:12 am
by Alexanders
TomKerekes wrote:
Sun Feb 18, 2024 11:20 pm
What Version of KMotion are you using?
I use KMotion5.3.0

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Mon Feb 19, 2024 12:16 am
by TomKerekes
5.3.0 should maintain a .bak file

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Mon Feb 19, 2024 9:57 am
by Alexanders
Can you tell me how to properly save and restore KmotionCNC settings before and after a new installation?

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Mon Feb 19, 2024 5:21 pm
by TomKerekes
Copy the entire contents of the \KMotion\Data folder. See also here.

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Wed Feb 21, 2024 1:16 am
by Alexanders
Files GCodeConfigCNC.txt and GCodeConfigCNC.txt.bak are identical and match the default settings. My KMotionCNC settings are lost.
Why are my settings not saved in the GCodeConfigCNC.txt.bak file? What is my mistake?

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Wed Feb 21, 2024 4:36 pm
by TomKerekes
I'm not sure how the files got corrupted. If you answered Yes to the

"Continuing will cause a loss of all settings. Are you sure you would like to continue?"

then the parameters would be set to Default. But that doesn't explain how the files got lost/corrupted in the first place.

I suppose the mistake was to not back up the files.

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Thu Feb 22, 2024 8:06 am
by Alexanders
Then I will clarify my question. When and under what conditions is the GCodeConfigCNC.txt.bak file updated?

Re: Loss of Kmotion and KmotionCNC files during operation.

Posted: Thu Feb 22, 2024 4:21 pm
by TomKerekes
Whenever KMotionCNC exits it saves GCodeConfigCNC.txt and GCodeConfigCNC.txt.bak with the current settings.