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

    modify this to auto enter values for z probe offset?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    7
    336
    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.
    • tracarundefined
      tracar
      last edited by

      can this be used along with bed leveling g32, to auto write the probe z value from the bed surface to the trigger height of the bltouch and write that offset value to the G31 P500 X0 Y0 Z4.247 in config.g ?

      re purpose this to suit ?

      T0
      M291 P"Press ""OK"" if you would you like to calibrate the Z-offset for this Tool ." R"Calibrate Z-Offset" S3
      M291 P"Make sure your nozzle is free of debris. Press ""Cancel"" if you need to stop and clean the nozzle." R"Calibrate Z-Offset" S3
      M291 P"Homing, please wait..." R"Calibrate Z-Offset" S1
      M98 P/sys/homeall.g
      M208 S1 Z-2 ; allow movement below Z0
      G1 X220 Y330 Z8 F2000 ; move to center of bed
      M558 P0
      G30 S-2
      M500 ; save results
      M501 ; load new data
      M208 S1 Z0 ; disallow movement below Z0
      G1 Z25 ; drop build plate
      M291 P"Z-offset calibration complete! " R"Calibrate Z-Offset" S1 T3

      1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti
        last edited by

        to store the G31 parameters. you need to use M500 P31

        also see
        https://forum.duet3d.com/topic/14280/invitation-to-share-your-conditional-gcode-scripts?_=1598713801828

        tracarundefined 1 Reply Last reply Reply Quote 0
        • tracarundefined
          tracar @Veti
          last edited by tracar

          @Veti said in modify this to auto enter values for z probe offset?:

          M500 P31

          ok so after changing:

          T0
          M291 P"Press ""OK"" if you would you like to calibrate the Z-offset for this Tool ." R"Calibrate Z-Offset" S3
          M291 P"Make sure your nozzle is free of debris. Press ""Cancel"" if you need to stop and clean the nozzle." R"Calibrate Z-Offset" S3
          M291 P"Homing, please wait..." R"Calibrate Z-Offset" S1
          M98 P/sys/homeall.g
          M208 S1 Z-2 ; allow movement below Z0
          G1 X220 Y330 Z8 F2000 ; move to center of bed
          M558 P0
          G30 S-2
          M500 P31; save results
          M501 ; load new data
          M208 S1 Z0 ; disallow movement below Z0
          G1 Z25 ; drop build plate
          M291 P"Z-offset calibration complete! " R"Calibrate Z-Offset" S1 T3

          and running it gives errors
          :

          8/29/2020, 10:15:57 AM M292
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.5 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M120 G91 G1 Z-0.05 F6000 G90 M121
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.
          8/29/2020, 10:15:57 AM M292
          Warning: No M501 command was executed in config.g
          Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 894C.

          im on Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.05.1

          1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti
            last edited by

            add the M501 at the end of your config.g

            1 Reply Last reply Reply Quote 0
            • tracarundefined
              tracar
              last edited by tracar

              the errors have resolved, but i noticed that the G31 P500 X0 Y0 Z4.247 does not change

              what do i have to do to make it save and change this ofset value of 4.247 to the new value ??

              1 Reply Last reply Reply Quote 0
              • Vetiundefined
                Veti
                last edited by

                did you have a look at the conditional script in the linked forum post?

                tracarundefined 1 Reply Last reply Reply Quote 0
                • tracarundefined
                  tracar @Veti
                  last edited by tracar

                  @Veti said in modify this to auto enter values for z probe offset?:

                  yup. looks like its just a warning of what potential it ha with the heater error.s, still dont understand the conditionals part for the other

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