freeze gui on limit switch (hal extern estop)

More
12 Apr 2015 16:19 - 12 Apr 2015 16:19 #57712 by bkt
I add some new row in my custom hal file and in my hal file (charge pump and estern estop) .... in attach you see the modified row ... all works properly but when accidentally my robot press some limit switch the axis gui + pyvcp panel freeze and it is impossible turn off linuxcnc. It is necessary to turn off the pc.

What am I doing wrong??

###my-mill.hal

loadrt probe_parport
loadrt hal_parport cfg="0x378 out  0xd010 in "
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0,0
loadrt charge_pump



addf parport.0.read base-thread
addf parport.1.read base-thread
addf stepgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread
addf parport.1.write base-thread

addf charge-pump base-thread

##################################################
########   charge-pump   #########################
##################################################

net myCPname charge-pump.out => parport.1.pin-17-out

##################################################

#####################################################################
####################   estop -hal- cicle  ###########################
#################### see other in custom.hal  #######################
#####################################################################

net estop-out charge-pump.enable <= iocontrol.0.user-enable-out


.............. 

#my-custom.hal  

#(obviusly I have loadr and addf or2 comp)


    # Alarm Management

    net estop-out => or2.7.in0 iocontrol.0.emc-enable-in 
    net pyvcpeme pyvcp.eme => or2.7.in1 pyvcp.l-eme halui.estop.activate  #(pycvp.l-eme is a led that indicate push button press, pyvcp.eme is second emergensy push button, very big for my touch screen)
    net eme-manage or2.7.out => parport.0.pin-01-out parport.0.pin-17-out parport.1.pin-01-out
Attachments:
Last edit: 12 Apr 2015 16:19 by bkt.

Please Log in or Create an account to join the conversation.

More
13 Apr 2015 05:00 #57731 by cmorley
Are you saying the whole computer freezes?
This should not happen, however you configured linuxcnc.

Can you give more detail?

Chris M

Please Log in or Create an account to join the conversation.

More
16 Apr 2015 03:44 #57823 by bkt
witch type of details .....Ubuntu 10.4 ..... linuxcnc 2.6 no only linuxcnc freeze .... gui is axis ...... but if I want turn off linuxcnc I have to turn off the PC.

Please Log in or Create an account to join the conversation.

More
16 Apr 2015 11:38 #57829 by cmorley
How about if you try a sample config rather then the one you modified? still hang?

can you run linuxcnc from a terminal and see if there are any clues given.
can you open another terminal (when AXIS freezes) and type 'dmesg' to see if there is a clue.

Chris M

Please Log in or Create an account to join the conversation.

More
16 Apr 2015 12:57 #57830 by mariusl
I have seen this behaviour on my lathe setup using Gmoccapy and mesa hardware. In my case it would seem that Lcnc / GUI becomes unresponsive for a minute or more but then it recovers again. This only seem happens when I use the emergency stop during an automatic or MDI cycle.
On this machine I use the latest production release.

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
16 Apr 2015 18:16 - 16 Apr 2015 19:37 #57836 by KenC
I have similar problem too.
I'm setting up a gantry table, with touch screen monitor.
The power transformer, PC, Mesa 5i25-7i76, all electronics & electricals are housed in a touch screen kiosk similar to a small ATM.
At first, the transformers was powered via a magnetic contactor linked to the Estop and latching ON/OFF via AC signal. when I cut the power to the power trans, 2 things or combination of 2 may happen, 1) screen freezes 2) touchscreen went bonkers.
then I suspected magnetic contactor is a bad idea for a 600VA power tranny , I swap in a SSR and salvage the existing switches and use a DC relay latching circuit for the SSR control which has a nice zero-crossing control, it improved but after more extensively, the problem remains, just less frequent.
Last edit: 16 Apr 2015 19:37 by KenC.

Please Log in or Create an account to join the conversation.

More
16 Apr 2015 20:56 #57840 by PCW
KenC: Its likely your problem is not related to the other GUI freezes as it seems to be EMI
related. Any time you switch inductive loads you need some kind of transient suppressor
to avoid generating EMI. For a 600 VA transformer a properly sized MOV device across the
transformer is a good solution.

There (was?) a bug at least in master where specific operations cause a axis GUI hang for about 30 seconds
This was discussed on the linuxcnc-devel IRC channel a month or two ago, but I cant see to find it on
the logs ISTR it was related to MDI
The following user(s) said Thank You: KenC

Please Log in or Create an account to join the conversation.

More
19 Apr 2015 17:30 #57889 by bkt
at Marius .... yes is right the problem is only related to MDI command. there are some solution?

Please Log in or Create an account to join the conversation.

More
19 Apr 2015 21:10 #57893 by mariusl

at Marius .... yes is right the problem is only related to MDI command. there are some solution?


Nothing that I know off. I just grind my teeth and wait. :unsure:

Regards
Marius


www.bluearccnc.com

The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds
Powered by Kunena Forum