weird unexpected error

More
05 Jul 2015 09:28 #60428 by clayton cramer
ecause AutoDesk can't make Fusion 360 run on my oddball machine (ThinkPad Windows 7) I am handcoding gCode to run my Sherline mill. I coded something by hand that worked starting like this:

%
(machine bottom of VHAL part)
g20 (inches)
g40 g49
g90 f10000
G1 Z0.010 x0.25 y0 G80
g1 y2.676 X0.25 g80
g1 Y2.676 x0.5 g80
g1 y0 X0.5 g80
G1 y0 X0.75 G80
G1 Y2.676 X0.75 G80
G1 Y2.676 X1.0 G80
G1 Y0 X1.0 G80
G1 Y0 X1.25 G80
G1 Y2.676 X1.25 G80
(last pass narrower because we are only cutting to 1.562)
G1 Y2.676 X1.312 Y0 g80
g1 X1.312 G80
(return to zero point and cut another .01" deeper)

Works fine. But because I was bored writing this by hand, I wrote a bash script to produce whar I needed, and it starts pretty much the same:

%
(machine bottom of VHAL)
g20 (inches)
g40
g49
g90
f2
gl z0.0 x0.25 y0 g80
g1 y2.676 x0.25 g80
g1 y2.676 x0.5 g80
g1 y0 x0.5 g80
g1 y0 x0.75 g80
g1 y2.676 x0.75 g80
g1 y2.676 x1.0 g80
g1 y0 x1.0 g80
g1 y0 x1.25 g80
g1 y2.676 x1.25 g80
g1 y2.676 x1.312 g80
g1 y0 x1.312 g80

Buit in EMC2, I get:

5 - Unknown word starting with l

on the g49 line, where there is no l. Huh?

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

More
05 Jul 2015 12:55 - 05 Jul 2015 15:46 #60430 by ArcEye
Replied by ArcEye on topic weird unexpected error
We would have to see the actual file.

There is a typo in your post of it and could easily be one in the file

gl z0.0 x0.25 y0 g80


regards

PS

In fact that is probably it.
Linuxcnc will not count lines that are comments, spaces or just contain % and it never says 'on line NN', just 'near line NN'
Last edit: 05 Jul 2015 15:46 by ArcEye.

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

More
06 Jul 2015 04:22 #60449 by clayton cramer
this is the file. I don't see what I did wrong.

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

More
06 Jul 2015 04:23 #60450 by clayton cramer
gl not g1

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

Time to create page: 0.175 seconds
Powered by Kunena Forum