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

    Help to configure I/0 pins for M7 control

    Scheduled Pinned Locked Moved
    General Discussion
    4
    7
    334
    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.
    • Shanian79undefined
      Shanian79
      last edited by

      I have a 24v solenoid wired to out1 on a Duet3 6HC. I currently have it set to turn on/off in the start.g and stop.g.

      I would like to get rid of this and have it controlled by the Fusion360 post processor nc file with the M7 command.

      How do I set this up in my config.g file. I can't find any information on how to allocate that I/O pin to the M7 command. I assume its a M950 line, but I don't know what the correct labels/names are for M7 allocations.

      Thanks!

      fcwiltundefined 1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @Shanian79
        last edited by

        @shanian79

        I don't see M7 listed in the Duet Gcode Dictionary.

        What does it do?

        Frederick

        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

        Dougal1957undefined Shanian79undefined 2 Replies Last reply Reply Quote 0
        • Dougal1957undefined
          Dougal1957 @fcwilt
          last edited by

          @fcwilt M7 is mist coolant On but is not supported by RRF as far as I can see

          see M7

          1 Reply Last reply Reply Quote 0
          • Shanian79undefined
            Shanian79 @fcwilt
            last edited by

            @fcwilt Its a CNC command that turns Cooling on and off. It's not listed in the REPRAP Dictionary, however from what I have found, it is a valid command. Its just specific to CNC and doesn't have a purpose with FFF, so its not listed.

            Shanian79undefined fcwiltundefined 2 Replies Last reply Reply Quote 0
            • Shanian79undefined
              Shanian79 @Shanian79
              last edited by

              @shanian79 I figured it out. The M7/M9 commands are not supported. However when Duet gets these commands, it looks for a .sys macro of that name and executes it if there is one.

              For example, I added and M7 and M9 macro to my sys folder.

              When Duet gets an M7 command, it executes the M7 macro with M42 that turns on the solenoid wired to out1. M9 turns it off.

              M7 file in .sys folder
              M42 P0 S0 ; turn the valve off

              dc42undefined 1 Reply Last reply Reply Quote 3
              • fcwiltundefined
                fcwilt @Shanian79
                last edited by fcwilt

                @shanian79 said in Help to configure I/0 pins for M7 control:

                @fcwilt Its a CNC command that turns Cooling on and off. It's not listed in the REPRAP Dictionary, however from what I have found, it is a valid command. Its just specific to CNC and doesn't have a purpose with FFF, so its not listed.

                Well there are other CNC specific commands listed - I would have thought if M7 was supported it would have been listed as well.

                As you have found M7 is not directly supported but you can create a file M7.g and put the needed code there.

                Frederick

                Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @Shanian79
                  last edited by

                  To be clear: if you want to implement the M7 command, create a macro file in /sys on the SD card called:

                  M7.g

                  That file will be executed whenever the M7 command is executed. In RRF 3.3 and later you can also pick up parameters that were given with the M7 command.

                  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
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA