That is odd, Fred. I just ran your program on my mill. Worked fine.
I've got an existing program to engrave VIN plates for trailers. In the past, they VIN was left blank, and it was stamped on the plate later. I'm altering the program to use G47 to put the VIN on when the plate is made.
To teach myself G47, I wrote a simple program yesterday. It worked.
Today, the same program does not work. When it gets to the first circular move, part of the R in FRED, I get an error. "Invalid R in G02 or G03."
The error is happening in the engraving subprogram, not in my program. See the picture for a screenshot of the console when it hits the fault.
This machine hasn't been used for anything else since I succcessfully ran this code yesterday. It gets shut down at night, so perhaps a setting was lost.
I'm baffled.
Sincerely,
Frederic
%
O90002
(G47 ENGRAVING PROGRAM)
G90 G54
M06 T1
M03 S7500
G90 G0 X0. Y0.
G43 H1 Z.1 M8
G47 P0 X2.0 Y2.0 I0 J1.0 R.05 Z-.5 E10. F10.0 (FRED)
G00 Z1. M09
M05
G90
G53 Z0.
M30
%
[URL="http://www.pure-geometry.com/"]Pure Geometry LLC[/URL]
Vertical Lathe tool holders and more.
That is odd, Fred. I just ran your program on my mill. Worked fine.
Tim
I looked at the codes on my mill at the time it does the G2 and mine doesn't have a G47 listed as an active code...every other code is the same on mine though..?
In fact, the G47 in never listed on the current commands page, probably because it is a macro style code that is basically calling up a program. I wonder why yours has it listed.
Tim
Solved!
I had to turn Setting 29, "G91 non-modal" to Off. Now it works.
Wally, if you turn Setting 74 and 75 on, you can watch the code execute and single block through it.
Thanks for taking the time to run the code. It helped to know that it was not a programming issue.
Frederic
[URL="http://www.pure-geometry.com/"]Pure Geometry LLC[/URL]
Vertical Lathe tool holders and more.
LOL
You must not have the manual...? Or were just 'wingin' it cause here is the first line out of the manual regarding G47
---------------------------
"In order to use G47, the program must be using G90(absolute) mode, and setting 29(G91 non-modal) must be OFF."
-------------------------
I've never had setting 29 turned on in my life. Any reason you leave it on?(I would assume it is available for a reason...)
Tim
That's the strange thing. I had read that in the manual, and yesterday I checked the setting before my successful tests. I'm not sure how it got switched on, unless I did it by accident yesterday.
I blame the Coolant Gremlins. They live in the bottom of your coolant tank and at night while you are sleeping, they climb out, hide your tools, change your settings, and break the corners off of your end mills. Those little vermin have struck again!
Frederic
Last edited by TXFred; 02-01-2011 at 03:18 PM.
[URL="http://www.pure-geometry.com/"]Pure Geometry LLC[/URL]
Vertical Lathe tool holders and more.
Nice!
Well, glad you got er figured out!![]()
Tim
ensure that it is interpolating in the right plane. G18 is XY if i remember correctly.