hi, a friend has some weird issue with his prusa i3 / marlin: gcode that works fine when you run it manually in pronterface doesn’t work when in a gcode file. It is for setting an xy offset before homing z. it just skips the G1 command when not done manually. Doez it ring a bell? Where do I look next, uprade marlin and pronterface?
Might it be a CR/LF issue?
They’re hidden characters the editor inserts to note a new line. I don’t know what firmware so require what, I haven’t seen such an issue, just throwing that out there.
I don’t think this is the case, but a few commands do weird things, adding a line that says ‘G4 P200’ after a problem line might help. It just adds a command between two operations, 0.2 second wait, but it prevents commands from getting seemingly ignored, I think due to somewhat esoteric reasons in how g codes are interpreted.
i’d guess z steps are off. depending on how your motor moves your axis
hi +Peter van der Walt
the entire gcode file is below, when run manually line by line in pronter face it works fine, but when I ‘print’ it, it never does the bottom G1 X140 Y140 F300 but it does the G28 Z
M107
M90; switch on the powers supply! thanks marlin…
M104 S200 ; set extruder temp and start heating
M140 S60; set extruder temp and start heating
G21; set mm units
G91 ; Set to Relative Positioning
G1 Z5 ; Make sure the Z endstop triggers, if it starts too low sometimes homing doesn’t stop with endstop 
G28 X Y
G90; set absolute coordinates
G1 X140 Y140 F300
G28 Z
G90; set absolute coordinates
cool will try that, thanks! (I use Colemak not dvorak 