Loss of Kmotion and KmotionCNC files during operation.

Moderators: TomKerekes, dynomotion

Post Reply
Alexanders
Posts: 24
Joined: Wed May 03, 2023 12:54 am

Loss of Kmotion and KmotionCNC files during operation.

Post by Alexanders » Sun Feb 18, 2024 10:59 pm

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.

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by TomKerekes » Sun Feb 18, 2024 11:20 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

Alexanders
Posts: 24
Joined: Wed May 03, 2023 12:54 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by Alexanders » Mon Feb 19, 2024 12:12 am

TomKerekes wrote:
Sun Feb 18, 2024 11:20 pm
What Version of KMotion are you using?
I use KMotion5.3.0

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by TomKerekes » Mon Feb 19, 2024 12:16 am

5.3.0 should maintain a .bak file
Regards,

Tom Kerekes
Dynomotion, Inc.

Alexanders
Posts: 24
Joined: Wed May 03, 2023 12:54 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by Alexanders » Mon Feb 19, 2024 9:57 am

Can you tell me how to properly save and restore KmotionCNC settings before and after a new installation?

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by TomKerekes » Mon Feb 19, 2024 5:21 pm

Copy the entire contents of the \KMotion\Data folder. See also here.
Regards,

Tom Kerekes
Dynomotion, Inc.

Alexanders
Posts: 24
Joined: Wed May 03, 2023 12:54 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by Alexanders » Wed Feb 21, 2024 1:16 am

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?

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by TomKerekes » Wed Feb 21, 2024 4:36 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

Alexanders
Posts: 24
Joined: Wed May 03, 2023 12:54 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by Alexanders » Thu Feb 22, 2024 8:06 am

Then I will clarify my question. When and under what conditions is the GCodeConfigCNC.txt.bak file updated?

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Loss of Kmotion and KmotionCNC files during operation.

Post by TomKerekes » Thu Feb 22, 2024 4:21 pm

Whenever KMotionCNC exits it saves GCodeConfigCNC.txt and GCodeConfigCNC.txt.bak with the current settings.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply