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

    Macro error

    Scheduled Pinned Locked Moved Solved
    CNC
    1
    2
    162
    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.
    • baird1faundefined
      baird1fa
      last edited by

      Hello everyone, I've installed a 3D touch probe on my duet run CNC machine and I'm having an issue with the macro that I'm trying to use for probing the X and Y of the workpiece.

      Here is the macro that I'm using and when I call it it runs fine, but I get an error that says:

      M98 P"0:/macros/Touch Probe/3D Probe corner"
      Error: SD card has open file(s)

      ;This will probe the bottom Left corner of the work piece
      ;First Probe the Z height
      M21                                         ;This macro uses mm moves
      M98 P"/macros/Touch Probe/z probe.g"        ;Run Z probe to find surface of material
      G91                                         ;Set relative moves
      G0 X-25                                     ;Move 25mm away from current position
      G0 Z-8                                      ;Move down 8mm, 3mm below surface of work piece
      G90                                         ;Set Absolute moves
      M98 P"/macros/Touch Probe/X Probe.g"        ;Run X probe macro
      G91                                         ;Set Relative moves
      G0 Z10                                      ;Lift probe to clear work piece
      G0 X20 Y-45                                 ;Move Probe to position for Y probe
      G0 z-10                                     ;Move Probe into Z position for Y probe
      G90                                         ;Set Absolute moves
      M98 P"/macros/Touch Probe/Y Probe.g"        ;Run Y probe macro
      G91                                         ;Relative move
      G0 Z10                                      ;Lift probe to clear material
      G90                                         ;Absolute move
      G1 X0 Y0 F500                               ;Move to new soft home
      

      I don't see any thing about this error in my google search or a search of the duet documentation site.

      There are no errors is I run the files individually, only if I run the main macro.

      1 Reply Last reply Reply Quote 0
      • baird1faundefined
        baird1fa
        last edited by

        I found my issue, I was using a M21 where I should have had G21 to put the macro into mm.

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