Delay between THCarcon_emulation and start of the motion

If you think you've found a bug post it here.

Re: Delay between THCarcon_emulation and start of the motion

Postby cncdrive » Sun Nov 27, 2016 9:41 pm

Hi Andrew,

Thank you for the video.
Please keep the video uploaded and tomorrow I will show it to my collegue.
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby cncdrive » Mon Nov 28, 2016 8:10 pm

Hi Andrew,

From the video it seems that the C# side of the UCCNC is waiting for something, because when the code execution gets to the M3 then the motion buffer is totally empty, 0,
and the controller is in idle, so we don't really know why is it not going forward in the g-code loop. Also there seems to be no dwell which I thought that it might be the issue that there is a dwell.
So, we don't know why is this happening.
I've uploaded a test .exe here for you, placed a few labels on the screen and printed internal loop and other informations.
Could you please run it and capture it on a video to let me get some more info.
The .exe works with 1.2029 version only. Rename the file UCCNC.txt to UCCNC.exe.
I don't want to allow distribution of .exe files on the forum, so the .exe extension for uploads will be disabled is why I renamed the file extension,
so you have to name it back to .exe extension.
Attachments
UCCNC.txt
(2.42 MiB) Downloaded 756 times
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby shad » Tue Nov 29, 2016 6:58 pm

Hello!
I will try to make test tomorrow.
Thank you!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 331
Joined: Thu Sep 15, 2016 5:23 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby shad » Fri Dec 02, 2016 6:13 am

-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 331
Joined: Thu Sep 15, 2016 5:23 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby cncdrive » Fri Dec 02, 2016 7:15 am

Hi Andrew,

Thank you for the video.

It looks to me that the GUI is frozen when the wait happens, I mean it does not seems that the software is waiting in it's g-code execution loop, because the Ismoving function is not called, normally that should be counting if the software is waiting in that loop.
What I suspect is maybe you calling a Thread.Sleep of something like that in the GUI thread?
That would do this, I mean that would freeze the application like on the video.

Also I've tried to test your plugin which you've sent via e-mail, but it gives an error message on startup that it does not find the .xml profile file and then the plugin window appears, but things are greyed out.
I know you've sent me the .xml file and I copied that to the UCCNC/plugins/ and also to the UCCNC/ folder, but still the same error message.
I think that the plugin therefor not doing it's actions, or at least it does not seems to be calling the virtual arc on signal when the M3 happens, so I think it is probably not running actions because of the .xml not found problem.
Could you please tell me where to copy the .xml file or what I'm doing wrong?

I've uploaded a new UCCNC.exe file for you here as attachment.
The file was renamed it to .txt, please again rename it to .exe.
I've added one more Textfield to the screen to verify if the GUI thread is really frozen or not.
It is called timer1 and it does not do anything else just counting from a GUI timer.
Please check and let me know if that timer is counting or not when the wait happens at the M3?
If it stops counting while the wait happens then I think the issue will be with the plugin, but let's see first and then I will give you more info about what to check/test.
Attachments
UCCNC.txt
(2.42 MiB) Downloaded 791 times
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby shad » Fri Dec 02, 2016 8:00 am

Ok, I will check it now.
During testing Neuron plugin is removing from Plugin folder an is not loaded.
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 331
Joined: Thu Sep 15, 2016 5:23 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby shad » Fri Dec 02, 2016 8:08 am

This is the video https://www.dropbox.com/s/4kfm0cgpguye3 ... 8.avi?dl=0
Neuron plugin unloaded and deleted from Plugin folder during testing.
Also Plugin and other files was sent to your email.
My costumer now cut without pauses when FastStone capture program running :)

Also I've tried to test your plugin which you've sent via e-mail, but it gives an error message on startup that it does not find the .xml profile file and then the plugin window appears, but things are greyed out.

What is the path to the UCCNC folder on the your machine? Just plugin try to load conf file from C:\UCCNC\Plugins

Thank you.
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 331
Joined: Thu Sep 15, 2016 5:23 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby cncdrive » Fri Dec 02, 2016 10:17 am

Hi Andrew,

Thanks again for the video.
And also I received the files via e-mail and installed them.
I also have the g-code file from you, you sent it earlier, so I ran the file with your screenset and plugin installed, but again the system runs without any pause.
I will test with my other 2 computers also which I have here, but will need some time to do that.

And from your last video it can be seen that it is not what I suspected, the GUI is not frozen, because the timer is counting,
so I currently have no idea why this pause on your system is happening.
Will be thinking about what else to test/check and how to go on with the debugging.
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby shad » Tue Dec 06, 2016 5:59 am

Thank you very much Balazs!
All works perfect.
No pauses now. :D
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 331
Joined: Thu Sep 15, 2016 5:23 pm

Re: Delay between THCarcon_emulation and start of the motion

Postby cncdrive » Tue Dec 06, 2016 6:54 am

Hi Andrew,

I'm glad it works fine now. :)

For others to know what's going on: We resolved this issue with Andrew with discussing in e-mail and made some further debugging and finally found the cause for this issue and resolved the problem.
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Previous

Return to Report a bug

Who is online

Users browsing this forum: No registered users and 5 guests