gaged / moccagui

Automatically exported from code.google.com/p/moccagui
0 stars 1 forks source link

MOCCA freezes in combination with halui #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is critical problem for me, need a helpful hand, thx.

Hello,
I have a problem with using the halui component, MOCCA freezes in short time, 
irregularily, I can't find the reason why .
When using AXIS with the same configuration, everything passes OK.
I am using halui for sending the FeedOverride message.
Would you reccomend any steps how to solve the problem, at this point I can't 
use MOCCA anymore when willing to use the halui component at the same time.
Thank you
Jiri

mocca version:1.60
emc2 vesion:2.4.5
widget kit: gtk2

Sonstiges:

Original issue reported on code.google.com by xxxbal...@gmail.com on 8 Nov 2010 at 7:59

GoogleCodeExporter commented 9 years ago
Which mocca version do you mean with 1.60?
A selfcompiled version based on revision 160?

Original comment by benjamin...@gmx.de on 8 Nov 2010 at 5:59

GoogleCodeExporter commented 9 years ago
Oh, sorry, I meant revision 160 for sure, anyway I have tried the newest 
revision 163 today and the problem still occurs there. It's been tested on two 
different PCs, one of those was installed with UBUNTU 8.04 and the second 
UBUNTU 10.04 , problem is the same on both PCs.
Thanks
Jiri

Original comment by xxxbal...@gmail.com on 11 Nov 2010 at 8:45

GoogleCodeExporter commented 9 years ago
Hi, still no suggestions how to solve this problem? I am sorry but then the 
Mocca has no use for me, 'cause I got stuck at this point and have no clue how 
to come out. I have installed the latest versions of Mocca 1.64 and EMC2 ver. 
2.4.6 and the problem is still there. If I have heard from someone how to track 
the problem we could probably solve it together, but I am completely lost.
Thanks
Jiri

Original comment by xxxbal...@gmail.com on 9 Dec 2010 at 8:57

GoogleCodeExporter commented 9 years ago
Hi Jiri,

I am using also halui commands to control spindle speed Override and feed 
override. I am using a handwheel connectetd to an USB Port.

I got no problems at all.

Can you please post your INI and hal files and give more Information over your 
hardware.

Thanks, I will try to help if I am able to.

Norbert

Original comment by nie...@web.de on 11 Dec 2010 at 10:32

GoogleCodeExporter commented 9 years ago
Hi Norbert,
thanks for your answer, please tell me where can I reach you either by email or 
other kind of communication channel where can I send you the files you 
mentioned, I can see only part of your email address here /nie...@web.de/ so 
please tell me the right address. Thank you
So far I have tried four different computers with different hw configurations 
but it's not working any. For instance it was ATOM330, ATOM230, Celeron 1GHz, 
AMD Athlon 64 processor 3700+ . Still AXIS works properly, Mocca freezes in one 
minute when using the Override function.
As I can't see your address, you probably don't see mine, please use my email 
xxxbalcar@seznam.cz /sorry you may probably be able to see it, I was not able 
to see yours :) /
Best regards
Jiri

Original comment by xxxbal...@gmail.com on 13 Dec 2010 at 8:00

GoogleCodeExporter commented 9 years ago
hi Jiri,

when you add the comment here, you should see a text "Attach a file" just below 
the comment window, correct ?
You can send your file here.

Let me know if its not possible

Gerd

Original comment by gerd.gle...@gmail.com on 13 Dec 2010 at 9:16

GoogleCodeExporter commented 9 years ago
Sorry, you must think I am a fool, but I have not seen it before, thanks. Here 
is the complete config file and log of the event when the conflict happens in 
one zipped file.
Thanks for your help.
Jiri

Original comment by xxxbal...@gmail.com on 13 Dec 2010 at 10:15

Attachments:

GoogleCodeExporter commented 9 years ago
Hallo Jiri,

I was not able to find any error in your config files. 
The only difference to my configs file witch I use to control the halui 
commands is, that you use counts and I only button.

Here are the relevant Lines from my config:

# Vorschubgeschwindigkeit erhöhen oder veringern
# Increase or decrease spindle speed 
net key-feed-down            halui.feed-override.decrease <= input.0.key-slash
net key-feed-up              halui.feed-override.increase <= 
input.0.key-rightbrace

Are you able to use 2 button instead of a jog wheel just for testing?
unfortunately I have not Jog Wheel for testing, my one is in constant use and 
connected to a paralell port.

What kind of Input device are you using?

Regards Norbert 

Original comment by nie...@web.de on 13 Dec 2010 at 7:13

GoogleCodeExporter commented 9 years ago
Hi Norbert,

thank you for your effort, I will try to put together hardware with buttons 
after your advice and tell you how it works, hopefully later today. I am using 
my own made and invented hardware which is supposed to work as a control panel 
for our own made CNC mill machine. It's still in the prototype stage and due to 
the Mocca problem I got stuck with finalization of this panel.
Thank you, will be back soon.
Jiri

Original comment by xxxbal...@gmail.com on 14 Dec 2010 at 8:20

GoogleCodeExporter commented 9 years ago
OK, I tested the hardware with up and down buttons using the configuration you 
sent me.
The problem occurs less often but it still happens.
After a few hours of testing I have found out these details:
In automatic mode of executing the program is everything OK!
The problem occurs in manual mode.
It occurs only if the feed-override function is being changed while the other 
command is being executed.
For example: it happens when I turn the feed-override control through USB 
device while simultaneusly and
repeateadly pressing the LeftButton(x-)
The reason why it has occured so often during my testing was because of my 
feed-override control jog-wheel makes
"noise" and the changes were sends out very often so that the conflict with 
other command was more likely to
happen.
If you try to push the leftButton(x-)and the feed-override control on USB 
device simultaneusly and repeatedly,
the problem may occur on your device too.
There's probably some problem in synchronization of commands sent out from 
Mocca and Halui.
Would you or anyone from this group please be able to find it solve it?
Funny thing happened to me when Mocca freezed and the machine kept on moving 
until it stopped
at the mechanical limit.

Original comment by xxxbal...@gmail.com on 14 Dec 2010 at 12:33

GoogleCodeExporter commented 9 years ago
Hallo Jiri,

first of all I woul recommend you to use a kind of Wathdog. So if the software 
freese the maschine will stop nearla at the same time.

I will test with my device using feed override an the Jog buttons simultanius, 
even if it makes no sence for me to do it on real working. But you are right, 
the sowtware should noct freeze. Will come back to that matter.

Regards Norbert

Original comment by nie...@web.de on 16 Dec 2010 at 5:01

GoogleCodeExporter commented 9 years ago
Hi Norbert,
this was just an example, how to simulate the conflict situation, I didn't want 
to bother you. Anyway the problem was with the potentiometer, which was noisy 
when I was simulating my suspected hardware. The result I would like to reach 
is to have and override used with the absolute value of the potentiometer, so 
that this will be sending out approximately once to ten times per second, so 
that the problem occurs again. So that's why it would be helpfull from you to 
solve this freezing problem.
Thank you
Jiri

Original comment by xxxbal...@gmail.com on 17 Dec 2010 at 7:12

GoogleCodeExporter commented 9 years ago
Hello, just added a config param to disable the internal mocca hal feed 
interface.
Please edit your config file:

<CONFIG>
  <global>
    .
    <boolean name="use_hal_feed" value="False"/> 
    .
  </global>

Think that i will remove the mocca hal pins to feed,spindle override cause the 
halui interface is used in most of the cases anyway.

regards, Thomas

Original comment by mocca...@googlemail.com on 17 Dec 2010 at 10:12

GoogleCodeExporter commented 9 years ago
Thank you Thomas, I've tried your modification, but it makes no difference with 
the "freezing" problem, it behaves still the same, freezes after few moments in 
manual mode on condition that override value is being changed during the 
deceleration or acceleration in process.
AXIS and TKEMC programs are working right under the same conditions, can you 
tell the difference between Mocca and these two programs? I don't wanna use 
them because of bad graphics, I am completely into Mocca, but I have to solve 
this "freezing" problem somehow. I'm compiling Mocca so that if you have any 
sugestion, you can send me some partition in source code.
Best regards
Jiri

Original comment by xxxbal...@gmail.com on 21 Dec 2010 at 11:48

GoogleCodeExporter commented 9 years ago
so I guess it's still not fixed :-(

Original comment by gerd.gle...@gmail.com on 21 Dec 2010 at 12:32

GoogleCodeExporter commented 9 years ago
Hi Jiri, tomorrow we will test this on a machine that uses the 
halui.feed-override. I just installed mocca on this machine but its too late to 
start the machine now. my kids are sleeping... :-)
Think that tomorrow we'll find the problem...
Thank you for your help...
ragards, Thomas

Original comment by mocca...@googlemail.com on 21 Dec 2010 at 9:58

GoogleCodeExporter commented 9 years ago
Hello, i made a mistake with the feed-override / maxvelocity implementation in 
mocca.
When i implemented the code for all the velocity- stuff i thought that only the 
gui will send setmaxvelocity - messages to emc. That is not true. 
halui.feed-override does this also. I have disabled the internal setmaxvelocity 
loop inside mocca and it seems that mocca does not freeze any more.
Please give me one more day to test this on a real machine before i commit the 
changes.
regards, Thomas 

Original comment by mocca...@googlemail.com on 22 Dec 2010 at 6:37

GoogleCodeExporter commented 9 years ago
Hi Thomas, thanks for your effort. I have tried to block the function 
setmaxvelocity, see the attached file, and the problem is still there. Am I 
mistaking in compiling or is there other problem?
Regards
Jiri

Original comment by xxxbal...@gmail.com on 22 Dec 2010 at 10:35

Attachments:

GoogleCodeExporter commented 9 years ago
Hallo Jiri,

i have the same problem on my machine. I also use mocca and a handwheel for the 
feedoverride.
Have you solved the problem now??

Stephen

Original comment by stephenb...@gmail.com on 1 Jan 2012 at 3:46

GoogleCodeExporter commented 9 years ago
I have reproduced the problem with a rotary encoder for feed-overriding.
Then I updated mocca to 0.2.3.
The problem did no longer occur. 
(The codeline mentioned above in the config.xml is not needed)

So I guess with the recent versions of mocca, the problem is fixed.

Could one of you, who had the problem, please verify if this solved the problem 
for you too?
Thanks,
Benjamin

Original comment by benjamin...@gmx.de on 14 Feb 2013 at 6:23