Do we have to declare jerk somewhere in FW?



  • Hi.
    Ender 5 Pro with BL Touch
    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.05.1 (2020-02-09b1)
    WiFi Server Version: 1.23
    Web Interface Version: 1.22.6

    I am watching this video as I learned that my printer's jerk & acceleration is not set correctly and therefore suffer from ringing, amongst other things. I was therefore advised to watch the video to test and set my printer's jerk & acceleration.

    When I do M503 I do not see the M204 declared and also not that jerk is mentioned. How will I know if jerk is enabled on my printer? (I understand that RepRap and Marlin are not the same and use different G-code, but will love to know the RR code equivalent for Marlin.)

    If there is another YouTube video explaining the same for Duet/Reprap, I will really appreciate it if you can point me to it.

    Thanks for your help.



  • @deonholt M204 isn't for jerk. M205 is
    M204: Set printing and travel accelerations
    M205: Set max instantaneous speed change in mm/sec
    duet Gcode



  • @dhusolo said in Do we have to declare jerk somewhere in FW?:

    @deonholt M204 isn't for jerk. M205 is
    M204: Set printing and travel accelerations
    M205: Set max instantaneous speed change in mm/sec
    duet Gcode

    Thanks very much.
    Interesting enough I have neither declared in my Firmware or config.g
    I am very new to 3D printing and even newer to Duet/RR.

    Can I enter it from the web UI console and save it with M500 to the printer (if I remember correctly)? Does it need to be declared in a specific order/place?

    Thanks again.



  • @deonholt actually that's my mistake.
    M566: Set allowable instantaneous speed change

    M205 is an alternative to M566 for compatibility with Marlin.
    Open your config.g file through your web browser. and make the changes there. Don't use M500.

    I used Marlin for years before switching to Duet. It's a bit of a learning curve but once you get used to it it's easier and more convenient doing it through your browser.

    As far as order goes look in the Gcode page i linked previously. If there's conditions as to where the code must be it'll say in the description. Personally I have my configs setup with each gcode relating to each other entered together

    ; General preferences
    M80													; Turns on the ATX power supply
    G90                                                     ; send absolute coordinates...
    M83                                                     ; ...but relative extruder moves
    M667 S0 												; Select Cartesian mode
    
    ; Network
    M552 S1                                                 ; enable network
    M552 P192.168.###.###										; set IP Address
    M553 P255.255.###.###										; set Mac Address
    M554 P192.168.###.###										; Set default Gateway
    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 backwards
    M569 P2 S1                                              ; physical drive 2 goes forwards
    M569 P3 S0                                              ; physical drive 3 goes backwards
    M569 P4 S1                                              ; physical drive 3 goes forwards
    M584 X0 Y1 Z2:4 E3                                        ; set drive mapping
    M350 X32 Y32 I0                                         ; configure microstepping without interpolation
    M350 Z16 E16 I1                                         ; configure microstepping with interpolation
    M92 X160.00 Y160.00 Z400.00 E415.15                     ; set steps per mm
    M566 X700.00 Y700.00 Z240.00 E5000.00                   ; set maximum instantaneous speed changes (mm/min)
    M203 X18000.00 Y18000.00 Z1000.00 E12000.00            ; set maximum speeds (mm/min)
    M201 X1500.00 Y1500.00 Z120.00 E5000.00                     ; set accelerations (mm/s^2)
    M906 X1600 Y1600 Z1500 E1600 I30                        ; set motor currents (mA) and motor idle factor in per cent
    M84 S120                                                  ; Set idle timeout
    
    ; Axis Limits
    M208 X0 Y-18 Z0 S1                                        ; set axis minima
    M208 X300 Y280 Z216 S0                                  ; set axis maxima
    
    ; Endstops
    M574 X1 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 S2                                              ; configure Z-probe endstop for low end on Z
    M591 D0 P1 C"e0stop" S1								    ; configure filament runout sensor for high end on extruder drive 0 via pin i03.in
    
    ; Z-Probe
    M950 S0 C"exp.heater3"                                  ; create servo pin 0 for BLTouch
    M558 P9 C"^zprobe.in" H5 F300 T9000                    ; set Z probe type to bltouch and the dive height + speeds
    G31 P500 X0 Y0 Z.200                                   ; set Z probe trigger value, offset and trigger height
    M557 X23:250 Y20:275 S75                                ; define mesh grid
    
    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor" A"Bed" T100000 B4725 C0.0000000706 R4700 ; 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 A284.0 C843.8 D11.0 V23.9 B0					; Heatbed PID
    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" A"Hotend" T100000 B4725 C0.0000000706 R4700  ; 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 A284.1 C115.5 D2.6 V23.9 S0.9 B0				; Hotend PID .4mm
    M143 H1 S260
    M308 S2 P"mcu-temp" Y"mcu-temp" A"Duet Board" ; Configure MCU sensor
    
    ; Fans
    M950 F0 C"fan0" Q500                                    ; create fan 0 on pin fan0 and set its frequency
    M106 P0 C"MB Fan" T40:60 H2                                       ; set fan 0 value. Thermostatic control is turned on
    M950 F1 C"fan1" Q500                                    ; create fan 1 on pin fan1 and set its frequency
    M106 P1 C"Layer fan" S0 H-1                                          ; set fan 1 value. Thermostatic control is turned off
    M950 F2 C"fan2" Q500                                    ; create fan 2 on pin fan2 and set its frequency
    M106 P2 C"HE Fan" S1 H1 T40                                       ; set fan 2 value. Thermostatic control is turned off
    
    ; Tools
    M563 P0 D0 H1 F1                                   ; 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
    M564 H0                                   	             ; Let the Jog buttons work blv: added to allow jog buttons
    M501 						                                             ; Load EEPROM 
    
    ; Miscellaneous
    M575 P1 S1 B57600                                       ; enable support for PanelDue
    
    

  • Moderator

    M566 X700.00 Y700.00 Z240.00 E5000.00                   ; set maximum instantaneous speed changes (mm/min)
    M203 X18000.00 Y18000.00 Z1000.00 E12000.00            ; set maximum speeds (mm/min)
    M201 X1500.00 Y1500.00 Z120.00 E5000.00                     ; set accelerations (mm/s^2)
    

    Speed acceleration and jerk are defined in your config.g here.

    You can also specify M204 P T which is acceleration for print and travel moves, so you can have faster travel moves.

    M205 etc are the marlin gcode commands for those things. they are also supported in reprap, so it's really up o you what you want to use.


Log in to reply