NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum General General LinuxCNC Questions Getting 'Cannot Unhome While Moving' Errors Withou

Welcome, Guest
Username: Password: Remember me

TOPIC: Getting 'Cannot Unhome While Moving' Errors Withou

Re:Getting 'Cannot Unhome While Moving' Errors Withou 20 Jun 2012 19:34 #21161

  • JRhode
  • JRhode's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Alright, so it appears the unstable e-stop signal is causing my problems. While running a series of jogs in a loop, I had the controller stop early 4 times out of 4 with the e-stop pin enabled, and not at all with the e-stop disabled.

It sounds like the quick solution to this is to enable debounce filtering on the input signal. I consider it absolutely necessary to have the E-stop enabled; until I get a chance to try and figure out how to rewire the machine, the E-stop will only stop the spindle (not the axes moving) by itself.

I've tried to piece together the correct code to enter into my custom.hal. Please let me know if there is an error somewhere within this:
# Load debounce
loadrt debounce cfg=1

# Add debounce to thread
add debounce.0 base-thread

#Unlink e-stop pin
delsig estop-ext

#Assign input and output to debounce
net estop-incoming parport.0.pin-10-in => debounce.0.0.in
net estop-filtered debounce.0.0.out => iocontrol.0.emc-enable-in

# Activate the debounce
sept debounce.0.delay 25 

Oh, and just as a point of thoroughness, the memtest86 showed zero errors while it was running.

Thanks for all your help on this so far guys, you've kept me from pulling out my remaining hair.
The administrator has disabled public write access.

Re:Getting 'Cannot Unhome While Moving' Errors Withou 21 Jun 2012 02:08 #21167

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4139
  • Thank you received: 141
  • Karma: 130
JRhode wrote:
#Unlink e-stop pin
delsig estop-ext
You need that if you are putting the new stuff in the custom.hal, otherwise not. Doing it in the custom hal makes sense if you expect to be using stepconf again.
# Activate the debounce
sept debounce.0.delay 25 
I guess this is a typo here, and not in the actual HAL?
Last Edit: 21 Jun 2012 02:09 by andypugh.
The administrator has disabled public write access.

Re:Getting 'Cannot Unhome While Moving' Errors Withou 21 Jun 2012 07:04 #21177

  • JRhode
  • JRhode's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
andypugh wrote:
# Activate the debounce
sept debounce.0.delay 25 
I guess this is a typo here, and not in the actual HAL?

Ah yes, should be setp... Haven't put it in the HAL yet, glad to catch it here.
The administrator has disabled public write access.
Time to create page: 0.832 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.