Endtops Low and High


  • administrators

    @Synapsis:

    Righ now I have the X max end stop on the left X carrage and the Y in the front left.
    I'd rather have it like most people so when I ask questions I don't have to think bacwqards.

    So zero wouls be from top would be botoom left and moving away fro, the motor would be Y+
    Moving right X+

    That's the conventional arrangement. So switch the S parameter between 0 and 1 as needed in your M569 P0 and M569 P1 commands so that +X is to the right and +Y is towards the back.

    @Synapsis:

    if so then end stops need to be upper left for Y and right for X?

    The endstop switches can be at the min or max end of each axis. You can have one and the min end and the other at the max end if you wish. You just need to tell the firmware which end they are in the M574 command in config.g.



  • Moved the the endstops the thing is I have M574 Y1 X1 S1 ; Set active high endstops also tried M574 Y2 X2 S1 and when I check Endstop hit is no for both
    When I move the carrage and reach the endstop I see on the board the led go out and Endstop hit chages to yes. the wires are correct checked them so endstop Y when triggred turn out the Y led on the board.

    something simply which i can't see.



  • Checked the output when not triggered ther is 0.34v while when triggred its 3.23v is that ok?
    I would think so seeing the board detects the change.


  • administrators

    @Synapsis:

    Moved the the endstops the thing is I have M574 Y1 X1 S1 ; Set active high endstops also tried M574 Y2 X2 S1 and when I check Endstop hit is no for both
    When I move the carrage and reach the endstop I see on the board the led go out and Endstop hit chages to yes. the wires are correct checked them so endstop Y when triggred turn out the Y led on the board.

    something simply which i can't see.

    S1 is correct in the M574 command. Please clarify what the problem is.



  • Well maybe I 'm looking for an answer where there is none.
    Doing a test moving the X to its max I trigger the endstop if I keep pressing an advance in the X axis it will keep moving, is this normal or should moviment exceeding the stop be impossible.
    Or is it just used for homing the X axis or Y axis?

    I have what I think is correct moviment
    G91
    G1 S2 X10 F3000
    head moves diagonally in the +X and +Y directions
    G91
    G1 S2 Y10 F3000
    head moves diagonally in the +X and -Y directions


  • administrators

    Once you have homed an axis, the axis limits that you have set using M208 commands in config.g will be applied. Until you home the axis, limits are not applied. The endstops switches terminate homing moves only.



  • To elaborate on what David has said, you need to have an S1 parameter in the G1 move to check if an end stop has been hit. So something like G1 X-200 S1 will move the X axis 100mm towards the end stop, but stop if it sees the switch trigger. If you haven't already homed the printer, then G1 X-200 (without the S1 parameter) will move the X axis 200 towards the ends stop but it won't stop when the switch triggers. If you have homed the printer, then G1 X-200 will stop when X=0. That's why it's always a good idea to home the printer before you do anything else. Once homed (using the S1 parameter) then the zero position will be established and the maximum travel limit will be determined by whatever value you put in M208 for that axis.
    .



  • Thanks so much for the answers, if you look at my avatar you can see the setup I have.

    Thanks David "The endstops switches terminate homing moves only." this answers a question that was bugging me.
    Thanks Ian you also cleard up a couple of questions.

    Now I tried moving G1 X-400 S1 (I have 400x400mm) now here is where things got of track instead of going towards the endstop it went in the other direction
    using G1 X410 S1 it moved towards the endstop and stopped not going the full 410 so I would think the endstop is working.
    home Y the same why now the head is in the upper right (back) corner looking from Top and will not move back towards the front because it thinks that it home X Y
    it only moves towards the back and to the right just a couple os step because then it hits the end.
    So something here is backwards.

    Here is my config
    M667 S1
    M569 P0 S1
    M569 P1 S1
    M569 P2 S1
    M574 X1 Y1 Z2 S1 Here for sure something is wrong
    M92 X200 Y200 Z200
    M208 X400 Y400 Z400
    M208 X0 Y-32 Z-1 S1

    will play around to see if i get it to move correctly, hey I'm getting there


  • administrators

    Have you checked that the axes are moving in the correct direction? Send G91 to use relative coordinates. Then G1 X10 should move the head 10mm in the +X direction , and G1 X-10 should move the head 10mm in the -X direction. Check the Y axis is the same way. If any axes are moving the wrong way, adjust the M569 P0 and P1 commands to get them right.



  • Tried G1 then G1 X10 the head moves from left to right G1 X-10 moves the head from right to left
    Same for G1 Y10 moves from front to back G1 X-10 back to front. Starting from the left bottom.
    back
    Y
    |
    |
    | Top View
    |
    |
    0–-------------------- X
    front

    left motor was supposed to be Y while right X but had to switch them to get the correct movement when following the giude in
    Configuring RepRapFirmware for a CoreXY printer


  • administrators

    Good, your axes are moving in the correct directions. Now set up your M574 command to specify whether each endstop switch is at the low (minimum) end or the high (maximum) end, set up the M208 commands to specify the upper and lower limits of each axis, and set up the homing files as described at https://duet3d.com/wiki/Configuring_RepRapFirmware_for_a_Cartesian_printer#Homing_files and https://duet3d.com/wiki/Configuring_RepRapFirmware_for_a_CoreXY_printer#Homing_files. You can use the online configuration tool to generate these commands if you wish.



  • Thanks David will do as soon as I get home. Wife made me take here to the beach wont be back until 02/01/18 ;(

    Well I can finally read up some documentation.



  • Finally back home tried setting up starts to act almost correctly but I need to know in Web Control Head Moviment
    does a +1 = 1 mm? when I do home X and Y when I go back to zero I see the position is 120 x 120 and not 0 x 0.
    I do have a 400mm + bed. Does i8t have something to do with the steppers settings?


  • administrators

    Yes +1 should move the head 1mm in the +x direction, +10 should move it 10mm in the +X direction, and so on. If it moves the wrong amount, check the steps/mm settings, which are defined in the M92 command in config.g.



  • Hi David thanks and Yes I was reading the M92 command but how do I calculate the steps, right now I have 200 for all three.
    So I know its wrong but rather than trial and error if I know how it would be better- 🙂
    I have 0.9 stepper motors.


  • administrators

    1. How many teeth are there on the stepper motors pulleys? Are they GT2 pulleys and belts?

    2. Is your G92 command before or after any M350 command that you have in config.g? if it is after, what M350 parameters are you using?

    3. Are the motors 0.9deg or 1.8deg?



  • @dc42:

    1. How many teeth are there on the stepper motors pulleys? Are they GT2 pulleys and belts?
    Yes have GT2 20 tooth pulleys and belts

    2. Is your G92 command before or after any M350 command that you have in config.g? if it is after, what M350 parameters are you using?
    I have a M92 X150 Y150 Z150 ; Set axis steps/mm was 200 I changed it to 150 but still not correct. I can not find a G92 command
    M350 X16 Y16 Z16 E16 I1 ; Set 16x microstepping with interpolation

    3. Are the motors 0.9deg or 1.8deg?

    0.9deg stepper motors


  • administrators

    Sorry, I meant M92 not G92. For 20 tooth GT2 pulleys and 0.9deg motors, steps/mm should be 160 on X and Y.



  • Thanks Davis will change now and try it-


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.