nbmoretto
Posts: 2
Joined: Tue Aug 26, 2014 12:30 pm

Starting G-Code

I just installed a new custom heated build plate for my Replicator 2X which means my nozzle is right above the build plate when running the start code:

Code: Select all

; **** Replicator 2X start.gcode ****
M73 P0 ; enable build progress
G162 X Y F3000 ; home XY maximum
G161 Z F1200 ; home Z minimum
G92 Z-5 ; set Z to -5
G1 Z0 ; move Z to 0
G161 Z F100 ; home Z slowly
M132 X Y Z A B ; recall home offsets
M135 T0 ; load right extruder offsets
G1 X-130 Y-75 Z30 F9000 ; move to wait position off table
G130 X20 Y20 Z20 A20 B20 ; lower stepper Vrefs while heating
M126 S[fan_speed_pwm]
M140 S[bed0_temperature] T0
M134 T0 ; stabilize bed temperature
M104 S[extruder0_temperature] T0
M133 T0 ; stabilize extruder temperature
G130 X127 Y127 Z40 A127 B127 ; default stepper Vrefs
G92 A0 B0 ; zero extruders
G1 Z0.4 ; position nozzle
G1 E25 F300 ; purge nozzle
G1 X-125 Y-70 Z0.15 F1200 ; slow wipe
G1 X-120 Y-65 Z0.5 F1200 ; lift
G92 A0 B0 ; zero extruders
M73 P1 ;@body (notify GPX body has started)
; **** end of start.gcode ****
I was wondering if someone can help modify this script so instead of purging the nozzle in the front left the of the machine it does it in the front right and does the slow wipe towards the left instead of towards the right. Thanks!
66tbird
Posts: 33
Joined: Sat Sep 06, 2014 1:22 pm

Re: Starting G-Code

I've got the same issue almost. My heated bed mod on my Rep2 (Think4D) is so long I purge a big pile and the nozzle doesn't freely move through it when done. So I skip a few steps and my prints are not centered. Another issue is the cooling fan can strike the retainer clip while on its way to start the print after the purge.

I'd like to purge 6mm above the bed then move away from the edge, raise the bed and start the print.

I'd love a few ideas on changing the start code. Even less purge would help. Is that the F300 thing?

thanks
FDWorx
Posts: 6
Joined: Tue Nov 11, 2014 5:04 pm

Re: Starting G-Code

I would Like to do this as well......

What build plate did you purchase? Bottleworks?
66tbird
Posts: 33
Joined: Sat Sep 06, 2014 1:22 pm

Re: Starting G-Code

It came with the bot deal and it's a Think4D unit. I've been told I have the low amp version because it take 12 minutes to get to 65C. Times out twice trying to get to 105C. I'm not real happy with it.
paeonius
Posts: 24
Joined: Tue Jun 17, 2014 2:23 pm

Re: Starting G-Code

did anyone work out the solution of the big blob on the left hand side?
dsegel
Posts: 159
Joined: Tue Sep 30, 2014 5:37 pm

Re: Starting G-Code

The F value is the speed. The G1 lines are doing the actual moves:

G1 Z0 ; move Z to 0 - leaves the head wherever it is, but lowers it to the table

G1 X-130 Y-75 Z30 F9000 ; move to wait position off table - change to positive X to have it wait on the right side I guess. I don't have a Replicator so not sure what the positioning system is.

G1 E25 F300 ; purge nozzle - this starts extruding 25mm of filament at speed 300

G1 X-125 Y-70 Z0.15 F1200 ; slow wipe - this moves to the given XYZ position (or relative depending on settings) at speed 1200. Head is raised to 0.15mm.

G1 X-120 Y-65 Z0.5 F1200 ; lift - this moves to the given XYZ position (or relative depending on settings) at speed 1200. Head is raised to 0.5mm.

To have it raise higher, change the Z value to something bigger.

If you want to purge from right to left, you need to change the start position and then change the purge movement to be right-to-left instead. The code posted looks like it does a small diagonal wipe; that's not what I've seen before, so I may be wrong about this.
66tbird
Posts: 33
Joined: Sat Sep 06, 2014 1:22 pm

Re: Starting G-Code

paeonius wrote:found this discussion
https://groups.google.com/forum/#!topic ... liOwv-fIZM
Thank you

Return to “General Discussion and Tips”