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

    Programing issues

    Scheduled Pinned Locked Moved
    General Discussion
    6
    23
    507
    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.
    • Tinkerworksgarageundefined
      Tinkerworksgarage
      last edited by

      ; homex.g
      ; called to home the X axis
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri Jan 14 2022 15:32:45 GMT-0800 (Pacific Standard Time)
      G91               ; relative positioning
      G1 H2 Z5 F6000    ; lower Z relative to current position
      G1 H1 X20 F1800   ; BACK OFF TO CLEAR STOP
      G1 H1 Y-20 F1800  ;MOVE Y BACK SAME AS X MOVES TO HOLD POSITION
      G1 H1 X-505 F1800 ; move quickly to X axis endstop and stop there (first pass)
      G1 H1 Y505 F1800   ;MOVE Y BACK SAME AS X TO HOLD POSITION
      G1 H2 X5 F6000    ; go back a few mm
      G1 H1 X-505 F500  ; move slowly to X axis endstop once more (second pass)
      G1 H1 Y505 F500    ;MOVE Y BACK SAME AS X TO HOLD POSITION
      G1 H2 Z-5 F6000   ; lift Z again
      G90               ; absolute positioning
      

      Would to this work to hold position for y as x moves to home. same would be done for x as y homes?

      1 Reply Last reply Reply Quote 0
      • alankilianundefined
        alankilian @Tinkerworksgarage
        last edited by alankilian

        @tinkerworksgarage said in Programing issues:

        Next issue is when homing x the y will hit end and just keep trying to move.

        I don't quite understand why your Y axis would move when you command a move in the X axis.

        Can you try entering G1 X moves one way and the other and verify that the Y axis does not move at all? It shouldn't.

        G91               ; relative positioning
        G1 X20 F1800
        G1 X-20 F1800
        

        Entering these should move ONLY the X-axis right 20mm and then left 20mm

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        Tinkerworksgarageundefined 1 Reply Last reply Reply Quote 0
        • Tinkerworksgarageundefined
          Tinkerworksgarage
          last edited by

          ; homex.g
          ; called to home the X axis
          G91               ; relative positioning
          G1 H2 Z5 F6000    ; lower Z relative to current position
          G1 H1 X20 Y20 F1800   ; BACK OFF TO CLEAR STOP
          G1 H1 X-505 Y-540 F1800 ; move quickly to X axis endstop and stop there (first pass)
          G1 H2 X5 Y10 F6000    ; go back a few mm
          G1 H1 X-505 Y-540 F500  ; move slowly to X axis endstop once more (second pass)
          G1 H2 Z-5 F6000   ; lift Z again
          G90               ; absolute positioning
          
          

          Ok so tried this and y stays still as x homes but x hits endstop switch and keeps trying to move more.

          1 Reply Last reply Reply Quote 0
          • Tinkerworksgarageundefined
            Tinkerworksgarage @alankilian
            last edited by

            @alankilian
            It will not let me as axis is not homed already.

            1 Reply Last reply Reply Quote 0
            • Tinkerworksgarageundefined
              Tinkerworksgarage
              last edited by

              I don't get it. I had x working decent but y would still move some. Also had y moving decent but x would still move some. Even had Y staying still and was able to home x. then all of a sudden it all went haywire again. I even did M669 K1 to make sure was still in corexy mode. Back to moving and crashing

              alankilianundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
              • alankilianundefined
                alankilian @Tinkerworksgarage
                last edited by

                @tinkerworksgarage

                You can do M564 to allow movements without homing.

                Please post your complete config.g

                The one your posted earlier has your machine configured in Cartesian mode which would cause all these problems.

                SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                1 Reply Last reply Reply Quote 0
                • Tinkerworksgarageundefined
                  Tinkerworksgarage
                  last edited by

                  ; Configuration file for Duet WiFi (firmware version 3.3)
                  ; executed by the firmware on start-up
                  ;
                  ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri Jan 14 2022 15:32:45 GMT-0800 (Pacific Standard Time)
                  
                  ; General preferences
                  G90                                            ; send absolute coordinates...
                  M83                                            ; ...but relative extruder moves
                  M550 P"Thor"                             ; set printer name
                  
                  ; Network
                  M552 S1                                        ; enable network
                  M586 P0 S1                                     ; enable HTTP
                  M586 P1 S0                                     ; disable FTP
                  M586 P2 S0                                     ; disable Telnet
                  
                  ; Drives
                  M569 P0 S1                                     ; physical drive 0 goes forwards
                  M569 P1 S0                                     ; physical drive 1 goes forwards
                  M569 P2 S0                                     ; physical drive 2 goes forwards
                  M569 P3 S1                                     ; physical drive 3 goes forwards
                  M584 X0 Y1 Z2 E3                               ; set drive mapping
                  M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
                  M92 X80.00 Y80.00 Z400.00 E420.00              ; set steps per mm
                  M566 X900.00 Y900.00 Z60.00 E120.00            ; set maximum instantaneous speed changes (mm/min)
                  M203 X6000.00 Y6000.00 Z180.00 E1200.00        ; set maximum speeds (mm/min)
                  M201 X500.00 Y500.00 Z20.00 E250.00            ; set accelerations (mm/s^2)
                  M906 X1500 Y1500 Z1500 E1500 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 X330 Y330 Z350 S0                         ; set axis maxima
                  
                  ; Endstops
                  M574 X1 S1 P"!xstop"                            ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                  M574 Y1 S1 P"!ystop"                            ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
                  M574 Z2 S2                                     ; configure Z-probe endstop for low end on Z
                  
                  ; Z-Probe
                  M950 S0 C"exp.heater7"                          ; Duet 2 WiFi/Ethernet
                  M558 P31 C"^zprobe.in" H5 F120 T6000 A10 R0.5 S0.005 B0           ; set Z probe type to unmodulated and the dive height + speeds
                  G31 P500 X35 Y0 Z0.26                            ; set Z probe trigger value, offset and trigger height
                  M557 X10:300 Y20:310 S50                       ; define mesh grid
                  
                  ; Heaters
                  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 B0 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
                  M563 P0 D0 H1 F0                               ; 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
                  
                  ; Custom settings are not defined
                  
                  

                  Ok here is complete config.g file with what I have setup right now. I believe it is setup for corexy but am not sure how to check to see. I also believe that this could be one of the main problems (possibly could be reverting back to cartesian on its own) If it is reverting back how do I get it to stay in corexy.

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

                    @tinkerworksgarage said in Programing issues:

                    I even did M669 K1 to make sure was still in corexy mode

                    That is not enough to insure that XY motions are correct.

                    Did you read the docs on how to get your steppers configured and wired correctly?

                    Frederick

                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                    1 Reply Last reply Reply Quote 0
                    • alankilianundefined
                      alankilian @Tinkerworksgarage
                      last edited by

                      @tinkerworksgarage said in Programing issues:

                      I believe it is setup for corexy but am not sure how to check to see.

                      You must have Cartesian checked in the Reprap Configuration Tool.
                      Your config.g is NOT set for corexy. If it was it would have an M669 K1 near the top.

                      Capture.PNG

                      HERE is the document that tells you step-by-step how to configure it and get the motor-direction descriptions right. (Thanks @fcwilt)

                      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                      Tinkerworksgarageundefined 1 Reply Last reply Reply Quote 0
                      • Tinkerworksgarageundefined
                        Tinkerworksgarage @alankilian
                        last edited by

                        @alankilian
                        I had selected corexy when setting it up in reprap configurator. Thats why I think something keeps resetting back and not keeping changes.

                        alankilianundefined 1 Reply Last reply Reply Quote 0
                        • alankilianundefined
                          alankilian @Tinkerworksgarage
                          last edited by alankilian

                          @tinkerworksgarage

                          something keeps resetting back and not keeping changes

                          That's not really something that happens.

                          • Run the RRF configurator
                          • Download the zip file
                          • Unzip the zip file
                          • Post the config.g from the unzipped folder

                          We'll then be able to see the Kinematic configuration

                          • Upload the WHOLE ZIP file to your Duet and update it.
                          • Power-cycle your printer
                          • Download the config.g from your printer
                          • Post that config.g

                          We'll THEN see if your printer updated appropriately.

                          SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                          1 Reply Last reply Reply Quote 0
                          • Tinkerworksgarageundefined
                            Tinkerworksgarage
                            last edited by

                            Thank you all so much for all the help. It has been a long process for me as I am used to Marlin. I RRF Config tool again and double & triple checked everything. I then got a different sd card and reloaded firmware on new card. Things seem to be working now, not perfect but some setting and I should be good. If i have any more question or problems I will ask as you all have been a huge help.
                            Thank you all again

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