Z max limit input not working

Home Forums TinyG TinyG Support Z max limit input not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11824
    Boonstra
    Member

    I hope you can help me solve this issue im having.

    If got al limit switches working except the Zmax.
    As soon as it hits the switch it freezes, it doesnt back off as on the other axis.


    feeder> G28.2 Z0
    {“r”:{},”f”:[1,0,9]}
    {“qr”:47}
    {“qr”:45}
    {“qr”:46}
    {“sr”:{“stat”:9,”vel”:200,”feed”:200,”coor”:0,”momo”:1,”dist”:1,”posz”:-1.04339,”mpoz”:-1.04339}}
    {“er”:{“fb”:101.03,”st”:203,”msg”:”Limit hit [$clear to reset, $lim=0 to override] – input 6″}}
    {“sr”:{“vel”:0,”posz”:5.5,”mpoz”:5.5}}
    >

    These are my g2core settings

    #define Z_AXIS_MODE AXIS_STANDARD
    #define Z_VELOCITY_MAX 600
    #define Z_FEEDRATE_MAX Z_VELOCITY_MAX
    #define Z_TRAVEL_MAX 15
    #define Z_TRAVEL_MIN 0
    #define Z_JERK_MAX JERK_MAX
    #define Z_JERK_HIGH_SPEED Z_JERK_MAX
    #define Z_HOMING_INPUT 1
    #define Z_HOMING_DIRECTION 1
    #define Z_SEARCH_VELOCITY 200
    #define Z_LATCH_VELOCITY 50
    #define Z_LATCH_BACKOFF -2
    #define Z_ZERO_BACKOFF -1

    • This topic was modified 4 years, 7 months ago by Boonstra.
    #11826
    cmcgrath5035
    Moderator

    Hmmm, have not played much with G2 homing

    See https://github.com/synthetos/g2/wiki/Digital-IO#digital-inputs-during-homing

    What is the value in Parameter {zhi: ?

    Behavior implies that the switch being hit is still acting as a limit, not homing

    #11827
    cmcgrath5035
    Moderator

    I sort of stumbled on this rather old thread which may be of interest to you
    https://synthetos.comtopics/how-to-configure-himing-switches-in-tinyg2/#post-8990

    A quick look sort of confirms to me that, at least 4.5 years ago, your
    #define Z_HOMING_INPUT 1
    above should be
    #define Z_HOMING_INPUT 6
    maybe?

    From the “er” message, it is input 6 that is acting like a limit

    #11829
    Boonstra
    Member

    Thx for the hint,

    I was think to digital cause i used to set the homing inputs to 0 or 1 for easy axis.
    i thought that the input was defined somewhere else and that i only had to enable 1 or disable it 0.

    with assigning the correct input to the axis its working like a charm.

    next hurdle would be squaring the gantry as it has a motor on either side of it.

    my setup is based opun a ooznest OX with 2 stepper drivers for the Y axis and on either side a proximity sensor.
    i ant to use these sensors to square out the gantry because the repeataibilty of these sensors is very accurate.

    but i dont see it’s implemented yet but a work around by diasbeling 1 motor to home the second one. One huge disatvantage is that the motor is free to move while it needs to be fixed. any idea on this?

    #11830
    cmcgrath5035
    Moderator

    Here is a link to an old discussion on the topic
    https://synthetos.comtopics/is-dual-gantry-homing-supported/#post-10025

    Here is a discussion on G2core
    https://github.com/synthetos/g2/issues/359

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.