Your G-code is correct,
but LinuxCNC rounds the path to increase the processing speed.
You can use the G61 at the beginning of the program file, then LinuxCNC will move exactly along the path.
Or you can use the G64 P0.1 - in this case, rounding is not more than 0.1 mm.
for example:
Код: Выделить всё
%
G61 (exact path mode)
G01 X0 Y0 f3000
G01 X100
G64 P10 (rounding with a 10 mm tolerance)
G01 Y100
G64 P30 (rounding with a 30 мм tolerance)
G01 X0
G01 X0 Y0
%
in Russian
http://cnc-club.ru/forum/viewtopic.php?f=15&t=113