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

[Problem] Homing Z works with Macro but not with Home Buttons

Scheduled Pinned Locked Moved Solved
Duet Hardware and wiring
z probe homez homing npn sensor macro
5
15
2.3k
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
    Tommy_Fr
    last edited by 11 Dec 2018, 11:53

    Hi,

    I use an inductive Z probe sensor (NPN) which seems to work with the specific connection (Z_Probe_In, GND, 12V VIN) as displayed on my web interface (I do not have Panel Due).

    When not trigerred, Z probe value is 0. When trigerred, it is 1000 (and is set as the trigerring value).

    When I run the macro Test_01 for homing, the Z homing movement is stopped when the probe is close enough with a metal part to trigger itself. So it seems to work fine.

    But when I use the home Z command button on web interface (after X and Y homing were done), the movement still goes on when and after the probe is trigerred (trigerring effective on web interface).
    It happens too with Home All command button

    I read in the macro file a G1 is used (with S1 parameter) for testing, whereas in homez and homeall it is G30 which is used.

    0_1544528348045_config.g
    I set M558 like that "P5 I1 H5 F500 T2000"
    At the end of config.g I added a "M564 H0" to do not have a problem with "not enough homed axis".

    For information, I used the configurator from https://configurator.reprapfirmware.org/ to make the files for a cartesian printer.

    Here are the homing files I have currently:
    1_1544528728527_homeall.g 0_1544528728526_homez.g

    I did not touch macro files.

    Can you help me?

    Printer: FLSun I3 C_Plus
    Board: Duet Wifi 1.04

    undefined 1 Reply Last reply 11 Dec 2018, 13:09 Reply Quote 0
    • undefined
      deckingman @Tommy_Fr
      last edited by deckingman 12 Nov 2018, 13:09 11 Dec 2018, 13:09

      @tommy_fr You can use whatever commands you like in homez and homeall. You don't have to use G30. If your test macro works fine, then just use those commands in homez and homeall.

      Ian
      https://somei3deas.wordpress.com/
      https://www.youtube.com/@deckingman

      1 Reply Last reply Reply Quote 0
      • undefined
        Phaedrux Moderator
        last edited by 11 Dec 2018, 19:14

        Can you post the contents of your test homing macro?

        You can do as Deckingman says and just replace your homing files with the contents of that test macro, but that won't help you if you ever want to use G30 elsewhere, say for mesh grid bed leveling, etc.

        You may want to review the information here: https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • undefined
          Tommy_Fr
          last edited by 12 Dec 2018, 16:06

          Hi,

          Thank you both for your answers.
          I replaced homez.g and homeall.g Z probe command G30 with Macro_01 file command G1 S1 Z3200 F9000 (I just deleted Xnnnn Ynnnn). It now works.

          @phaedrux said in [Problem] Homing Z works with Macro but not with Home Buttons:

          Can you post the contents of your test homing macro?

          Here it is:
          0_1544630685917_01-Test_IR_PD_Homing.g

          Printer: FLSun I3 C_Plus
          Board: Duet Wifi 1.04

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by 13 Dec 2018, 10:25

            Which firmware version?

            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
              Tommy_Fr
              last edited by 13 Dec 2018, 18:43

              Firmware Electronics: Duet WiFi 1.04 (bought from one of the official Duet suppliers)
              Firmware Version: 2.01(RTOS) (2018-07-26b2)
              WiFi Server Version: 1.21
              Web Interface Version: 1.21.2-dc42

              Printer: FLSun I3 C_Plus
              Board: Duet Wifi 1.04

              1 Reply Last reply Reply Quote 0
              • undefined
                kazolar
                last edited by 13 Dec 2018, 18:47

                I have a fairly complex home z operation, so I put all of it in homez.g and then I call that from homeall.g -- that's simple -- in fact in my homeall.g I simply have
                M280 P5 S160
                G91
                G1 Z4 F200 S2
                M98 Phomeaxis.g
                G90
                M98 Phomez.g

                so I can make whatever adjustments I need in each script for doing homing

                1 Reply Last reply Reply Quote 0
                • undefined
                  Tommy_Fr
                  last edited by 14 Dec 2018, 12:37

                  I noticed what you said @kazolar .

                  I fixed toward direction for my Z axis to be rightful and easier to understand. It now goes in right direction (forward goes up, with Z increasing).

                  When I use G30, G30 S-1 or G30 S-2, movement is in the wrong direction (so upward instead of downward); before the toward change for my Z axis it was going downward.
                  So G30 direction and stop while probe is triggering does not work.

                  Printer: FLSun I3 C_Plus
                  Board: Duet Wifi 1.04

                  undefined 1 Reply Last reply 15 Dec 2018, 15:12 Reply Quote 0
                  • undefined
                    dc42 administrators @Tommy_Fr
                    last edited by 15 Dec 2018, 15:12

                    @tommy_fr said in [Problem] Homing Z works with Macro but not with Home Buttons:

                    I fixed toward direction for my Z axis to be rightful and easier to understand. It now goes in right direction (forward goes up, with Z increasing).

                    Increasing positive Z must be the nozzle moving upwards or the bed moving downwards, so that the Z coordinate is the height of the nozzle above the bed.

                    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
                      Tommy_Fr
                      last edited by 15 Dec 2018, 16:23

                      Yes, it was what I meant. Sorry if my english was incorrect. The nozzle is moving upwards with increasing positive Z.

                      Printer: FLSun I3 C_Plus
                      Board: Duet Wifi 1.04

                      undefined 1 Reply Last reply 15 Dec 2018, 17:55 Reply Quote 0
                      • undefined
                        dc42 administrators @Tommy_Fr
                        last edited by dc42 15 Dec 2018, 17:55

                        @tommy_fr said in [Problem] Homing Z works with Macro but not with Home Buttons:

                        Yes, it was what I meant. Sorry if my english was incorrect. The nozzle is moving upwards with increasing positive Z.

                        In that case, I don't understand how G30 commands can be moving in the wrong direction; except that some variations of G30 command move the nozzle t the dive height (M558 H parameter) first, and all G30 commands move the nozzle back to the dive height after probing.

                        Have you tested the Z probe as described at https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe ?

                        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
                          Tommy_Fr
                          last edited by Tommy_Fr 15 Dec 2018, 18:45

                          M558 H parameter was H5, I have changed it to 1 to try, and there is no difference.
                          Yes, I have tested Z as described at https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe.

                          But I wonder if there is a scale issue, because on DWC I have that for machine control:
                          0_1544899216692_Head_movement-maybe_Z_Scale_issue.png
                          It is normal X and Y lines have different values from Z line.
                          And when I click, for example, on Z+5, nozzle moves five times more longer away than on X+10.
                          So, is there a scale issue?

                          UPDATE: I edited my config.g file and changed Z steps per mm which was totally wrong (I set a M5 lead screw system instead of a M8, but value was still incorrect, changing from 4000 to 2560, I finally changed it to 400 which seems to be right or close of the rightful value). Z line on DWC did not change but movement matches more with the first both lines, X and Y.

                          Printer: FLSun I3 C_Plus
                          Board: Duet Wifi 1.04

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            dc42 administrators
                            last edited by 17 Dec 2018, 15:32

                            So does Z homing work now?

                            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

                            undefined 1 Reply Last reply 18 Dec 2018, 07:36 Reply Quote 0
                            • undefined
                              Tommy_Fr @dc42
                              last edited by 18 Dec 2018, 07:36

                              @dc42 said in [Problem] Homing Z works with Macro but not with Home Buttons:

                              So does Z homing work now?

                              I just tried with g30 and it seems to work now. I will do further tests in the few coming day.

                              Printer: FLSun I3 C_Plus
                              Board: Duet Wifi 1.04

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                Tommy_Fr
                                last edited by 13 Jan 2019, 18:21

                                I tested it within several ways, which with bed compensation and it works great.
                                Thank you to @dc42.

                                You can mark it as solved.

                                Printer: FLSun I3 C_Plus
                                Board: Duet Wifi 1.04

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