Repetier Server Disregards Start and Ending Homing

Hello,

It seems that Repetier Server disregards homing G28 (G28 X0 Y0) at the beginning and end of prints.  I have it in both the slicer gcode and the printer settings start and end setting.  If I manually send the command outside of a print it works.  I have autolevel G32 set up and it works great, but it will start from the current position without homing X and Y sometimes missing the bed.  At the end of the print, it will leave the nozzle on the object without homing x and y fusing to the object and melting a hole.  I've tried moving the command to before and after M104 S0 and it doesn't seem to have any effect. 

Comments

  • I tested the servers start/end script an dit seems to be send, only on pause start I'm not sure at the moment.

    Can you post a small gcode (small cube) you printed and a log of the print. The log should exactly show what got send and if there is a problem somewhere.
  • How do I attach something.  It says it is too many characters.  I'll try and post the start and end code.
  •  N1002 G28 X0
    < 13:36:35.828: N1003 G28 Y0
    > 13:36:35.828: ok 1002
    > 13:36:36.677: X:0.00 Y:0.00 Z:0.000 E:0.0000
    < 13:36:36.678: N1004 M105
    > 13:36:36.678: ok 1003
    > 13:36:37.528: X:0.00 Y:0.00 Z:0.000 E:0.0000
    < 13:36:37.528: N1005 M107
    > 13:36:37.529: ok 1004
    > 13:36:37.531: T:27.68 /0 B:29.42 /0 B@:0 @:0
    < 13:36:37.532: N1006 M190 S105 ; set bed temperature
    > 13:36:37.533: ok 1005
    < 13:36:37.535: N1007 M104 S240 ; set temperature
    > 13:36:37.535: ok 1006
    > 13:36:37.536: TargetBed:105
    (Bed Heating)
    N1008 M105
    > 13:42:16.958: ok 1007
    > 13:42:16.959: TargetExtr0:240
    < 13:42:16.961: N1009 G91 ; using relative distance
    > 13:42:16.962: ok 1008
    > 13:42:16.965: T:29.02 /240 B:104.51 /105 B@:255 @:0
    < 13:42:16.965: N1010 G1 Z10 ; go to position Z 10
    > 13:42:16.966: ok 1009
    < 13:42:16.970: N1011 G90 ; absolute positioning
    > 13:42:16.970: ok 1010
    > 13:42:16.973: ok 1011
    < 13:42:16.973: N1012 G32 S2 ; Auto leveling
    < 13:42:16.977: N1013 M109 S240 ; wait for temperature to be reached
    > 13:42:16.977: ok 1012
    > 13:42:16.978: Info:Autoleveling disabled
    > 13:42:34.672: Z-probe:20.86 X:20.00 Y:20.00
    > 13:42:58.436: Z-probe:21.73 X:160.00 Y:20.00
    > 13:43:22.575: Z-probe:21.46 X:100.00 Y:160.00
    > 13:43:33.272: Transformation matrix: 0.999981 -0.000005 -0.006196 0.000000 1.000000 -0.000763 0.006196 0.000763 0.999980
    > 13:43:33.273: Info:Autoleveling enabled
    > 13:43:34.043: X:99.87 Y:159.98 Z:21.461 E:0.0000
    < 13:43:34.044: N1014 M105
    > 13:43:34.046: ok 1013
    > 13:43:34.047: TargetExtr0:240
    > 13:43:35.050: T:236.88 /240 B:105.05 /105 B@:0 @:224
    > 13:43:36.049: T:238.13 /240 B:104.98 /105 B@:0 @:207
    > 13:43:37.051: T:239.38 /240 B:104.85 /105 B@:0 @:187
    < 13:43:37.426: N1015 M105
    > 13:43:37.427: ok 1014
    > 13:43:37.430: T:240.00 /240 B:104.85 /105 B@:255 @:176
    < 13:43:37.430: N1016 G21 ; set units to millimeters
    > 13:43:37.431: ok 1015
    > 13:43:37.433: T:240.00 /240 B:104.85 /105 B@:255 @:176
    < 13:43:37.434: N1017 G90 ; use absolute coordinates
    > 13:43:37.435: ok 1016
    < 13:43:37.437: N1018 M82 ; use absolute distances for extrusion
    > 13:43:37.437: ok 1017

    Printing

    < 14:11:22.793: N5981 G92 E0
    > 14:11:22.793: ok 5980
    > 14:11:22.797: T:238.44 /238 B:94.95 /95 B@:255 @:140
    < 14:11:22.797: N5982 M107
    > 14:11:22.798: ok 5981
    > 14:11:22.801: ok 5982
    < 14:11:22.801: N5983 M104 S0 ; turn off temperature
    > 14:11:22.802: Fanspeed:0
    < 14:11:22.805: N5984 M84     ; disable motors
    > 14:11:22.805: ok 5983
    > 14:11:24.258: TargetExtr0:0
    > 14:11:24.296: Printed filament:1163.71m Printing time:13 days 3 hours 33 min
    < 14:11:24.297: N5985 M105
    > 14:11:24.297: ok 5984
    < 14:11:24.300: N5986 G28 X0
    > 14:11:24.301: ok 5985
    > 14:11:24.303: T:238.75 /0 B:95.12 /95 B@:255 @:0
    < 14:11:24.305: N5987 G28 Y0
    > 14:11:24.305: ok 5986
    > 14:11:27.333: X:0.00 Y:91.70 Z:20.000 E:0.0000
    < 14:11:27.333: N5988 M105
    > 14:11:27.334: ok 5987
    > 14:11:30.755: X:0.00 Y:0.00 Z:20.000 E:0.0000
    < 14:11:30.756: N5989 M105
    > 14:11:30.757: ok 5988
    > 14:11:30.759: T:237.50 /0 B:94.88 /95 B@:255 @:0
    < 14:11:30.760: N5990 M105
    > 14:11:30.760: ok 5989
    > 14:11:30.763: T:237.50 /0 B:94.88 /95 B@:255 @:0

  • ; generated by Slic3r 1.2.9 on 2015-09-04 at 19:18:20
    2
    3; external perimeters extrusion width = 0.40mm
    4; perimeters extrusion width = 0.67mm
    5; infill extrusion width = 0.67mm
    6; solid infill extrusion width = 0.67mm
    7; top infill extrusion width = 0.67mm
    8
    9M107
    10M190 S105 ; set bed temperature
    11M104 S240 ; set temperature
    12G91 ; using relative distance
    13G1 Z10 ; go to position Z 10
    14G90 ; absolute positioning
    15G28 X0 Y0; X, Y homing
    16G32 S2 ; Auto leveling
    17
    18M109 S240 ; wait for temperature to be reached
    19G21 ; set units to millimeters
    20G90 ; use absolute coordinates
    21M82 ; use absolute distances for extrusion
    22G92 E0
    23G1 Z0.200 F8400.000
    24G1 E-2.00000 F18000.00000
    25G92 E0

    G1 E24.64687 F18000.00000
    3813G92 E0
    3814M107
    3815G28 X0 Y0; home X and Y axis
    3816M104 S0 ; turn off temperature
    3817M84 ; disable motors
    3818
    3819; filament used = 1375.3mm (3.3cm3)
    3820
    3821; avoid_crossing_perimeters = 1
    3822; bed_shape = 0x0,190x0,190x200,0x200
    3823; bed_temperature = 100
    3824; before_layer_gcode =
    3825; bridge_acceleration = 0
    3826; bridge_fan_speed = 100
    3827; brim_width = 0
    3828; complete_objects = 0
    3829; cooling = 1
    3830; default_acceleration = 0
    3831; disable_fan_first_layers = 4
    3832; duplicate_distance = 6
    3833; end_gcode = G28 X0 Y0; home X and Y axis\nM104 S0 ; turn off temperature\nM84 ; disable motors\n
    3834; extruder_clearance_height = 20
    3835; extruder_clearance_radius = 20
    3836; extruder_offset = 0x0
    3837; extrusion_axis = E
    3838; extrusion_multiplier = 1
    3839; fan_always_on = 0
    3840; fan_below_layer_time = 45
    3841; filament_colour = #020107
    3842; filament_diameter = 1.75
    3843; first_layer_acceleration = 0
    3844; first_layer_bed_temperature = 105
    3845; first_layer_extrusion_width = 200%
    3846; first_layer_speed = 30%
    3847; first_layer_temperature = 240
    3848; gcode_arcs = 0
    3849; gcode_comments = 0
    3850; gcode_flavor = reprap
    3851; infill_acceleration = 0
    3852; infill_first = 0
    3853; layer_gcode =
    3854; max_fan_speed = 100
    3855; max_print_speed = 80
    3856; max_volumetric_speed = 0
    3857; min_fan_speed = 35
    3858; min_print_speed = 10
    3859; min_skirt_length = 0
    3860; notes =
    3861; nozzle_diameter = 0.4
    3862; only_retract_when_crossing_perimeters = 1
    3863; ooze_prevention = 0
    3864; output_filename_format = [input_filename_base].gcode
    3865; perimeter_acceleration = 0
    3866; post_process =
    3867; pressure_advance = 0
    3868; resolution = 0
    3869; retract_before_travel = 1
    3870; retract_layer_change = 0
    3871; retract_length = 2
    3872; retract_length_toolchange = 10
    3873; retract_lift = 0
    3874; retract_restart_extra = 0
    3875; retract_restart_extra_toolchange = 0
    3876; retract_speed = 300
    3877; skirt_distance = 6
    3878; skirt_height = 1
    3879; skirts = 1
    3880; slowdown_below_layer_time = 15
    3881; spiral_vase = 0
    3882; standby_temperature_delta = -5
    3883;
    start_gcode = G91 ; using relative distance\nG1 Z10 ; go to position Z
    10\nG90 ; absolute positioning\nG28 X0 Y0; X, Y homing\nG32 S2 ; Auto
    leveling\n
    3884; temperature = 238
    3885; threads = 2
    3886; toolchange_gcode =
    3887; travel_speed = 140
    3888; use_firmware_retraction = 0
    3889; use_relative_e_distances = 0
    3890; use_volumetric_e = 0
    3891; vibration_limit = 0
    3892; wipe = 0
    3893; z_offset = 0
    3894; dont_support_bridges = 1
    3895; extrusion_width = 0
    3896; first_layer_height = 0.2
    3897; infill_only_where_needed = 0
    3898; interface_shells = 0
    3899; layer_height = 0.2
    3900; raft_layers = 0
    3901; seam_position = aligned
    3902; support_material = 0
    3903; support_material_angle = 0
    3904; support_material_contact_distance = 0.2
    3905; support_material_enforce_layers = 0
    3906; support_material_extruder = 1
    3907; support_material_extrusion_width = 0
    3908; support_material_interface_extruder = 1
    3909; support_material_interface_layers = 3
    3910; support_material_interface_spacing = 0
    3911; support_material_interface_speed = 100%
    3912; support_material_pattern = pillars
    3913; support_material_spacing = 2.5
    3914; support_material_speed = 30
    3915; support_material_threshold = 0
    3916; xy_size_compensation = 0
    3917; bottom_solid_layers = 3
    3918; bridge_flow_ratio = 0.95
    3919; bridge_speed = 20
    3920; external_fill_pattern = rectilinear
    3921; external_perimeter_extrusion_width = 0
    3922; external_perimeter_speed = 70%
    3923; external_perimeters_first = 0
    3924; extra_perimeters = 1
    3925; fill_angle = 45
    3926; fill_density = 10%
    3927; fill_pattern = 3dhoneycomb
    3928; gap_fill_speed = 20
    3929; infill_every_layers = 1
    3930; infill_extruder = 1
    3931; infill_extrusion_width = 0
    3932; infill_overlap = 15%
    3933; infill_speed = 80
    3934; overhangs = 1
    3935; perimeter_extruder = 1
    3936; perimeter_extrusion_width = 0
    3937; perimeter_speed = 70
    3938; perimeters = 3
    3939; small_perimeter_speed = 30
    3940; solid_infill_below_area = 70
    3941; solid_infill_every_layers = 0
    3942; solid_infill_extruder = 1
    3943; solid_infill_extrusion_width = 0
    3944; solid_infill_speed = 60
    3945; thin_walls = 1
    3946; top_infill_extrusion_width = 0
    3947; top_solid_infill_speed = 35
    3948; top_solid_layers = 3

  • I modified the start and end gcode on the server to be
    G28 X0
    G28 Y0

    Seems to be working better.
  • It homes, but does not shut off the heater. Looks like it follows the commands from the server settings, but not from the slicer.
  • It seems to shut down heater
    < 14:11:22.801: N5983 M104 S0 ; turn off temperature

    get executed and temp. set is 0 afterwards. What I see is that the G28 after 
    G90 ; absolute positioning
    gets skipped. There is no visible reason for that, so it might be a strange return so G28 is takes as comment to the line before or some other non visible character letting the server assume it does not need to get send. This would require the binary file for inspection. Could you put it in your dropbox or pastebin for download so I can see what is not visible.

  • Do you want the GCODE, STL, or LOG?
  • The gcode is what I need. That is where the server skips that line as it seems from your log. So there must be the problem.
  • I put it in Dropbox.  Who should I address it to.
  • If it is non critical just post the link here or send me a pm with the download link.
  • Ok, that was a harder one. The reason is that the server thinks the command is invalid so G28 gets ignored. I have fixed this for the next release. Until then just make sure that you have a space between command and comment sign. So

    Bad: G28; Home
    Good: G28 ; Home

  • I've been putting the commands on the server side instead of in the slicer,  seems to work pretty well now.
    My Start Code on the server side is
    G28 X0
    G28 Y0

    My End Code is
    G28 X0
    G28 Y0
    M140 S0

    Had to add the M140 because the heated bed was not turning off.

    Thank you for your help.
  • They work beacsue you have no comments. Adding the space before the semicolon comment in slic3r start/end gcode would also have worked.
Sign In or Register to comment.