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

    M98 P"0:/macros/Level Gantry"

    Scheduled Pinned Locked Moved Solved
    General Discussion
    2
    5
    241
    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.
    • Karimundefined
      Karim
      last edited by Karim

      M98 P"0:/macros/Level Gantry"
      Error: in file macro line 8 column 6: M84: expected number after 'E'

      G32
      G28 Z
      M98 P"/macros/print_scripts/goto_bed_center.g"
      
      G1 X140 Y150 F6000
      

      level gantry.PNG

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        You'd have to actually share the macro being called for us to see what's going on, but from the error message it would appear you have M84 with an E but no number after it. On line 8, column 6.

        It could be in bed.g (G32) or homez.g (G28 Z) or "/macros/print_scripts/goto_bed_center.g"

        Z-Bot CoreXY Build | Thingiverse Profile

        Karimundefined 1 Reply Last reply Reply Quote 0
        • Karimundefined
          Karim @Phaedrux
          last edited by Karim

          @Phaedrux ok here.

          ;Level Gantry
          G32
          G28 Z
          M98 P"/macros/print_scripts/goto_bed_center.g"
          
          ;goto_bed_center.g
          G1 X140 Y150 F6000
          

          don't know is it's in .bed

          ; bed.g
          ; Called to align the gantry to the bed plane via G32
          
          ; Clear any bed transform
          M561
          
          ; Turn off noisy Extruder motor
          M84 E
          
          ; Home all axes
          G28
          
          ; Lower currents, speed & accel
          M98 P"/macros/print_scripts/speed_probing.g"
          M98 P"/macros/print_scripts/z_current_low.g"
          M98 P"/macros/print_scripts/xy_current_low.g"
          
          ; Probe the bed at 4 points, x3 for more precision
          M558 K0 H10 F1200 ; increase the depth range, gets the gantry mostly level immediately
          M98 P"/sys/bed_probe_points.g"
          M558 K0 H4 F240   ; reduce depth range, probe slower for better repeatability
          M98 P"/sys/bed_probe_points.g"
          M558 K0 H1 F60    ; reduce depth range, probe slower for better repeatability
          M98 P"/sys/bed_probe_points.g"
          
          ; Restore high currents, speed & accel
          M98 P"/macros/print_scripts/speed_printing.g"
          M98 P"/macros/print_scripts/xy_current_high.g"
          M98 P"/macros/print_scripts/z_current_high.g"
          
          
          
          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m84-stop-idle-hold

            M84 E needs a number after E to tell it which extruder. If you only have one, it would be E0

            Z-Bot CoreXY Build | Thingiverse Profile

            Karimundefined 1 Reply Last reply Reply Quote 0
            • Karimundefined
              Karim @Phaedrux
              last edited by Karim

              @Phaedrux thanks that work.

              1 Reply Last reply Reply Quote 0
              • dc42undefined dc42 marked this topic as a question
              • dc42undefined dc42 has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA