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

    Gcode from Fusion360

    Scheduled Pinned Locked Moved
    CNC
    3
    8
    524
    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.
    • AllSiriusundefined
      AllSirius
      last edited by AllSirius

      Doing tests with new Cartesian machine, that I'm building right now - I'm stuck with this toolpath interpretation.
      On Duet Web Control 3.3.0-CNC08 Web Interface.
      I'm sending the .NC file from F360 which is looks like this:

      undefined
      ```%
      (1001)
      (Machine)
      (  vendor: Autodesk)
      (  model: M1)
      (  description: Generic Cutting Machine)
      N10 G90
      N15 G21
      N20 G28 G91 Z0
      N25 G90
      
      (Pocket2)
      N30 T1
      N35 S5000 M3
      N40 G0 X-14.808 Y-0.691
      N45 Z2
      N50 G1 Z1 F3000
      N55 Z0.3 F9000
      

      and after the machine is homing it goes to 0.0.0. , then disconnecting the wifi
      then going back home and not doing nothing.

      If I send the regular 3d printing gcode it is starting the job.
      What am I missing?

      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Nov 16 2020 00:29:27 
      
      ; General preferences
      G90                                                   ; send absolute coordinates...
      M83                                                   ; ...but relative extruder moves
      M550 P" 111"                                  ; set printer name
      M669 ;K1                                               ; select CoreXY mode
      
      ; Network
      M552 S1                                               ; enable network
      M586 P0 S1                                            ; enable HTTP
      M586 P1 S0                                            ; disable FTP
      M586 P2 S0                                            ; disable Telnet
      
      ; Drives
      ;M564 H0 S0
      M569 P0 S1                                            ; physical drive 0 goes forwards
      M569 P1 S1                                            ; physical drive 1 goes forwards
      M569 P2 S1                                            ; physical drive 2 goes forwards
      M569 P3 S1   
      M569 P4 R-1                                          ; physical drive 3 goes forwards
      ;M569 P5 S1
      ;M569 P6 S1                                            ; physical drive 5 goes forwards
      M569 P5 R1 T2.5:2.5:5:5 S1
      M569 P6 R1 T2.5:2.5:5:5 S1
      M569 P7 R1 T2.5:2.5:5:5 S1
      M584 X0 Y6:7 Z5 E3                                    ; set drive mapping
      M350 X16 Y16 Z16 E16 U16 I1                            ; configure microstepping with interpolation
      M92 X80.00 Y170.00 Z5050 E820 ;U40.00                  ; set steps per mm
      M566 X6000.00 Y1800.00 Z150.00 E800.00 ;U10500     ; set maximum instantaneous speed changes (mm/min)
      M203 X25000.00 Y20000.00 Z300.00 E1000.00 ;U15500  ; set maximum speeds (mm/min)
      M201 X13000.00 Y2000.00 Z500.00 E900 ;U3000          ; set accelerations (mm/s^2)
      M906 X1300 Y400 Z400 E260 ;U500 I30                      ; set motor currents (mA) and motor idle factor in per cent
      M84 S30                                               ; Set idle timeout
      
      ; Axis Limits
      M208 X0 Y0 Z0 S1                                      ; set axis minima
      M208 X1010 Y790 Z500 S0                                ; set axis maxima
      
      ; Endstops
      M574 X2 S1 P"!^xstop"                                                     ; configure active-high endstop for low end on X via pin xstop
      M574 Y1 S1 P"!^ystop"                                                     ; configure active-high endstop for low end on Y via pin ystop
      M574 Z1 S1 P"!^zstop"                                                     ; configure active-high endstop for low end on Z via pin zstop
      ;M591 D0 P5 C"e0_stop" R70:100 L0.9 E15.0 S1
      
      
      ; Z-Probe (currently disconnected)
                                    
      ;M307 H3 A-1 C-1 D-1                      
      ;M558 P9 C"^zprobe.in" H5 F120 T6000 
      ;M950 S0 C"exp.heater3"   ;Create a GPIO/Servo pin index using your chosen control pin
      ;G31 X-24 Y-1 Z0.85 P20    ;Set up the probe offsets, trigger height and trigger value in G31
      ;M557 X40:440 Y65:470 S60                           ; define mesh grid
      
      
      
      ; Heaters
      
      ;M308 S1 P"e0temp" Y"thermistor" T100000 B4415 C2.166385e-7 R4700  ; configure sensor 1 as thermistor on pin e0temp
      M308 S1 P"e0temp" Y"thermistor" T100000 B3950 
      ;M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8  
      M950 H1 C"e0heat" T1                                                    ; create nozzle heater output on e0heat and map it to sensor 1
      M307 H1 B0 S1.00                                                        ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S280                                             ; set temperature limit for heater 1 to 280C
      ;M308 S2 P"e1temp" Y"thermistor" T100000 B3950                     ; configure sensor 2 as PT1000 on pin e1temp
      ;M950 H2 C"e1heat" T2                             ; create nozzle heater output on duex.e2heat and map it to sensor 2
      ;M307 H2 B0 S1.00                                      ; disable bang-bang mode for heater  and set PWM limit
      
      ;   Spindle
      
      M950 R0 C"exp.heater3" L12000 ; Create spindle index 0, with PWM pin on heater 3 and 12000 RPM achieved at full PWM
      M563 P1 S"Spindle 1" R0 ; Create tool 1 with spindle 0 and call it "Spindle 1"
      
      ; Fans
      
      
      M950 F0 C"fan0" Q100                                  ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S1 R1 L15 H-1                                        ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"Fan1" Q3300                                  ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 L1 B0.1 H1 T45                                     ; set fan 1 value. Thermostatic control is turned on
      M950 F2 C"fan2" Q500                                  ; create fan 0 on pin fan0 and set its frequency
      M106 P2 S1 R1 L255 H1    
      
      
      ; Tools
      M563 P0 S"Left" D0 H1                            ; define tool 0
      G10 P0 X0 Y0 Z0                                       ; set tool 0 axis offsets
      G10 P0 R0 S0                                          ; set initial tool 0 active and standby temperatures to 0C
      M563 P1 S"Right" D1:2                             ; define tool 1
      G10 P1 X0 Y0 Z0                                       ; set tool 1 axis offsets
      G10 P1 R0 S0                                          ; set initial tool 1 active and standby temperatures to 0C
      
      ; Custom settings are not defined
      
      ; Miscellaneous
      M575 P1 S1 B57600                                     ; enable support for PanelDue
      T0                                                    ; select first tool
      M501
      

      undefined

      The plan is to make hybrid machine with two heads (Tango-parking from left and right side) on X-axis with different belt driving system . The right head is Chinese 500w spindle and Left - FDM extruder.

      With printing we have no problem! 😃 Thanks!! Duet is Aazing!
      The next challenge will be to combine both technologies in one machine and one interface. 👏

      So back to my question. Please anyone can explain to me what am need to do with the postprocess or duet configuration to mill form .NC? 🤠

      Cheers guys!
      I think dc42 and this community are creating the whole world of possibilities !

      o_lampeundefined 1 Reply Last reply Reply Quote 0
      • o_lampeundefined
        o_lampe @AllSirius
        last edited by

        @allsirius I tried to use F360 files a while back and IIRC I had to select the right machine in F360 to produce useable code. Can't remember exactly which machine was compatible. Was it Mach3 or GRBL or Roland??

        AllSiriusundefined 1 Reply Last reply Reply Quote 0
        • AllSiriusundefined
          AllSirius @o_lampe
          last edited by

          Hi @o_lampe Thanks for your answer , I will try them all. Somewhere in this forum I've found recommendation to use the RepRap. But I believe that I didn't finish something with configuration of my Duet to read all this
          Nxx №xx Xxx Yxx commands.

          Could you tell me please which Cam are you use and how is the g/nc code starting?

          PCRundefined 1 Reply Last reply Reply Quote 0
          • PCRundefined
            PCR @AllSirius
            last edited by

            @allsirius https://github.com/BruceRoyce/UltimateRepRapPost

            1 Reply Last reply Reply Quote 2
            • AllSiriusundefined
              AllSirius
              last edited by

              @pcr Thank you very much! This Post-Processor are looks like a real thing for Duet board !
              But now I've got another ridiculous problem! This has never happen to me before!
              After all my previous attempts with duet configuration I think I've made some mess in settings and machine didn't do the proper cut.
              I've checked the same file on my 3D printer with Duet RRF 3.3 and the toolpath movements was just fine!

              So I went to configuration tool and made a clean setup for my cnc machine.
              Cleaned the old system files through DWC , and loaded new on the board and did restart .
              The Y and Z axis from the Expansion breakout board are working after I added them in config .g but ALL internal motor drivers stopped to work! I never had such a problem.
              What could happen?

              The config.g is still the same..
              All day is spent for research!

              PCRundefined 1 Reply Last reply Reply Quote 0
              • PCRundefined
                PCR @AllSirius
                last edited by

                @allsirius best Thing is to Post confi.g and the Output of M122

                AllSiriusundefined 1 Reply Last reply Reply Quote 0
                • AllSiriusundefined
                  AllSirius @PCR
                  last edited by AllSirius

                  @pcr

                  
                  
                  ; Configuration file for Duet WiFi (firmware version 3)
                  ; executed by the firmware on start-up
                  ;
                  ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Nov 16 2020 00:29:27
                  ; General preferences
                  
                  G90                                                   ; send absolute coordinates...
                  M83                                                   ; ...but relative extruder moves
                  M550 P"M1"                                  ; set printer name
                  M669 ;K1                                               ; select CoreXY mode
                  
                  ; Network
                  M552 S1                                               ; enable network
                  M586 P0 S1                                            ; enable HTTP
                  M586 P1 S0                                            ; disable FTP
                  M586 P2 S0                                            ; disable Telnet
                  
                  ; Drives
                  ;M564 H0 S0
                  M569 P0 S1                                            ; physical drive 0 goes forwards
                  M569 P1 S1                                            ; physical drive 1 goes forwards
                  M569 P2 S1                                            ; physical drive 2 goes forwards
                  M569 P3 S1   
                  M569 P4 R-1                                          ; physical drive 3 goes forwards
                  ;M569 P5 S1
                  ;M569 P6 S1                                            ; physical drive 5 goes forwards
                  M569 P5 R1 T2.5:2.5:5:5 S1
                  M569 P6 R1 T2.5:2.5:5:5 S1
                  M569 P7 R1 T2.5:2.5:5:5 S1
                  M584 X0 Y6:7 Z5 E3                                                               ; set drive mapping
                  M350 X16 Y16 Z16 E16 U16 I1                                             ; configure microstepping with interpolation
                  M92 X80.00 Y170.00 Z5050 E820 ;U40.00                       ; set steps per mm
                  M566 X6000.00 Y1800.00 Z150.00 E800.00 ;U10500     ; set maximum instantaneous speed changes (mm/min)
                  M203 X25000.00 Y20000.00 Z300.00 E1000.00 ;U15500  ; set maximum speeds (mm/min)
                  M201 X13000.00 Y2000.00 Z500.00 E900 ;U3000          ; set accelerations (mm/s^2)
                  M906 X1300 Y400 Z400 E260 ;U500 I30                             ; set motor currents (mA) and motor idle factor in per cent
                  M84 S30                                                                                   ; Set idle timeout
                  
                  ; Axis Limits
                  M208 X0 Y0 Z0 S1                                               ; set axis minima
                  M208 X1010 Y790 Z500 S0                                ; set axis maxima
                  
                  ; Endstops
                  M574 X2 S1 P"!^xstop"                                                     ; configure active-high endstop for low end on X via pin xstop
                  M574 Y1 S1 P"!^ystop"                                                     ; configure active-high endstop for low end on Y via pin ystop
                  M574 Z1 S1 P"!^zstop"                                                     ; configure active-high endstop for low end on Z via pin zstop
                  ;M591 D0 P5 C"e0_stop" R70:100 L0.9 E15.0 S1
                  
                  
                  ; Z-Probe
                                                
                  ;M307 H3 A-1 C-1 D-1                      
                  ;M558 P9 C"^zprobe.in" H5 F120 T6000 
                  ;M950 S0 C"exp.heater3"                                   ;Create a GPIO/Servo pin index using your chosen control pin
                  ;G31 X-24 Y-1 Z0.85 P20                                     ;Set up the probe offsets, trigger height and trigger value in G31
                  ;M557 X40:440 Y65:470 S60                                   ; define mesh grid
                  
                  
                  
                  ; Heaters
                  
                  ;M308 S1 P"e0temp" Y"thermistor" T100000 B4415 C2.166385e-7 R4700  ; configure sensor 1 as thermistor on pin e0temp
                  M308 S1 P"e0temp" Y"thermistor" T100000 B3950 
                  ;M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8  
                  M950 H1 C"e0heat" T1                                                    ; create nozzle heater output on e0heat and map it to sensor 1
                  M307 H1 B0 S1.00                                                        ; disable bang-bang mode for heater  and set PWM limit
                  M143 H1 S280                                             ; set temperature limit for heater 1 to 280C
                  ;M308 S2 P"e1temp" Y"thermistor" T100000 B3950                     ; configure sensor 2 as PT1000 on pin e1temp
                  ;M950 H2 C"e1heat" T2                             ; create nozzle heater output on duex.e2heat and map it to sensor 2
                  ;M307 H2 B0 S1.00                                      ; disable bang-bang mode for heater  and set PWM limit
                  
                  ;   Spindle
                  
                  ;M950 R0 C"exp.heater3" L12000 ; Create spindle index 0, with PWM pin on heater 3 and 12000 RPM achieved at full PWM
                  ;M563 P1 S"Spindle 1" R0 ; Create tool 1 with spindle 0 and call it "Spindle 1"
                  
                  ; Fans
                  
                  
                  M950 F0 C"fan0" Q100                                  ; create fan 0 on pin fan0 and set its frequency
                  M106 P0 S1 R1 L15 H-1                                        ; set fan 0 value. Thermostatic control is turned off
                  M950 F1 C"Fan1" Q3300                                  ; create fan 1 on pin fan1 and set its frequency
                  M106 P1 S1 L1 B0.1 H1 T45                                     ; set fan 1 value. Thermostatic control is turned on
                  M950 F2 C"fan2" Q500                                  ; create fan 0 on pin fan0 and set its frequency
                  M106 P2 S1 R1 L255 H1    
                  
                  
                  ; Tools
                  M563 P0 S"Left" D0 H1                            ; define tool 0
                  G10 P0 X0 Y0 Z0                                       ; set tool 0 axis offsets
                  G10 P0 R0 S0                                          ; set initial tool 0 active and standby temperatures to 0C
                  M563 P1 S"Right" D1:2                             ; define tool 1
                  G10 P1 X0 Y0 Z0                                       ; set tool 1 axis offsets
                  G10 P1 R0 S0                                          ; set initial tool 1 active and standby temperatures to 0C
                  
                  ; Custom settings are not defined
                  
                  ; Miscellaneous
                  M575 P1 S1 B57600                                     ; enable support for PanelDue
                  T0                                                    ; select first tool
                  M501
                  
                  === Diagnostics ===
                  RepRapFirmware for Duet 2 WiFi/Ethernet version 3.3 (2021-06-15 21:44:54) running on Duet WiFi 1.02 or later
                  Used output buffers: 3 of 24 (11 max)
                  === RTOS ===
                  Static ram: 23876
                  Dynamic ram: 74952 of which 0 recycled
                  Never used RAM 15588, free system stack 184 words
                  Tasks: NETWORK(ready,5.3%,237) HEAT(delaying,0.0%,238) Move(notifyWait,0.1%,340) MAIN(running,89.2%,445) IDLE(ready,5.5%,29), total 100.0%
                  Owned mutexes: WiFi(NETWORK)
                  === Platform ===
                  Last reset 00:00:16 ago, cause: software
                  Last software reset at 2021-10-24 11:06, reason: User, GCodes spinning, available RAM 12556, slot 1
                  Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
                  Error status: 0x00
                  Aux0 errors 0,0,0
                  Step timer max interval 0
                  MCU temperature: min 34.9, current 35.4, max 35.7
                  Supply voltage: min 11.9, current 11.9, max 12.0, under voltage events: 0, over voltage events: 0, power good: yes
                  Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
                  Driver 0: position 0, standstill, SG min/max not available
                  Driver 1: position 0, standstill, SG min/max not available
                  Driver 2: position 0, standstill, SG min/max not available
                  Driver 3: position 0, standstill, SG min/max not available
                  Driver 4: position 0, temperature-shutdown! short-to-ground, standstill, SG min/max not available
                  Driver 5: position 0
                  Driver 6: position 0
                  Driver 7: position 0
                  Driver 8: position 0
                  Driver 9: position 0
                  Driver 10: position 0
                  Driver 11: position 0
                  Date/time: 2021-10-24 11:06:57
                  Cache data hit count 1172618336
                  Slowest loop: 5.09ms; fastest: 0.19ms
                  I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                  === Storage ===
                  Free file entries: 10
                  SD card 0 detected, interface speed: 20.0MBytes/sec
                  SD card longest read time 2.2ms, write time 0.0ms, max retries 0
                  === Move ===
                  DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
                  === MainDDARing ===
                  Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                  === AuxDDARing ===
                  Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                  === Heat ===
                  Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
                  === GCodes ===
                  Segments left: 0
                  Movement lock held by null
                  HTTP is idle in state(s) 0
                  Telnet is idle in state(s) 0
                  File is idle in state(s) 0
                  USB is idle in state(s) 0
                  Aux is idle in state(s) 0
                  Trigger is idle in state(s) 0
                  Queue is idle in state(s) 0
                  LCD is idle in state(s) 0
                  Daemon is idle in state(s) 0
                  Autopause is idle in state(s) 0
                  Code queue is empty.
                  === Network ===
                  Slowest loop: 16.23ms; fastest: 0.00ms
                  Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
                  HTTP sessions: 1 of 8
                  - WiFi -
                  Network state is active
                  WiFi module is connected to access point 
                  Failed messages: pending 0, notready 0, noresp 0
                  WiFi firmware version 1.26
                  WiFi MAC address cc:50:e3:6a:87:1e
                  WiFi Vcc 3.35, reset reason Turned on by main processor
                  WiFi flash size 4194304, free heap 27168
                  WiFi IP address 192.168.43.48
                  WiFi signal strength -65dBm, mode 802.11n, reconnections 0, sleep mode modem
                  Clock register 00002002
                  Socket states: 0 0 0 0 0 0 0 0
                  

                  Driver 4 are removed long time ago. And day before machine was working .
                  I connected the board via Yat, because no panelDue and I couldn't connect through DWC after RRF Config loading. While connecting through USB for the WiFi setup the Expansion breakout board and external drivers was connected to duet.. -
                  I'm still can't believe it's could cause destroying the internal drivers.. =\

                  AllSiriusundefined 1 Reply Last reply Reply Quote 0
                  • AllSiriusundefined
                    AllSirius @AllSirius
                    last edited by

                    @PCR
                    The Problem was solved!
                    https://forum.duet3d.com/topic/25672/internal-stepper-drivers-form-duet-wifi-are-not-responding/11
                    And I was able to test the new code form the recommended UltimateRepRapPost..
                    I see it's working! Now only need to properly configure everything for my machine.
                    Thank you!!

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