Machine only moves 1/12 the distance in G1 code line

More
07 Dec 2016 19:40 #83750 by Les91
When runnig the cnc config wizard, I checked each axis and they moved the specified amount. When I run the attached G code file, the machine moves only 0.39 inches for the 2 - 5 inch moves. Do I have to config the G code interpreter? Can you help.
Thanks
Attachments:

Please Log in or Create an account to join the conversation.

More
07 Dec 2016 20:06 #83752 by Todd Zuercher
That is easy, your first line of your G-code file has G21 (mm-mode) in it. Change it to G20 (inch mode).
(Test Link CNC)
G21 G90 G61 G40 F3 (change the G21 to G20 here!)
G0 X5 Y5
G91
G1 X5 F10
G1 Y5 F3
G1 X-5
G1 Y-5
G90
G0 X0 Y0
M2

Please Log in or Create an account to join the conversation.

More
07 Dec 2016 22:59 #83758 by andypugh
There might well still be a factor of 2 error. If there is then it is likely to be due to the driver microstep setting not matching what LinuxCNC was told.
You can fix it in Stepconf, edit the INI file or alter the settings on the drive, as you feel fit.
But only one of those, not all three :-)

Please Log in or Create an account to join the conversation.

More
08 Dec 2016 02:28 #83767 by Todd Zuercher
Good catch Andy. Lazy me, I didn't bother to do the math.

Please Log in or Create an account to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum