Jump to content

Gcode Impresion misma capa 2 colores


Matferrari

Recommended Posts

Posted · Gcode Impresion misma capa 2 colores

Estimados

Mi impresora es una Ender 3 NEO con bl touch (sensor de altura de cama) y un solo extrusor.

 

Hace unos meses imprimí en una misma capa con 2 colores modificando el Gcode. Funciono bien.

Ahora volví a intentar y el extrusor al ir a comenzar a imprimir raspa con el pico la cama.

Debo mencionar que desde la primera vez que imprimí ya actualicé varias veces Cura, pero el Gcode no se modifica (creo).

 

Aquí la parte inicial del Gcode para imprimir el primer archivo (primer color)

Esta parte no tiene ningún parámetro modificado.

 

; Ender 3 Custom Start G-code

G92 E0 ; Reset Extruder

G28 ; Home all axes

G1 Z5.0 F3000 ; Move Z Axis up a bit during heating to not damage bed

M104 S{material_standby_temperature} ; Start heating up the nozzle most of the way

M190 S{material_bed_temperature_layer_0} ; Start heating the bed, wait until target temperature reached

M109 S{material_print_temperature_layer_0} ; Finish heating the nozzle

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed

G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position

G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line

G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little

G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line

G92 E0 ; Reset Extruder

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed

G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish

 

 

Finalizar Gcode del primer archivo

 

;G91 ;Relative positioning

;G1 E-2 F2700 ;Retract a bit

;G1 E-2 Z0.2 F2400 ;Retract and raise Z

;G1 X5 Y5 F3000 ;Wipe out

;G1 Z10 ;Raise Z more

;G90 ;Absolute positioning

 

;G1 X0 Y{machine_depth} ;Present print

;M106 S0 ;Turn-off fan

;M104 S0 ;Turn-off hotend

;M140 S0 ;Turn-off bed

 

;M84 X Y E ;Disable all steppers but Z

 

;dos capas

M140 S60 ; mantiene la capa caliente a 60°

M104 S200 ; mantiene el extrusor a 200° para que no se enfrie

G1 X10 Y10 Z10 ; mueve el extrusor a una esquina para cambiar de filamento

G1 E-60 ; retrae el filamento 60mm para cambiarlo

M300 S440 P200 ; pitido de aviso

 

Se utiliza la parte en rojo

 

 

Ahora el Gcode del 2do archivo (2do color)

 

Inicio

 

; Ender 3 Custom Start G-code

G92 E0 ; Reset Extruder

;G28 ; Home all axes

G1 Z5.0 F3000 ; Move Z Axis up a bit during heating to not damage bed

M104 S{material_standby_temperature} ; Start heating up the nozzle most of the way

M190 S{material_bed_temperature_layer_0} ; Start heating the bed, wait until target temperature reached

M109 S{material_print_temperature_layer_0} ; Finish heating the nozzle

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed

G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position

G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line

G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little

G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line

G92 E0 ; Reset Extruder

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed

G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish

 

Se desactiva la linea en celeste, esto impide que el sensor de la cama actue.

 

 

Parte final del Gcode

 

G91 ;Relative positioning

G1 E-2 F2700 ;Retract a bit

G1 E-2 Z0.2 F2400 ;Retract and raise Z

G1 X5 Y5 F3000 ;Wipe out

G1 Z10 ;Raise Z more

G90 ;Absolute positioning

 

G1 X0 Y{machine_depth} ;Present print

M106 S0 ;Turn-off fan

M104 S0 ;Turn-off hotend

M140 S0 ;Turn-off bed

 

M84 X Y E ;Disable all steppers but Z

 

;dos capas

;M140 S60 ; mantiene la capa caliente a 60°

;M104 S200 ; mantiene el extrusor a 200° para que no se enfrie

;G1 X10 Y10 Z10 ; mueve el extrusor a una esquina para cambiar de filamento

;G1 E-60 ; retrae el filamento 60mm para cambiarlo

;M300 S440 P200 ; pitido de aviso

 

Se utiliza solo la parte roja.

Alguien puede indicarme en donde radica mi error?

Muchas gracias.

  • Link to post
    Share on other sites

    Posted (edited) · Gcode Impresion misma capa 2 colores

    To see if I understand...

    • There are two gcode files.
    • The first file finishes with a partial top layer.
    • The second file is printed.
    • It completes the partial layer left by the first file and continues for 2 more layers.
    • The print finishes with the standard ending gcode.

    Is that what you are trying to do?

     

    When the first print ends - some firmware will automatically disable the stepper motors even without an M84.  At that point they lose their location.  When the second print starts with no "G28" the steppers don't know where they are.  That will cause layer shifts and might be the cause of the nozzle hitting the bed.

     

    Have you tried "splicing" the files by copying the second file into the first file?

     

    If you use "Pause at Height" at the layer after that partial layer you could cut the pause gcode out and paste it in where you wanted it.  You would absolutely need to change the XYZE lines so the print would continue from the correct location of all axes.  That is not as difficult as trying to print a second gcode file on top of a print.

     

    This would be the pause portion of the gcode.  The lines that would/might require changes are in bold.

    ;TYPE:CUSTOM
    ;added code by post processing
    ;script: PauseAtHeight.py
    ;current layer: 15
    M83 ; switch to relative E values for any needed retraction
    G1 F300 Z5 ; move up a millimeter to get out of the way
    G1 F9000 X0 Y0  ; park the head
    G1 F300 Z15 ; too close to bed--move to at least 15mm
    M104 S205 ; standby temperature
    M0 ; Do the actual pause
    M104 S205 ; resume temperature
    G1 F300 Z4
    G1 F9000 X64.325 Y107.595
    G1 F300 Z4 ; move back down to resume height
    G1 F2100 ; restore extrusion feedrate
    M82 ; switch back to absolute E values
    G92 E1633.44314
    ;LAYER:15

    Edited by GregValiant
  • 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!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...