Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order
    1. Home
    2. equanimity8
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    equanimity8

    @equanimity8

    5
    Reputation
    55
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    equanimity8 Follow

    Best posts made by equanimity8

    • RE: Error when setting up independent motor bed levelling on CoreXY

      I confirm that after setting up the firmware from scratch everything works as expected. There are still a couple of things that need to be ironed out but I think they go beyond the scope of this thread as tilt correction works.

      Thanks to all who helped, I wish I could buy you each a beer!

      Best

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Error when setting up independent motor bed levelling on CoreXY

      @sebkritikel By all means! Bear in mind that I have made no changes of my own beyond what was discussed/posted in this thread (except for the fans but I find that irrelevant given the topic) - in other words, the new firmware is an amalgamation of the code cited here. In any case, I will link all relevant code snippets below in the hopes that they serve someone in the future.

      bed.g

      M561 ; clear any bed transform
      
      G28 ; home
      G30 P0 X105 Y0 Z-99999 ; probe near a leadscrew, half way along Y axis
      G30 P1 X105 Y150 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
      

      config.g

      ; General preferences
      G90                                     ; send absolute coordinates...
      M83                                     ; ...but relative extruder moves
      M550 P"Printer Extrusions"              ; 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
      M569 P0 S1                              ; physical drive 0 goes forwards
      M569 P1 S1                              ; physical drive 1 goes forwards
      M569 P2 S0                              ; physical drive 2 goes backwards
      M569 P3 S1                              ; physical drive 3 goes forwards
      M569 P4 S0                              ; physical drive 4 goes backwards
      
      M584 X0 Y1 Z2:4 E3                      ; set drive mapping
      M671 X105:105 Y0:150 S5 ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
      
      M350 X16 Y16 Z16 E16 I1                 ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z80 E456.00  		    ; set steps per mm
      M566 X900.00 Y900.00 Z1.00 E120.00     ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z1800.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z250.00 E250.00     ; set accelerations (mm/s^2)
      M906 X1200 Y1200 Z1100 E1100 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 X210 Y150 Z150 S0                  ; set axis maxima
      
      ; Endstops
      M574 X1 Y1 Z0 S0
      
      ; Z-Probe
      M558 P8 H10 I1 R1 F600 X0 Y0 Z1
      G31 X0 Y0 Z-0.25 P600
      
      ; Heaters
      M140 H-1                                ; disable heated bed
      M305 P1 T100000 B4138 R4700             ; set thermistor + ADC parameters for heater 1
      M143 H1 S280                            ; set temperature limit for heater 1 to 250C
      
      ; Fans
      M106 P0 S0 I0 F500 H-1                  ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S1 I0 F500 H1 T50               ; set fan 1 value, PWM signal inversion and frequency. 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
      
      ; Miscellaneous
      T0                                      ; select first tool
      

      homeall.g

      ;Home X and Y
      G91                     	; relative positioning
      G1 Z5 F420 H2        		; Lower bed 5mm to ensure it is below the switch trigger height
      M400
      M913 X50 Y50	 		; set X Y motors to 50% of their normal current for homing
      G1 H1 X-375 Y-305 F600   	; course home X or Y
      G1 H1 X-375 F600              	; course home X
      G1 H1 Y-305 F600              	; course home Y
      G1 X5 Y5 F600             	; move away from the endstops
      G1 H1 X-10 F200           	; fine home X
      G1 H1 Y-10 F200               	; fine home Y
      G1 X5 Y5 F600  			; go to origin
      M400
      M913 X100 Y100	 		; set X Y motors to 100% of their normal current
       
      ;Home Z
      G90              ; absolute positioning
      G1 X100 Y50 F600  ; go to first probe point
      G30              ; home Z by probing the bed
      G91              ; relative positioning
      G1 Z5 F420       ; lift Z relative to current position
      G90              ; absolute positioning
       
      ;Load height map
      G29 S1
      
      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Tweaking slicer end gcode

      Thanks! Apparently, I wasn't understanding the code fully.

      Anyway, I have implemented both of your suggestions and both work. I will stick to the latter one as I find it to be more elegant.

      I'm pasting the resulting end gcode in the hopes that it will be useful to somebody:

      G1 E-2 F1800; retract
      G91; relative positioning
      G1 Z5 F1800 ; lift Z relative to current position
      G90; absolute positioning
      G1 X5 F6000; move to X min
      G1 Y5 F6000; move to Y min
      G1 Z150 F1800; move to Z max
      G10 R0 S0; turn extruder heater off
      M291 P"Do you want to cooldown the printer?" S3
      G10 R45 S45; set extruder temp to 50C
      M106 S255; turn part-cooling fan on
      M116 S5; wait
      G10 R0 S0; turn extruder heater off
      M106 S0; turn part-cooling fan off
      

      Thanks for your input!

      posted in Tuning and tweaking
      equanimity8
      equanimity8

    Latest posts made by equanimity8

    • RE: Tweaking slicer end gcode

      Thanks! Apparently, I wasn't understanding the code fully.

      Anyway, I have implemented both of your suggestions and both work. I will stick to the latter one as I find it to be more elegant.

      I'm pasting the resulting end gcode in the hopes that it will be useful to somebody:

      G1 E-2 F1800; retract
      G91; relative positioning
      G1 Z5 F1800 ; lift Z relative to current position
      G90; absolute positioning
      G1 X5 F6000; move to X min
      G1 Y5 F6000; move to Y min
      G1 Z150 F1800; move to Z max
      G10 R0 S0; turn extruder heater off
      M291 P"Do you want to cooldown the printer?" S3
      G10 R45 S45; set extruder temp to 50C
      M106 S255; turn part-cooling fan on
      M116 S5; wait
      G10 R0 S0; turn extruder heater off
      M106 S0; turn part-cooling fan off
      

      Thanks for your input!

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Tweaking slicer end gcode

      Thanks for mentioning G4 I will go in that direction.

      @Phaedrux said in Tweaking slicer end gcode:

      Well you've set the temp to 50, but the PID tune is for 220, so it's not going to be able to keep it very stable.

      I agree that if I set a temp of 50C and I have an existing PID tuning for 220C there would be some fluctuations but since I'm trying to get down to 50C it shouldn't try to increase the temp, to the best of my understanding, just keep the heater off. Also, if it's trying to maintain 50C why does it do it for a certain amount of time and then complete the rest of the gcode instead of just trying to maintain 50C and getting stuck there?

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Tweaking slicer end gcode

      Sorry it took me a bit to get back to this.

      I reverted to an earlier version of DWC and now the message displays properly. Thanks!

      Any ideas about the temp fluctuation?

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Tweaking slicer end gcode

      I run DWC 3.1.1. which appears to be the latest stable release. Also, thanks for pasting your end gcode!

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • Tweaking slicer end gcode

      Hi guys,

      I'm trying to iron out some issues from my end gcode in Cura. I run RRF 2.05.1 and I do have the gcode flavour set to RRF.

      At the end of a print I want to retract, move Z up 5mm from the relative position, move X and Y to min and Z to max, turn the extruder to 0C (so I don't cook the filament in the nozzle even if I'm not there immediately), and get a message that asks me if I want to cool down the printer. If yes, I want to turn the part-cooling fan on so the hotend can cool down faster, and if no, (for example if I'm going to start another print job and there is no point in cooling the hotend down) I want nothing to happen.

      The current gcode is as follows:

      G1 E-2 F1800; retract
      G91; relative positioning
      G1 Z5 F1800 ; lift Z relative to current position
      G90; absolute positioning
      G1 X5 F6000; move to X min
      G1 Y5 F6000; move to Y min
      G1 Z150 F1800; move to Z max
      G10 R0 S0; turn extruder heater off
      M291 P"Do you want to cool down the printer?" S3
      G10 R50 S50; set extruder temp to 50C
      M106 S255; turn part-cooling fan on
      M116; wait
      G10 R0 S0; turn extruder heater off
      M106 S0; turn part-cooling fan off
      

      The first issue is that I dont get the "OK" and "Cancel" options on the pop-up message to cool down the printer as M291 S3 would suggest.
      Pic:1.png

      The second issue is that when I do decide to cool down the printer, the hotend goes down to about 51-52C and heats up to about 53-54C and starts to bounce up and down at about that temp for about 5 min. I have an original E3D v6, that has been PID tuned at 220C in addition to using the correct E3D settings in config.g
      Pic: 2.png

      Thanks to all who try and help!
      Best!

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Dual motor bed tilt-compensation only goes through the motions

      Yep, I though the same but I wanted to make sure after, apparently I got the initial misconception about G28. Thanks a lot for clarifying that to me! Enjoy your weekend!

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Dual motor bed tilt-compensation only goes through the motions

      This is a screenshot of my height map and the relevant statistics after G32 and mesh bed compensation. Should I assume that this is normal, given the capabilities of my setup and that there is no way to improve it without improving the hardware?
      1.PNG

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Dual motor bed tilt-compensation only goes through the motions

      The console output of 3 consequitive G32s:

      11/1/2020, 12:09:59 PM	G32
      Leadscrew adjustments made: 0.019 -0.044, points used 2, deviation before 0.028 after 0.000
      11/1/2020, 12:09:43 PM	G32
      Leadscrew adjustments made: 0.007 -0.057, points used 2, deviation before 0.035 after 0.000
      11/1/2020, 12:09:32 PM	G32
      Leadscrew adjustments made: 0.019 -0.044, points used 2, deviation before 0.028 after 0.000
      

      I execute it from a macro, which is as follows:

      M557 X0:210 Y0:150 S30
      G29
      
      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Dual motor bed tilt-compensation only goes through the motions

      @Veti
      I commented out G29 S1 and there was no change in behaviour i.e. my bed compensation mesh still shows significant tilt that should have been corrected by G32.

      Further, why would G28 load my height map again? To the best of my knowledge, it homes all axes, it doesn't execute homeall.g.

      posted in Tuning and tweaking
      equanimity8
      equanimity8
    • RE: Dual motor bed tilt-compensation only goes through the motions

      @Veti
      Thanks for clarifying. I looked up E3D's v6 documentation and they indeed specify a different value (M305 P1 B4725 C7.060000e-8).

      Yes, my second motor is connected to driver e1, no independent motor tilt-compensation would be possible otherwise.

      posted in Tuning and tweaking
      equanimity8
      equanimity8