Streamlining lines of code...
-
I'm not in the habit of trimming code just for the sake of it, but I don't see the point of having lines of code where they're not necessary. So with that in mind, could these lines:
G1 H1 Y787 F1800 ; move quickly to Y axis endstop and stop there (first pass)
G1 H2 Y-3 F6000 ; go back a few mm
G1 H1 Y793 F360 ; move slowly to Y axis endstop once more (second pass)...be replaced with something like this:
G1 H1 Y780 F1800 Y7 F360 ; move quickly then slow down to the Y axis endstop and stop there
G1 H2 Y-3 F6000 ; go back a few mmI'm not sure it would work, or even if it's worth doing, but I'm curious.
Thanks
-
@nightowl999 that won't work, but you could use this:
G1 H1 Y787 F1800 G1 H2 Y-3 F6000 G1 H1 Y793 F360 ; home Y
-
@dc42 OK. Yep, it's probably more logical (and therefore easier) to do it as separate lines - and much easier to fault check too!
Thank you
-
@nightowl999 If you want to simplify it even more, then consider that the second Y move is unlikely to attain the feedrate of 6000 mm/sec over a distance of only 3mm unless you have extremely high acceleration. So you could drop the F6000 which will keep the feedrate of 1800 from the previous move. Also, after the first H1 pass, the axis will be flagged as homed so you could drop to the H2. The second move would then be simply G1 Y-3
-
Cool, @deckingman, thank you. The 6000 was legacy from the RRF config tool, so I'm not even sure why it's there.
I'm on a steep learning curve, for sure