Initialization program causing freeze

Moderators: TomKerekes, dynomotion

Post Reply
amowry
Posts: 51
Joined: Fri Jan 26, 2018 1:00 am

Initialization program causing freeze

Post by amowry » Wed Sep 28, 2022 5:34 pm

I use the attached C program for initializing my CNC, and while it works most of the time is seems to occasionally cause the KFlop to freeze. The issue is with the forever loop starting at line 77 that I added a few years ago to control my laser (if I remove that loop it always works fine). I was wondering if you see anything in this loop that would cause issues? Thanks!
Attachments
K2_Init Servo__laser.c
(13.01 KiB) Downloaded 27 times

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

Re: Initialization program causing freeze

Post by TomKerekes » Wed Sep 28, 2022 6:41 pm

Hi amowry,

No I don't see anything specific. But the other files weren't included.

What do you mean by "freeze"?

What is minimum required to "unfreeze" it?

You might try removing pieces of the forever loop to see if you can identify the cause.
Regards,

Tom Kerekes
Dynomotion, Inc.

amowry
Posts: 51
Joined: Fri Jan 26, 2018 1:00 am

Re: Initialization program causing freeze

Post by amowry » Wed Sep 28, 2022 8:06 pm

I think I found the issue-- at some point I accidentally changed the user button command from Exec Prog to Exec/Wait. Sorry to have wasted your time on this :).

Post Reply