1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Solved Y axis only moving in one direction

Discussion in 'Troubleshooting' started by Tom Finzel, Jan 30, 2017.

Thread Status:
Not open for further replies.
  1. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8
    Hey Guys,

    The heated bed connector on my RAMPS board for my R1 Plus fried so I replaced it and now the Y axis only moves in one direction.

    I tried reseating the Y endstop several times but no joy.

    I checked the Y endstop switch and it is working, closed when not engaged and opened when pressed.

    Here is a snippet from the terminal.

    ->G1 Y1 F3000

    <-ok
    ->G90

    <-ok
    ->M105

    <-ok T:23.1 /0.0 B:27.7 /0.0 T0:23.1 /0.0 @:0 B@:0
    ->G91

    <-ok
    ->G1 Y-1 F3000

    <-ok
    <-echo:endstops hit: Y:78.11
    ->G90

    Any ideas?

    Thanks!
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Make sure the connector for the endstop is on the right pins on the RAMPS
     
    Tom Finzel likes this.
  3. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8
    Looks like they are connected correctly. I reconnected all the wiring and same results.

    Thanks for your help Mark!

    Edit: Not exactly the same results in the terminal.

    ->M105

    <-ok T:22.3 /0.0 B:24.5 /0.0 T0:22.3 /0.0 @:0 B@:0
    ->G91

    <-ok
    ->G1 Y1 F3000

    <-ok
    ->G90

    <-ok
    ->M105

    <-ok T:22.3 /0.0 B:24.5 /0.0 T0:22.3 /0.0 @:0 B@:0
    ->M105

    <-ok T:22.2 /0.0 B:24.4 /0.0 T0:22.2 /0.0 @:0 B@:0
    ->G91

    <-ok
    ->G1 Y-1 F3000

    <-ok
    ->G90

    <-ok
    ->M105

    <-ok T:22.4 /0.0 B:24.4 /0.0 T0:22.4 /0.0 @:0 B@:0
    ->M105

    <-ok T:22.3 /0.0 B:24.5 /0.0 T0:22.3 /0.0 @:0 B@:0
    ->M105

    <-ok T:22.3 /0.0 B:24.5 /0.0 T0:22.3 /0.0 @:0 B@:0
    ->M105


    IMG_20170130_141620.jpg
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That looks correct.
    If you have a meter disconnect it from the ramps board and read back to the switch and see if opening/closing it actually works.

    If not, the problem is the switch or wires.
    If it does then as odd as that is, it must be the RAMPS.
     
  5. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8

    I already tested the endstop switch with my meter and it works.

    RAMPS Huh?
     
  6. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Looking at your code snippet:

    <-ok
    <-echo:endstops hit: Y:78.11

    This happens when you try to move away from Y home, I assume it moves not far before this happens?

    If so then yes, if the wires and switch are good then that leaves the RAMPS.
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    The way this printer works the home switches are the only "known" position.
    Everything else is calculated from there and if the RAMPS sees the switch trigger (or thinks it did) then you are HOME and the arduino is done moving that axis.
     
  8. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8

    After I rewired the RAMPS the endstop message went away. See new snippet above.

    Could it be the step driver?

    Thanks again dude!

    Any Y - and Y + both cause the bed to move towards the rear away from the front.
     
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    It has to be the endstop.

    Manually home it (so the Y switch is closed/triggered) then to this in a gcode terminal:

    M119:
     
  10. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That will tell you what the Arduino thinks the endstops are reading
     
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    <-x_min: TRIGGERED
    <-y_min: TRIGGERED
    <-z_min: TRIGGERED


    That is HOME.

    Then move it off home and try it again
     
  12. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8

    >M119

    <-Reporting endstop status
    <-x_min: TRIGGERED
    <-y_min: TRIGGERED
    <-z_min: TRIGGERED
    <-ok
    ->M105

    Y not homed +

    ->M119

    <-Reporting endstop status
    <-x_min: TRIGGERED
    <-y_min: open
    <-z_min: TRIGGERED
    <-ok
    ->M105
     
  13. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That looks like it is working correctly.

    Are you sure something is not mechanically blocking it?

    The Arduino is seeing the switch work as expected...
     
  14. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8

    I pretty sure nothing is blocking the y limit switch.,I can see it and hear it engage and disengage. I've ordered a ne ramps board from Amazon and I'll rewire it per the forum thread.,

    Thanks again!
     
  15. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Well, I am confused...
    The Arduino sees the switch open and close so that is not likely the RAMPS.
    If it will never move in the home direction via the stepper motor it could be a bad stepper...
    (or perhaps the stepper driver, even though I have never seen one fail that way)
     
    #15 mark tomlinson, Jan 30, 2017
    Last edited: Jan 30, 2017
  16. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8
    When I home the y axis it goes to home and just grinds away and ignores the limit switch. I had to kill the power.

    I have spare stepper motors and I could swap the stepper drivers around to see if that fixes the y axis.

    What do you think?
     
  17. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Make jolly well certain that when it is grinding away that it is actually on the home switch. Anything (like a wire) that gets in the way would be an issue.

    it is odd because when you homed it for the test it was clearly showing triggered (which is HOME) so if it is still driving the Y axis something else is wrong (like the HOME switch logic for the Y is inverted in the firmware or something).
     
  18. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8
    No, nothing is blocking the y home switch as I can hear it click when I manually home it.

    I've never even looked at the firmware so no changes were made to it.

    I hooked up the X axis stepper motor to the Y axis on the RAMPS board and it exhibits the same behavior as the y stepper motor on the y axis. Only moves in one direction.

    Stepper driver or RAMPS??.
     
  19. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Yes, I don't see what else it can be if the wiring, mechanical bits and firmware are vetted.
    Assuming this worked at one point (to rule out any firmware issues).

    Since this is an R1+ you either do the conversion of the connections to a generic RAMPS or buy a replacement from Robo.
    The generic ones are a lot cheaper and they will always be available...
     
  20. Tom Finzel

    Tom Finzel Member

    Joined:
    Jan 10, 2016
    Messages:
    35
    Likes Received:
    8
    Yes, it was printing great yesterday on a cold bed using PLA.

    Swapped the connector for the heated bed today and it has this issue.

    The generic RAMPS board I ordered from Amazon comes with the stepper drivers so I'll be covered.

    When I get the new board on Wednesday I might swap in one if the new stepper drivers to see if that fixes it. If so, I'll swap out the Robo board at a future date.

    Any issues mixing the new stepper driver with the old ones?
     
    mark tomlinson likes this.
Thread Status:
Not open for further replies.

Share This Page