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

    M950 and Pin Names

    Scheduled Pinned Locked Moved
    Beta Firmware
    7
    30
    4.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.
    • woodworksimonundefined
      woodworksimon
      last edited by

      Just upgraded to RRf 3.12 and trying to get my head around M950 and Pin names on Duet 2 wifi.
      Looked everywhere but cannot seem to find a list of pin names for heaters E0 and E1, fans 0,1 and 2. Getting 'Unknown pin name error' when running: M950 P0 C"Heater0" (Supplying power to Duet board cooling fans) for example. Followed by M42 P0 S1 to switch on 100%. Nothing!
      Must be doing something wrong, but going round and round!
      Got to understand as I have a laser diode on fan0 and unable to control successfully, so upgraded to vs3. Christmas is fast approaching...…….
      Using M452 and previous version 2.04 Cutting great, but engraving rubbish - skipping and burning heavily
      Help please

      1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by Danal

        config .g

        Working example for D3 hardware, with several heaters. May or may not help...

        Delta / Kossel printer fanatic

        woodworksimonundefined 1 Reply Last reply Reply Quote 1
        • woodworksimonundefined
          woodworksimon @Danal
          last edited by

          @Danal Thanks for your quick response - had a quick look but am still unsure where you got the names of your pins from? Your heater names for example: 1out0 and 1out1 where are they specified - it's not knowing what the firmware recognises that does my head in!

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

            Pin names are listed at https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names.

            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

            woodworksimonundefined 1 Reply Last reply Reply Quote 1
            • woodworksimonundefined
              woodworksimon @dc42
              last edited by

              @dc42 Brilliant! Totally missed that. Now to get started. thanks

              woodworksimonundefined 1 Reply Last reply Reply Quote 0
              • woodworksimonundefined
                woodworksimon @woodworksimon
                last edited by

                @woodworksimon STILL STRUGGLING!
                Custom Config reads:

                ; #####OLD#### RepRap 2.04 ############
                ; CONVERT HEATERS OUTPUT INTO SWITCHED OUTPUTS
                M307 H1 A-1 C-1 D-1
                M307 H2 A-1 C-1 D-1
                ; FANS ON
                ; M42 P1 S1

                ; ##### NEW #### RepRap3.0 beta12 ############
                ; ASSIGN OUTPUT PIN
                M950 P0 C"E0HEAT"
                M950 P1 C"E1HEAT"

                    M950 P2 C"FAN0"
                    M950 P3 C"FAN1"
                    M950 P4 C"FAN2"
                

                ; FANS ON - works
                M42 P0 S1
                ; LED Spindle light ON - works
                M42 P1 S1

                ; RRF3 fan output FULL POWER AT 2000HZ
                M42 p4 s1

                No voltage out - (tried p2 and p3 as well). Intend running laser off p4, I assume when I change to laser mode I am unable to get output unless G1 is called? So to set up focus position, I would have to return to CNC mode - First things first, why no output on these pins?

                dc42undefined 1 Reply Last reply Reply Quote 0
                • jay_s_ukundefined
                  jay_s_uk
                  last edited by

                  My guess looking at the duet gcode documentation is that you should be using F for fan rather than P.
                  So you should have
                  M950 F0 C"FAN0"

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  woodworksimonundefined 1 Reply Last reply Reply Quote 0
                  • woodworksimonundefined
                    woodworksimon @jay_s_uk
                    last edited by

                    @jay_s_uk
                    By my understanding, the rrf3 strips away the intended pin out use and replaces with up to 10 device outputs.
                    Logically, if I can repurpose heater pins to a pwm output, I should be able to do the same to any of the other configurable ports, irrespective of their original purpose. The proposed use seems to be specified with H(eater), F(an), P(General Purpose port), or S(ervo).
                    Hence my choice of P.
                    I'll try 'F' anyway, thanks for the suggestion.

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

                      @woodworksimon said in M950 and Pin Names:

                      ; RRF3 fan output FULL POWER AT 2000HZ
                      M42 p4 s1

                      No voltage out - (tried p2 and p3 as well). Intend running laser off p4, I assume when I change to laser mode I am unable to get output unless G1 is called? So to set up focus position, I would have to return to CNC mode - First things first, why no output on these pins?

                      1. Was that Fan2 output working when you were using RRF2?
                      2. If you send M950 P4 C"FAN2" from the console, what is the response?
                      3. If you are using laser mode, what M452 command do you ave for RRF3?

                      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

                      woodworksimonundefined 1 Reply Last reply Reply Quote 0
                      • woodworksimonundefined
                        woodworksimon @dc42
                        last edited by

                        @dc42
                        1: Fan 2 (left hand pwm fan output on board) working before upgrade.
                        2: M950 P4 C"fan2" gives: Pin Fan2 is not free, so sent P4 C"Nil" , but still not free.
                        3: M452 is set to c"fan2" Q2000, and I have also prefixed the lines in my macro with M950 P4 C"nil" and M950 P4 c"fan2" to double check.

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

                          @woodworksimon said in M950 and Pin Names:

                          M452 is set to c"fan2" Q2000, and I have also prefixed the lines in my macro with M950 P4 C"nil" and M950 P4 c"fan2" to double check.

                          That's the problem. You have allocated the Fan2 output to thew laser, so it's not available as GPIO. You can control it using M3 Sxx and M5 commands. and/or with S parameters on G1 commands.

                          Note, there is a bug in M3/M5 handling in the current RRF3, which will be fixed in the next release (the same bug is already fixed in RRF 2.05RC2). So for now, if using RRF3 then you should only control the laser using S parameters on G1 commands.

                          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
                          • woodworksimonundefined
                            woodworksimon
                            last edited by

                            As I am double handling the CNC, I call the laser with a macro and return it (for safety) to cnc from the macro when when finished. The above settings were made in cnc mode (M453) and the m452 was only called after the M950 line.
                            If I run P4 C"nil" does that not release the pin anyway?

                            woodworksimonundefined 1 Reply Last reply Reply Quote 0
                            • woodworksimonundefined
                              woodworksimon @woodworksimon
                              last edited by

                              @woodworksimon
                              Re the output from Fan2, (when we get it working) is it available to manually control as intended from a macro when stationery? BTW, am getting a steady 0.2v across the heater pins - correct?

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

                                @woodworksimon said in M950 and Pin Names:

                                @woodworksimon
                                Re the output from Fan2, (when we get it working) is it available to manually control as intended from a macro when stationery? BTW, am getting a steady 0.2v across the heater pins - correct?

                                In Laser mode, no. The laser will only fire during movement.

                                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

                                woodworksimonundefined 1 Reply Last reply Reply Quote 0
                                • woodworksimonundefined
                                  woodworksimon @dc42
                                  last edited by

                                  @dc42 Ok - Can use a macro to laser engrave after setting up first in cnc mode.
                                  Will still need to send output to Fan 2 - how can I release the pins for output if NOT in M452 mode (nil doesn't work)

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

                                    If you haven't allocated the pin in M452 then it will be either free or configured as fan 2. If it is configured as fan 2 then you can free it using:

                                    M950 F2 C"nil"

                                    However, if you have set it up as the M452 laser control output, then I think M452 C"nil" ought to work.

                                    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

                                    woodworksimonundefined 1 Reply Last reply Reply Quote 0
                                    • woodworksimonundefined
                                      woodworksimon @dc42
                                      last edited by

                                      @dc42
                                      Been trying for the last hour or so, briefly got it responding, but would give me output in laser mode using M42 without the m452 command?

                                      Stubbornly refuses to release in either laser mode or cnc mode.
                                      So put this macro together to try... if I am missing something, I apologise, but the comments are how I understand the logic... still not releasing!

                                      ; RRF3 fan ON test
                                      ;################### HALF POWER AT 50HZ ##################

                                      ; SET CNC MODE
                                      M453

                                      ;======================================================
                                      ; CLEAR FAN PIN OUTPUT BUFFER
                                      ;======================================================

                                      ; release DUET pins 'fan 2' from FAN output
                                      m950 f2 c"nil"

                                      ; DOUBLE CHECK: RELEASE MAPPED GPIO OUTPUT P4
                                      M950 P4 C"NIL"

                                      ; PREPARE GPIOO output 'p4' ONTO FAN2 PINS AT 50HZ
                                      m950 p4 c"fan2" Q50

                                      ; SWITCH output ON p4 at HALF power 125/255
                                      m42 p4 s125

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

                                        Yes that should work. If you send M950 P4 with no other parameters, what is the response?

                                        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

                                        woodworksimonundefined 1 Reply Last reply Reply Quote 0
                                        • woodworksimonundefined
                                          woodworksimon @dc42
                                          last edited by

                                          @dc42
                                          'gpio port has no pin' - so why has the m950 p4 line not mapped onto fan2?

                                          dc42undefined 1 Reply Last reply Reply Quote 0
                                          • woodworksimonundefined
                                            woodworksimon
                                            last edited by

                                            Syntax query for the new M452 - was originally embedding it in Vectric post processor to automatically switch to laser mode. Ie "M452 P2 R50 F500" (Quotes are expected).
                                            New M452 ie: "M452 C"fan2" R50 F500" errors because of the two sets of quotes I assume. Any thoughts as to a work around?

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