Welcome! Log In Create A New Profile

Advanced

Custom start code for firmware 078d-dc42

Posted by lvperlo 
Custom start code for firmware 078d-dc42
July 18, 2014 09:32AM
Since I've updated to 078d-dc42 I needed to update the slic3r custum start code anyway and tried to clean up some code
I want the machine to go to the warm-up position first and then heat up bed and nozzle, in that order.
Why does the following code not work?
It does not go to the warm-position, but starts heating where it is and waits

Kind regards,
Leon

Quote

G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
M107 ; Fan Off
G1 Z5 F200 ; lift nozzle
G1 X2 Y190 F2000 ; Go to wait for warm position
M190 S65 ; wait for bed temperature to be reached
T1; Select extruder
M109 S205 ; wait for nozzle temperature to be reached
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
G1 X2 Y150 F2000; Go to start position

M107
G1 X2 Y190; park the machine
M0; stop
Re: Custom start code for firmware 078d-dc42
July 18, 2014 09:45AM
Leon, two possibilities:

1. slic3r has a habit of inserting extra gcode at the start of the file before your custom gcode. Take a look at one of the gcode files it has generated. You may find it has generated a command to set the hot end temperature and/or wait for it to be reached before your custom gcode. It may also depend on the version of slic3r you are using. I use 1.1.6.

2. If you have a single nozzle system, and you are using the tpre1.g file from my repository, edit it to comment out the M116 command in it.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Custom start code for firmware 078d-dc42
July 18, 2014 09:55AM
Hi,

To avoid anything being inserted by slic3r I edited the file by hand.
What is shown above is the entire file. Nothing else. I know it does not print anything, just to test the start sequence.
So I'm confused why it does not work as I think it should.

I don't use the tpre1.g files since I don't know where to find them and I don't use the buggy USB interface anyway.

Kind regards,
Leon
Re: Custom start code for firmware 078d-dc42
July 18, 2014 04:32PM
Hi Leon, I've reproduced that problem. Looking into it now.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Custom start code for firmware 078d-dc42
July 19, 2014 05:02AM
Leon, it looks like that my fork inherited that bug from RRP's 0.78 version. I will fix it shortly. In the meantime, a workaround is to insert a G4 P1 command just before any M109 or M190 commands in your code.

Edited 1 time(s). Last edit at 07/19/2014 05:04AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Custom start code for firmware 078d-dc42
July 19, 2014 06:35AM
Quote
lvperlo
Since I've updated to 078d-dc42 I needed to update the slic3r custum start code anyway and tried to clean up some code
I want the machine to go to the warm-up position first and then heat up bed and nozzle, in that order.
Why does the following code not work?
It does not go to the warm-position, but starts heating where it is and waits

Kind regards,
Leon

Quote

G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
M107 ; Fan Off
G1 Z5 F200 ; lift nozzle
G1 X2 Y190 F2000 ; Go to wait for warm position
M190 S65 ; wait for bed temperature to be reached
T1; Select extruder
M109 S205 ; wait for nozzle temperature to be reached
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
G1 X2 Y150 F2000; Go to start position

M107
G1 X2 Y190; park the machine
M0; stop

Hi Leon,

If you use the following code in slic3r, you don't then need the M109 and M 190 because the temperature is taken from the settings you have made on the Filament page of slic3r.

M140 S[first_layer_bed_temperature] ; Set bed heater
M116 ; Wait for everything (Bed temp)
M104 S[first_layer_temperature] ; Set hotend
M116 ; Wait for everything (Hotend temp)

Just copy and past.

Paul


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Custom start code for firmware 078d-dc42
July 24, 2014 01:58PM
Sorry, I wasn't at the machine earlier.

The fix in 078e-dc42 seems to work just fine
Paul, thanks for the custom code!

Kind regards,
Leon
Sorry, only registered users may post in this forum.

Click here to login