1 (edited by Landin81 2015-11-07 04:05:36)

Topic: Help with a Gcode

Im running repetier on my da vinci 1.0A and run Simplify3D.

I want my bed to lower before extruder goes over it from the starting position. And when extruder is over the bed I want the bed to get in to the 0 position again. sometimes my nozzle hits the bed and I want that gone, just like it was on the stock firmware when the bed lowered before the extruder get in to start the print.

Is that posible?

My current Gcode startup script that I got from "luc" looks like this: (without the indiana song smile

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

G28 ; Home extruder

G1 Z15.0 ;move the platform down 15mm

G92 E0 ;zero the extruded length

G1 F200 E3 ;extrude 3mm of feed stock

G92 E0 ;zero the extruded length again

M100

G4 P2 ; Paus for 2 seconds

2 (edited by carl_m1968 2015-11-07 04:22:16)

Re: Help with a Gcode

Try this and see if it helps..

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

G28 ; Home extruder

G1 Z30.0 ;move the platform down to 30mm

G92 E0 ;zero the extruded length

G1 F200 E3 ;extrude 3mm of feed stock

G92 E0 ;zero the extruded length again

G1 Z15.0 ;move the platform up to 15mm <<<< This should be your zero offset where the extruder is in print height.

M100

G4 P2 ; Paus for 2 seconds

Note on the Da Vinci I can't remember if positive values or negative values move the bed down so you might need to make the values for the Z moves negative. If that 30mm move tries to move up.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

3 (edited by Landin81 2015-11-07 04:45:32)

Re: Help with a Gcode

I dont know if that would be right.

As I have the code now. The bed moves down 15mm, but moves back up before the extruder start to move =/

So With your code, wont it: Lower to 30mm, than move up 15mm and than move up 15mm more before start?

4

Re: Help with a Gcode

Landin81 wrote:

I dont know if that would be right.

As I have the code now. The bed moves down 15mm, but moves back up before the extruder start to move =/

So With your code, wont it: Lower to 30mm, than move up 15mm and than move up 15mm more before start?


You might be right, but I did not add an extra 15mm line, I only added one line to your header.


Also if your extruder is hitting then that back corner is not at the same level as the rest of the bed.. Did you use the manual procedure which is a sticky here in the XYZ section or are you using the broken built in method?

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

5

Re: Help with a Gcode

Hm.
The first line you added was: G1 Z30.0 ;move the platform down to 30mm (not added but modified to 30 insted of 15)

The second line was: G1 Z15.0 ;move the platform up to 15mm <<<< This should be your zero offset where the extruder is in print height. Now this line will raise the bed 15mm leaving the bed 15mm off than what it was from the start.

The funny thing is that when I cali the bed its fine, even when I do a hot cali. I always do it with a paper.
but than, from nowhere, the extruder hits it anyway, sometimes.

thats why I need the bed to go down, let the extruder pass over the edge, and than rise the bed up again before print, just like in stock firmware. It has do be some way to fix it? smile

6

Re: Help with a Gcode

I did test some new codes, It did what I wanted, exept for the extruder to go far back.

BUT, in the end, what ever codes I put in there, the printer always do a G28 on all axis before the print starts =/


G1 X100 Y100 F3000; move extruder over bed center

G1 Z[first_layer_height]; Move Z to first layer height

7

Re: Help with a Gcode

You need to take the G28 line out and use your own code to move the extruder and home the axis the way you want.

The most basic you want to home then move down a safe distance then move to print start position and move back up to zero position. All the extruder feed 3mm and other stuff can be left out or at least commented out till you get what you want.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

8

Re: Help with a Gcode

Hm. But the G28 is set almost at the first point, and I want it to set home position sometime before the print starts due to if the extruder or bed is off for some reson.

So after the G28 is done, the other codes starts, and should not have anything to do with the G28 itself?

And after all the other codes have been executed, a G28 code is sent to the printer anyway for some reson, and that code isnt in my script =/

9

Re: Help with a Gcode

Only one guy that reply? Someone else know anything about this?

10

Re: Help with a Gcode

So after getting some help on another forum, and alot of hours spending, this is the code I came up with. This makes the bed lower before extruder moves over the edge.

M140 S[first_layer_bed_temperature] ; Bed (no wait)
G90 ; set absolute coordinates
G28 ; home all axis
M190 S[first_layer_bed_temperature] ; Bed (wait)
M109 S[first_layer_temperature] ; Extruder (wait)
M116 ; Wait for temperatures
M117 Start
M300 s1000 p400 ; Beep
M300 s1500 p400
M300 s2000 p400
M300 s2500 p400
M117 Cleaning
M100 ; Cleaning
G1 Z5 F1500
G1 X0 Y15 F1000
G1 X32 Y30 F1000
G92 E0 ; reset extrusion distance
G1 Z[first_layer_height] F4800.000
G1 X32 Y170 E14 F1000
G1 X32 Y185 F1000
M117 Printing

There was a m106 and m104 code in there but I got back from the printer that the code was not recognized.