Initialization program causing freeze
Moderators: TomKerekes, dynomotion
Initialization program causing freeze
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 73 times
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: Initialization program causing freeze
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.
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.
Tom Kerekes
Dynomotion, Inc.
Re: Initialization program causing freeze
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 .