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

    UNABLE TO SETUP CONFIG.FILES

    Scheduled Pinned Locked Moved Solved
    General Discussion
    3
    6
    217
    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.
    • spelotoundefined
      speloto
      last edited by

      Dear all. Before the post, here a tried very hard to dot this  by myself, but I confess my total ignorance about this new knowledge.

      I am a novel  61-year-old just retired. I had been able to arm a 1500 mm x 1500 mm  Chinese CNC frame with a  Duet2 (firmware 3.3), 4 NEMA 23 (23HD56001Y-21B), 24 Volts 60 amps and 12 volts power sources. (12 v running initially an external fan to cool down the duet is working fine)
      The original Plan was to go slow, step by step. 
      Then first step. 
      Just to learn basics, no fans, no hot bed, not bed probe etc. just CNC mode 3 axes. (2 engines on Y axe)
      Mechanical movement is OK, I can Control well manually with Duet Control Panel via Wi-Fi (192.168.1.55)

      Installed 3 mechanical end stops.
      I was happy doing fine then… I GOT STUCK WITH  SOFTWARE, machine settings and files. Originally I used RepRap Configuration Tool but did the settings without real understanding of every point to set . 
      The problem: 

      1.- Messed up folders and g codes
      2.- Unable to home
      3.- Trying to home I just got small adjustment in all axes and after that unable to move (homing do not even touching the stops)
      4.- I change the g codes but I do not know if I need to change also the JSON files created by RepRap Config Tool. ( I do not know how to change a gcode file to json file)
      5.- I also erase and redo the config files from various sources - bad idea- many times and start to understand  ( reading a lot ) but I am not good enough yet ( that is why all my code had been mess-up) 
      

      I am sending you a copy from my settings. You will notice many commands that are not need it at this stage, I keep them for future settings but I do not know if they can interfiere with the actual working conditions.
      Please be very basic in your answer, I will keep working to improve and understand the proper jargon.

      I GOT DESPERATE BUT I AM NOT GOING TO QUIT !
      Thanks a lot
      SPELOTO

      ; generated by MARCO NOV.28.2021

      ; General preferences
      M575 P1 S1 B57600 ; enable support for PanelDue
      M82 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      ; CNC Mode (Firmware 3.3)
      M453 ; CNC Mode
      M550 P"CNC MARCO" ; set printer name

      ; Network
      M552 S1 ; enable network
      M586 P0 S1 ; enable HTTP
      M586 P1 S0 ; disable FTP
      M586 P2 S0 ; disable Telnet

      ; Drives
      M564 H0 ; Allow movement without homing
      M569 P0 S0 ; physical drive 0 goes backwards
      M569 P1 S0 ; physical drive 1 goes backwards
      M569 P2 S0 ; physical drive 2 goes backwards
      M569 P3 S0 ; physical drive 3 goes backwards
      M584 X0 Y1:3 Z2 U9 E3 P3 ; set drive mapping
      M350 X16 Y16 Z16 U16 E16 I0 ; configure microstepping without interpolation

      ; Set axis dynamic parameters
      M92 X400 Y400 Z400 U405 ; Set steps per mm (Nominal)
      M566 X900 Y900 Z900 U900 ; Set maximum instantaneous speed changes (mm/min)
      M203 X2500 Y2500 Z250 U2500 ; Set maximum speeds (mm/min)
      M201 X200 Y200 Z200 U200 ; Set accelerations (mm/s^2)
      M906 X1900 Y1900 Z1900 U1900 E1900 ; Set motor current (mA) and motor idle factor in %
      M84 S30 ;Set idle timeout
      M669 K0 X1:0:0:0 Y0:1:0:1 Z0:0:1:0

      ; Set axis travel distances
      M208 X0 Y0 Z0 U0 S1 ; Set axis minima
      M208 X1270 Y1270 U1270 Z155 S0 ; Set axis maxima

      ; Axis Limits
      M208 X0 Y0 Z0 U0 S1 ; set axis minima (S1)
      M208 X1200 Y1200 U1200 Z88 S0 ; set axis maxima (S0)

      ; Endstops
      M574 X2 S1 P"!xstop" ; configure switch-type (e.g. microswitch) endstop for high end on X via pin !xstop
      M574 Y2 S1 P"!ystop" ; configure switch-type (e.g. microswitch) endstop for high end on Y via pin !ystop
      M574 Z2 S1 P"!zstop" ; configure Z-probe endstop for high end on Z

      ; Z-Probe
      M558 P8 F500 H10 I0 T4000 ; set Z The Touch-Mi probe is active low. If connected to the z probe port.
      G31 P25 X0 Y0 Z19.2 ; set Z probe trigger value, offset and trigger height
      M557 X15:1200 Y15:1200 U15:1200 S40 ; define mesh grid

      ; Heaters
      M140 H-1 ; Heaters off
      M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
      M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
      M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
      M140 H0 ; map heated bed to heater 0
      M143 H0 S120 ; set temperature limit for heater 0 to 120C
      M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
      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

      ; Fans
      M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on

      ; Tools

      ; Custom settings

      ; PanelDue
      M575 P1 B57600 S0 ; allow commands without checksums to be sent

      ;Scale cartesian axes
      M579 X1.02 Y1.002 U1.02

      M501 ;Set the active parameters to those stored in sys/config-override.g on the SD card. ;
      This command should be included near the end of the config.g file so that the stored parameters will be loaded at startup.

      ;Configure Tool 0 as the CNC Spindle
      M950 R0 C"exp.13+exp.8+exp.9" Q2000 L0:25400 ; Create spindle index 0, PWM frequency 2KHz, max rpm = 25.4K ( tweaked to yield 24K)
      ; and the following connections:
      ; spindle speed PWM pin : exp.13 pin
      ; spindle run pin : exp.8
      ; spindle direction pin : exp.9
      M563 P0 R0 S"Spindle" ; Create Tool 0 with Spindle 0 and call it Spindle
      G10 P0 X0 Y0 Z0 ; Set Tool 0 axis offsets
      M568 P0 F0 ; Set Tool 0 to default RPM of 0
      T0 ; Select Tool 0

      o_lampeundefined engikeneerundefined 2 Replies Last reply Reply Quote 0
      • o_lampeundefined
        o_lampe @speloto
        last edited by

        @speloto
        To make homing work, you have to have matching endstop configuration and homing files.
        For example, your endstops are on the rear end of the frame and the endstop logic is inverted.
        You can send M119 from the DWC console to check you endstop status. They should show "not stopped" before you try to home.
        If they show something different, please post it here. Maybe you have to remove the "!" before "xstop" or add "^" to enable pullup resistors, that depends on your endstop-switches. (Y- and Z- axis the same)
        Anyway, M119 helps you to test endstop-switches.
        If they are OK, we have to check your homing files. Please post them here by using the </> button

        spelotoundefined 2 Replies Last reply Reply Quote 0
        • engikeneerundefined
          engikeneer @speloto
          last edited by

          @speloto FYI, the config.json file isn't actually used by the Duet at all. It can be uploaded to the config generator tool to repopulate all the settings you used when you created your config.g, homing files etc.
          This is good for making quick changes when you first start, but if you make any manual edits to your config.g or homing files, these won't be reflected in the .json file, so will be removed/overwritten if you use it to make a fresh set.

          DWC has an option to download a zipped folder. When setting up, I'd recommend downloading your /sys folder as a backup to your PC - that way you can refer to it if things start going weird 🙂

          E3D TC with D3Mini and Toolboards.
          Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
          i3 clone with a bunch of mods

          spelotoundefined 1 Reply Last reply Reply Quote 1
          • spelotoundefined
            speloto @o_lampe
            last edited by

            @o_lampe Thanks a lot I will try and let you know.

            1 Reply Last reply Reply Quote 0
            • spelotoundefined
              speloto @engikeneer
              last edited by speloto

              @engikeneer appreciate your short and clear explanation about json files. I was worried because editing config.g file I did not change the json file and was wondering if this is causing the problem. Looks like is not that! I will keep looking for posible mistakes.

              1 Reply Last reply Reply Quote 0
              • spelotoundefined
                speloto @o_lampe
                last edited by

                @o_lampe IT WORKS! I been struggling for weeks I should ask you before. Thanks guys for the excellent job helping people. I just clear the "!" and I can home.

                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