cannot unhome while moving

More
19 Apr 2011 17:12 #9090 by Mike_Eitel
Hi good evening

Sorry to ask but what could be the reason for :

"cannot unhome while moving, joint 0" error message

As soon as I press the swith, this message apears ??

Any idea what I do wrong??

THX Mike

HAL
net both-home-x <= debounce.0.1.in parport.0.pin-13-in-not #****
#net both-home-x-not <= debounce.0.1.in parport.0.pin-13-in
net both-x debounce.0.1.out =>

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 21000
setp stepgen.0.dirsetup 18000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable
net both-x => axis.0.neg-lim-sw-in
net both-x => axis.0.pos-lim-sw-in
net both-home-x => axis.0.home-sw-in

INI
[AXIS_0]
TYPE = LINEAR
MAX_VELOCITY = 3.2
MAX_ACCELERATION = 24.0
STEPGEN_MAXACCEL = 48
SCALE = 640
BACKLASH = 0.2
FERROR = 1
MIN_FERROR = 0.25
MIN_LIMIT = 0 # -225.0
MAX_LIMIT = 250 # 225.0
HOME = 3.0 # 350
HOME_OFFSET = 20.0 # 450
HOME_SEARCH_VEL = 2.0
HOME_LATCH_VEL = 0.5
HOME_FINAL_VEL= 1.0
HOME_IGNORE_LIMITS= YES
HOME_IS_SHARED= YES
HOME_SEQUENCE= 0
#VOLATILE_HOME= 1
USEINDEX= FALSE

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

More
19 Apr 2011 17:19 #9092 by BigJohnT
Which switch are you pressing?

John

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

More
19 Apr 2011 17:23 #9093 by Mike_Eitel
Hi John
the correct one for x

Y does no harm, but with the debounce delay a limit error, as it shoud be.

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

More
19 Apr 2011 17:28 #9095 by BigJohnT
The correct one for what? Please the name of the button...

John

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

More
19 Apr 2011 17:34 - 19 Apr 2011 17:39 #9098 by Mike_Eitel
Maybe I missunderfstood you.
To start I use the normal axis home button, that in my case seams to start all axes, corretly X as first

I press on a switch comig in via net both-home-x <= debounce.0.1.in parport.0.pin-13-in-not
This signal works fine.
After a debounce it is used some time later ( for testing 3000ms ) it generates for that axis also a limit sitch emergency halt.

I forgot:
8.04 with 2.4.6
Last edit: 19 Apr 2011 17:39 by Mike_Eitel. Reason: versions

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

More
19 Apr 2011 18:10 #9100 by BigJohnT
Is the first line the actual line? Comments are not allowed on the same line as commands in HAL.
net both-home-x <= debounce.0.1.in parport.0.pin-13-in-not #****
                                                                                                             ^^^^^

I thought your were pressing a button in Axis not one connected to parallel port pin 13... so you have a limit switch connected to parallel port pin 13. And your using debounce on the switch. I don't see where the can't unhome would come from...

John

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

More
19 Apr 2011 18:25 #9104 by Mike_Eitel
Taking away the comments... doesn't change anithing, but as fare as I remarked, commenting works mostly.
And I see no reason for that message neither.

Do you know what that message means in detail, and where I could find it. ( Als a google search didn't help... before I tied it via this forum )



SHIT its connected to my EMERGENCY BUTTON
Stupid me chnaged config only patually

Sorry for the asking

Mike

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

More
19 Apr 2011 18:44 #9109 by BigJohnT
I'm just glad you sorted it out. :)

John

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

Time to create page: 0.079 seconds
Powered by Kunena Forum