Dynomotion

Group: DynoMotion Message: 13097 From: Tom Kerekes Date: 4/6/2016
Subject: Re:_[DynoMotion]_=e2=80=9cNot_Responding=e2=80=9d_KmotionCNC.
Hi Shannon,

I see you are doing 2 abnormal things:

#1 JoytoKey pushing KMotionCNC buttons
#2 Writing/reading the Disk File from VB and KFLOP 90 times per second.

Can you try not doing #1 #2 or both to see if the problem goes away?

I think a better approach would be to have the VB program set persist variables in KFLOP periodically.  Having a disk file written and read asynchronously might cause problems.  But oddly that doesn't appear to be what is locking up.

If you could run KMotionCNC from Visual Studio in Debug mode then you could break to possibly see what the GUI is waiting on to be non-responsive.  If you don't know how to do that we could provide more details.

Regards
TK


On 4/6/2016 11:38 AM, shannonjdavenport@... [DynoMotion] wrote:
 

Hi Tom,  

We’re having an intermittent  problem that we’ve been unable to solve.  We are getting an “Not Responding” message in the title bar in KmotionCNC. Here the facts.


Windows 7 on an industrial AMD 64bit platform with integrated touch screen.

Logitech F710 Gamepad.

JoytoKey running for Gamepad to keyboard mapping.

The machine is an X,Y, Z1, Z2 waterjet. ( Z’s are not part of the coordinated motion)

It occurs both while running Gcode and sitting idle.

If Gcode is running motion stops but jet stays on(spindle output) and often ruins the part.

Very random, the machine may operate for several hours or 5 minutes between failures.

We were running 4.33 now 4.34a …no change.

Kflop was powered by USB we changed to external PS …no change.

We are unable to open Kmotion.exe during unresponsive KmotionCNC.

We replaced and rerouted USB cable …no change

If we disable/enable or unplug/replug USB the “Not Responding” goes away and we can resume cutting.

 

We thought it was a USB problem but the C program below is running and still fully functional while the “Not Responding” message is present.

Any ideas?

Thank you, Shannon


#include "KMotionDef.h"

main()

{

               int resultz;

               double z1;

               double z2;

               int zcur1;

               int zcur2;

              

               for (;;) { // loop forever

//----Get logitech game controller  Z move data from a file created in VB6 app----

                              FILE *fz=fopen("c:\\Temp1\\kflop_z_move.txt","rt");

                              Delay_sec(.011);

                              if(fz!=NULL)

                              {             

                                             //printf("e");

                                             resultz=fscanf(fz,"%lf\n",&z1);

                                             resultz=fscanf(fz,"%lf",&z2);

                                             //Jog Z1

                                             if (z1 != zcur1){

                                             Jog(4,z1);

                                             }

                                             //Jog Z2

                                             if (z2 != zcur2){

                                             Jog(3,z2);

                                             }

                                             fclose(fz);

                                             if (fz != NULL){

                                             fz = NULL;

                                             }

                                             zcur1 = z1;

                                             zcur2 = z2;

                              }

                              WaitNextTimeSlice();

               }             

}