Homing

More
02 Nov 2022 14:20 #255787 by __Tom
Homing was created by __Tom
Hello I‘m new to LinuxCnc and hope I can find some help her. I have a Mesa 7i76e running on my machine all axis working perfectly so far.My issue I have is the homing: The behave I have:I start the homing run on one of my axis in my case YY starts correctly to move in (–) direction and hits the home switchon hitting the switch: G53 is set to 0 and the moving direction changes to (+) and now it never stops again, neither the home switch is triggered again. What I expect from my setup:Y starts in (-) direction hits the home switch, moves a bit back in (+) and tries to hit the home switch again with lower speed to achieve more accuracy. Then it should move the Home Pos with max. speed. I really hope one of you can see what I have done wrong here in my setup and can come up with an advice. My INI settings:#******************************************[AXIS_Y]MAX_VELOCITY = 58.3333333333MAX_ACCELERATION = 50.0MIN_LIMIT = -0.0MAX_LIMIT = 50.0 [JOINT_1]TYPE = LINEARHOME = 1.0FERROR = 10.0MIN_FERROR = 1.0MAX_VELOCITY = 58.3333333333MAX_ACCELERATION = 50.0# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.STEPGEN_MAXVEL = 72.92STEPGEN_MAXACCEL = 62.50P = 1000.0I = 0.0D = 0.0FF0 = 0.0FF1 = 1.0FF2 = 0.0BIAS = 0.0DEADBAND = 0.0MAX_OUTPUT = 0.0# these are in nanosecondsDIRSETUP = 10000DIRHOLD = 10000STEPLEN = 5000STEPSPACE = 5000STEP_SCALE = 640.0MIN_LIMIT = -0.0MAX_LIMIT = 50.0HOME_OFFSET = 3.000000HOME_SEARCH_VEL = -3.316667HOME_LATCH_VEL = -0.833333HOME_FINAL_VEL = 0.500000HOME_USE_INDEX = NOHOME_SEQUENCE = 2#****************************************** A part of the HAL: Input 08 is used for the home switches # external input signals  # --- ALL-HOME ---net all-home <= [HMOT](CARD0).7i76.0.0.input-08-not #*******************# AXIS X JOINT 0#******************* setp pid.x.Pgain [JOINT_0]Psetp pid.x.Igain [JOINT_0]Isetp pid.x.Dgain [JOINT_0]Dsetp pid.x.bias [JOINT_0]BIASsetp pid.x.FF0 [JOINT_0]FF0setp pid.x.FF1 [JOINT_0]FF1setp pid.x.FF2 [JOINT_0]FF2setp pid.x.deadband [JOINT_0]DEADBANDsetp pid.x.maxoutput [JOINT_0]MAX_OUTPUTsetp pid.x.error-previous-target true# This setting is to limit bogus stepgen# velocity corrections caused by position# feedback sample time jitter.setp pid.x.maxerror 0.012700 net x-index-enable <=> pid.x.index-enablenet x-enable => pid.x.enablenet x-pos-cmd => pid.x.commandnet x-pos-fb => pid.x.feedbacknet x-output <= pid.x.output # Step Gen signals/setup setp [HMOT](CARD0).stepgen.02.dirsetup [JOINT_0]DIRSETUPsetp [HMOT](CARD0).stepgen.02.dirhold [JOINT_0]DIRHOLDsetp [HMOT](CARD0).stepgen.02.steplen [JOINT_0]STEPLENsetp [HMOT](CARD0).stepgen.02.stepspace [JOINT_0]STEPSPACEsetp [HMOT](CARD0).stepgen.02.position-scale [JOINT_0]STEP_SCALEsetp [HMOT](CARD0).stepgen.02.step_type 0setp [HMOT](CARD0).stepgen.02.control-type 1setp [HMOT](CARD0).stepgen.02.maxaccel [JOINT_0]STEPGEN_MAXACCELsetp [HMOT](CARD0).stepgen.02.maxvel [JOINT_0]STEPGEN_MAXVEL # ---closedloop stepper signals--- net x-pos-cmd <= joint.0.motor-pos-cmdnet x-vel-cmd <= joint.0.vel-cmdnet x-output <= [HMOT](CARD0).stepgen.02.velocity-cmdnet x-pos-fb <= [HMOT](CARD0).stepgen.02.position-fbnet x-pos-fb => joint.0.motor-pos-fbnet x-enable <= joint.0.amp-enable-outnet x-enable => [HMOT](CARD0).stepgen.02.enable # ---setup home / limit switch signals--- net all-home => joint.0.home-sw-innet x-neg-limit => joint.0.neg-lim-sw-innet x-pos-limit => joint.0.pos-lim-sw-in

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

More
02 Nov 2022 14:34 #255790 by tommylight
Replied by tommylight on topic Homing
From a quick glance, home_offset needs to be -2 to -5 for a metric machine, just enough to stop after releasing the switch.
You have it at +50, so it will try to move another 50mm in the wrong direction.

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

More
02 Nov 2022 14:37 #255792 by __Tom
Replied by __Tom on topic Homing
Thanks a lot for your quick replay I gona try it and let you know

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

More
02 Nov 2022 14:57 #255794 by __Tom
Replied by __Tom on topic Homing
Hello I'm afraid, I did what you proposed --> without success. the (MAX_LIMIT = 50) the HOME_OFFSET was 3 I changed it -3

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

More
02 Nov 2022 16:40 #255796 by tommylight
Replied by tommylight on topic Homing
Is this a single or dual axis machine on Y or X ?
Attach the hal and ini files, no copy/paste as the forum editor butchers the content.

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

More
02 Nov 2022 20:47 #255802 by chris@cnc
Replied by chris@cnc on topic Homing
Hi Tom,
welcome here. One language is enough.
Hard to see in this post.
The manual is here. linuxcnc.org/docs/stable/html/config/ini-homing.html
If i understand right.
  • YY is gantry type
  • Limit switch negative and home switch one piece
  • Homing start
  • Hit negative limit / home switch 
  • Machine start in positive direction to +3 but doesn't' stop is it right?
Could you attach the raw *.ini and *.hal file?

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

More
03 Nov 2022 06:10 #255820 by __Tom
Replied by __Tom on topic Homing
Hello Chris,
thank you for your replay.
Y has just on stepper. Yes I have just one switch per axis.
After starting it moves in (-) direction it stops at the switch sets G53 to 0 and starts to move in (+) direction and never stops.
the travel length should be from 0 to 1050mm in the end. It should never goes in - on G53 system.
 Great that you have a look.

 
Attachments:

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

More
03 Nov 2022 06:15 #255821 by __Tom
Replied by __Tom on topic Homing
Hello Tommylight,
at the end the machine becomes 3 Axis XYZ at the moment I have just two ready. And I try to home just the Y for now.
I found the upload button for the future.

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

More
03 Nov 2022 09:17 #255825 by Clive S
Replied by Clive S on topic Homing
Tom
First can you confirm you only have one motor on Y (as in the first post you have YY which indicates a gantry machine)
.
From your ini file:-
HOME_OFFSET = 3.000000
HOME_SEARCH_VEL = -3.316667 ## (The -ve sign indicates the direction of travel if this is travelling in the wrong direction then you have to remove the - sign)
.
HOME_LATCH_VEL = -0.833333
## The same applies above so you might have to remove the - sign
.
HOME_FINAL_VEL = 0.500000

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

More
03 Nov 2022 12:00 #255837 by __Tom
Replied by __Tom on topic Homing
Hello Clive
thanks for your replay. YY shold by Y. Y sorry for misleading you. The - and + I checked allredy without succ.

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

Time to create page: 0.191 seconds
Powered by Kunena Forum