UltiMaker uses functional, analytical and tracking cookies. Tracking cookies enhance your experience on our website and may also collect your personal data outside of Ultimaker websites. If you agree with the use of tracking cookies, click “I agree, continue browsing”. You can withdraw your consent at any time. If you do not consent with the use of tracking cookies, click “Refuse”. You can find more information about cookies on our Privacy and Cookie Policy page.
It isn't easy to explain. I wrote my own program to count characters in gcode files using the "Byte Offset" to find the line where a print stopped. Cura does not have a window that shows printer responses to Gcode commands so you need to use something like Pronterface. The code snippet below (for Marlin firmware) is to re-start a file at a point 11500750 bytes into the file.
Notice that there is a G28 line in the code. If the print is tall or at the front of the bed this can cause a crash. If the steppers have timed out and become disabled there must be a "Home" move before a restart can occur.
Send M27 to return the Byte location of the printing file. This IS SUPPOSED to be where the printer stopped.
Send M114 to return the XYZE locations for a restart.
Send M20 to list the files on the SD card in DOS 8.3 format (as the printer sees them)
M21 ;Initialize the SD card
M23 LWRROD~1.GCO ;File name in DOS 8.3
M26 S11500750 ;Byte Offset location to start at (from response to M27)
M140 S50 ; Bed temp
M190 S50 ;Wait for bed temp
M104 S215 ;Hot end temp
M109 S215 ;Wait for hot end
M105 ;Report temperature
M220 S90 ; Feed rate at 90%
M221 S105 ; Flow rate at 105%
G28 ;Home all axis
M106 S255 ;Fan on 100%
G0 F1200 Z94.8 ; This is the resume Z +10. The head has to move up above the print so it doesn't crash.
G0 F2400 X92.442 Y137.203 ; XY resume location
G92 E2484.26551 ;E resume location as a retraction
G0 F300 Z84.8 ;Drop down to the Z where printing will re-start
G0 F1200 E2492.26551 ;Un-retract to the real E location to prime the nozzle
M24 ;Print
Link to post
Share on other sites
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements. Check out the rest of this article to find out the details on all of that and more
We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
Recommended Posts
GregValiant 1,455
It isn't easy to explain. I wrote my own program to count characters in gcode files using the "Byte Offset" to find the line where a print stopped. Cura does not have a window that shows printer responses to Gcode commands so you need to use something like Pronterface. The code snippet below (for Marlin firmware) is to re-start a file at a point 11500750 bytes into the file.
Notice that there is a G28 line in the code. If the print is tall or at the front of the bed this can cause a crash. If the steppers have timed out and become disabled there must be a "Home" move before a restart can occur.
Send M27 to return the Byte location of the printing file. This IS SUPPOSED to be where the printer stopped.
Send M114 to return the XYZE locations for a restart.
Send M20 to list the files on the SD card in DOS 8.3 format (as the printer sees them)
M21 ;Initialize the SD card
M23 LWRROD~1.GCO ;File name in DOS 8.3
M26 S11500750 ;Byte Offset location to start at (from response to M27)
M140 S50 ; Bed temp
M190 S50 ;Wait for bed temp
M104 S215 ;Hot end temp
M109 S215 ;Wait for hot end
M105 ;Report temperature
M220 S90 ; Feed rate at 90%
M221 S105 ; Flow rate at 105%
G28 ;Home all axis
M106 S255 ;Fan on 100%
G0 F1200 Z94.8 ; This is the resume Z +10. The head has to move up above the print so it doesn't crash.
G0 F2400 X92.442 Y137.203 ; XY resume location
G92 E2484.26551 ;E resume location as a retraction
G0 F300 Z84.8 ;Drop down to the Z where printing will re-start
G0 F1200 E2492.26551 ;Un-retract to the real E location to prime the nozzle
M24 ;Print
Link to post
Share on other sites