It works for me but it makes an extra, unnecessary move on X after each line and one move on Y after the last line.
Is it the program that does that or my frankencode(I don't understand everything in it yet, is more of a work in progress understanding G code)?
This modification doesn't make unnecessary moves. Also no G92, Sub,and repeat. The problem in your routine is, the xy movement after o100, G83.
Because sometimes brackets get lost in the uploaded files, there is a screenshot, how it should look.
EDIT:
Toolpath changed to: ZigZag orthagonal along X
Last edit: 7 years 8 months ago by MaHa. Reason: Toolpath changed to: ZigZag orthagonal along X