• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Error in auto bed leveling

Scheduled Pinned Locked Moved
General Discussion
2
7
1.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    ABDELRHMAN SAMIR ABOGABAL
    last edited by 2 Jan 2017, 09:04

    when i used this G30 command in auto bed leveling the z go down and don not stop when the switch trigeer /?????
    what is the reason and how can i solve it
    M561 ; clear any bed transform, otherwise homing may be at the wrong height
    G90
    G1 Z5 F350
    G1 X-15 Y-15 F2000 ; move head
    G1 Z-200 S1 F100 ; move Z down until the switch triggers
    G30 P0 ; probe
    G1 Z5 F350 ; rise head
    G1 X-170 Y-15 Z2 F2000 ;
    G1 Z-200 S1 F100 ; move Z down until the switch triggers
    G30 P1 ;
    G1 Z5 F350;
    G1 X-170 Y-170 Z2 F2000 ;
    G1 Z-200 S1 F100 ; move Z down until the switch triggers
    G30 P2 ;
    G1 Z5 F350;
    G1 X-15 Y-170 Z2 F2000 ;
    G1 Z-200 S1 F100 ; move Z down until the switch triggers
    G30 P3 ; probe and calibrate with 4 parameters (as there is 4 points)

    G1 Z10 F350 ;

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 2 Jan 2017, 09:24

      1. Does the G30 command work when you use it outside the bed.g file?

      2. How do you know that the switch is triggering?

      3. Are you certain that you have the switch connected correctly to the Duet? Does the M119 command indicate correctly whether the switch is triggered or not?

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • undefined
        ABDELRHMAN SAMIR ABOGABAL
        last edited by 2 Jan 2017, 09:34

        1- G30 WORK BUT IT DO NOT STOP WHEN THE SWITCH IS TRIGGERED
        2-THE LED IN THE Z PROB IS BEING ON
        3- THE SWITCH IS correctly WHEN I AM DOING AUTO HOME IT WORKS CORRECTLY.

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 2 Jan 2017, 13:19

          The problem is with this combination of lines:

          G1 Z-200 S1 F100 ; move Z down until the switch triggers
          G30 P0 ; probe

          You should probe from a sufficient Z height, say 5mm. You should not have any homing moves (i.e. G1 moves with S parameter) in bed.g. Try this:

          M561 ; clear any bed transform, otherwise homing may be at the wrong height
          G28 ; home all
          G1 Z5
          G30 P0 X-15 Y-15 Z-99999 ; probe
          G30 P1 X-170 Y-15 Z-99999
          G30 P2 X-170 Y-170 Z-99999
          G30 P3 X-15 Y-170 Z-99999 S0 ; probe and calibrate with 4 parameters (as there is 4 points)
          G1 Z10 F350 ;

          However, I am puzzled that all your X and Y coordinates appear to be negative.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • undefined
            ABDELRHMAN SAMIR ABOGABAL
            last edited by 3 Jan 2017, 13:57

            can i ask question in g30 the z probe when it being sense it send 0v to stp bit in z limit switch
            0v with G30 can stop the moving or not can explain this point please

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 3 Jan 2017, 14:43

              If the output is 0V when the probe is triggered, it is active low. You need to include the I1 parameter on your M558 command to tell the firmware that, assuming you are using firmware 1.16 or later.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • undefined
                ABDELRHMAN SAMIR ABOGABAL
                last edited by 3 Jan 2017, 15:16

                i used this code in the bed.g
                G1 Z-200 S1 F100 ; move Z down until the switch triggers
                G30 P0 ; probe

                You should probe from a sufficient Z height, say 5mm. You should not have any homing moves (i.e. G1 moves with S parameter) in bed.g. Try this:

                M561 ; clear any bed transform, otherwise homing may be at the wrong height
                G28 ; home all
                G1 Z5 ;
                G30 P0 X15 Y15 Z-99999 ; probe
                G30 P1 X160 Y15 Z-99999 ;
                G30 P2 X160 Y160 Z-99999 ;
                G30 P3 X15 Y160 Z-99999 S0 ; probe and calibrate with 4 parameters (as there is 4 points)
                G1 Z10 F350 ;

                and i used mechanical limit swutch in z axis
                the z axis in all points still down (the limit is triggered and do not stop down ) until the z postion bcome 0 and become up again

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA