585,987 active members*
4,436 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Haas Machines > Haas Mills > Text program and invalid G code
Page 1 of 2 12
Results 1 to 20 of 36
  1. #1
    Join Date
    Aug 2012
    Posts
    20

    Text program and invalid G code

    I have a 1995 HAAS VF-2 and tried doing text using G47 and get invalid G code.

    Is my machine too old for this code? I know I have the program correct as I got it from a friend running it on his 2000 HAAS VF-0. I double checked in the manual and it looks fine.

    Any ideas?

    Thanks in advance,
    Dan

  2. #2
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by darkeagle10x View Post
    I have a 1995 HAAS VF-2 and tried doing text using G47 and get invalid G code.

    Is my machine too old for this code? I know I have the program correct as I got it from a friend running it on his 2000 HAAS VF-0. I double checked in the manual and it looks fine.

    Any ideas?

    Thanks in advance,
    Dan
    Hi Dan,
    This error message indicates that the control does not have the option associated with the G Code specified.

    Regards,

    Bill

  3. #3
    Join Date
    Jan 2005
    Posts
    15362
    darkeagle10x

    What do you expect the G47 to do for you, You may not need to even use it
    Mactec54

  4. #4
    Join Date
    Aug 2012
    Posts
    20
    Quote Originally Posted by mactec54 View Post
    darkeagle10x

    What do you expect the G47 to do for you, You may not need to even use it
    I wanted a simple way to lay down barrel markings such as 308 WIN.

    I have used featurecam in the past and programed the text needed but it would be very handy to use G47 where all I have to do is change the text right in the program line so I don't actually have to program what I want each time then load the program into the controller.

  5. #5
    Join Date
    May 2004
    Posts
    4519
    You probably could make a separate program for each letter and then run from the main program as subs. Program number for the letter A would be O0001 and so on. Would need to be done in G91 mode.

  6. #6
    Join Date
    Jan 2005
    Posts
    15362
    darkeagle10x

    Simple way is just make the program this took 3min, no G47 needed
    Attached Files Attached Files
    Mactec54

  7. #7
    Join Date
    May 2004
    Posts
    4519
    Quote Originally Posted by mactec54 View Post
    darkeagle10x

    Simple way is just make the program this took 3min, no G47 needed
    Ok. So, how does he change the lettering for the next run of say a 30-06? And then the next run of say 270? And so on?

    That is what he was trying to simplify. Trying to avoid reprogramming for each item.

    Here is an example:

    .17 Hornet
    .17 Remington
    .17 Remington Fireball
    .22 Accelerator
    .22 Hornet
    .22-250 Remington
    .204 Ruger
    .218 Bee
    .219 Zipper
    .220 Russian
    .220 Swift
    .221 Remington Fireball
    .222 Remington
    .222 Remington Magnum
    .223 Remington
    .223 Winchester Super Short Magnum
    .224 Weatherby Magnum
    .225 Winchester
    .240 Weatherby Magnum
    .243 Winchester
    .243 Winchester Super Short Magnum
    .244 H&H Magnum
    .244 Remington
    .25 Winchester Super Short Magnum
    .25-06 Remington
    .25-20 Winchester
    .25-35 Winchester
    .250-3000 Savage
    .257 Roberts
    .257 Weatherby Magnum
    .260 Remington
    .264 Winchester Magnum
    .270 Weatherby Magnum
    .270 Winchester
    .270 Winchester Short Magnum
    .280 Remington
    .284 Winchester
    .30 Carbine
    .30 Newton
    .30 RAR
    .30 Remington
    .30 Remington AR
    .30 TC
    .30-06 Springfield
    .30-30 Winchester (.30 WCF)
    .30-40 Krag (.30 Army)
    .30-378 Weatherby Magnum
    .300 H&H Magnum
    300 AAC Blackout (7.62×35mm)
    .300 Remington SA Ultra Mag
    .300 Remington Ultra Magnum
    .300 Ruger Compact Magnum
    .300 Savage
    .300 Weatherby Magnum
    .300 Winchester Magnum
    .300 Winchester Short Magnum
    .303 British
    .303 Savage
    .307 Winchester
    .308 Marlin Express
    .308 Norma Magnum
    .308 Winchester
    .32 Remington
    .32 Winchester Self-Loading
    .32 Winchester Special
    .32-20 Winchester (.32 WCF, .32-20 Marlin, .32 Colt Lightning)
    .32-40 Ballard
    .32-40 Winchester
    .325 Winchester Short Magnum
    .333 Jeffery Flanged
    .338 Edge
    .338 Federal
    .338 Lapua Magnum
    .338 Marlin express
    .338 Norma Magnum
    .338 Remington Ultra Magnum
    .338 Ruger Compact Magnum
    .338 Winchester Magnum
    .338-06 A-Square
    .338-378 Weatherby Magnum
    .340 Weatherby Magnum
    .348 Winchester
    .35 Remington
    .35 Whelen
    .35 Winchester
    .35 Winchester Self-Loading
    .350 Remington Magnum
    .351 Winchester Self-Loading
    .356 Winchester
    .358 Norma Magnum
    .358 Winchester
    .375 H&H Magnum
    .375 Remington Ultra Magnum
    .375 Ruger
    .375 Weatherby Magnum
    .375 Whelen (.375-06)
    .375 Winchester
    .376 Steyr
    .378 Weatherby Magnum
    .38-40 Winchester
    .38-55 Winchester
    .44-40 Winchester
    .45-70 Government
    .400 H&H Magnum
    .400 Jeffery Nitro Express
    .401 Winchester Self-Loading
    .404 Jeffery
    .405 Winchester
    .408 CheyTac
    .416 Barrett
    .416 Remington Magnum
    .416 Rigby
    .416 Ruger
    .416 Weatherby Magnum
    .444 Marlin
    .450/400 Nitro Express
    .450 Bushmaster
    .450 Marlin
    .450 Nitro Express
    .450 Rigby
    .458x2 American
    .458 Express
    .458 Lott
    .458 Sabi
    .458 SOCOM
    .458 Winchester Magnum
    .460 Weatherby Magnum
    .460 Steyr
    .465 H&H Magnum
    .470 Nitro Express
    .476 Nitro Express
    .50 Alaskan
    .50 Beowulf
    .50 BMG
    .50 Peacekeeper
    .50-70 Government
    .50-90 Sharps
    .50-110 Winchester
    .50-140 Sharps
    .500 Black Powder Express
    .500 Jeffery
    .500 Nitro Express 3"
    .500 Nitro Express for black powder 3"
    .500 No. 2 Express
    .500/450 Nitro Express
    .500/465 Nitro Express
    .505 Gibbs
    .505 Jeffery
    .510 DTC Europ
    .510 Whisper
    .577 Nitro Express
    .577 Snider
    .577 Tyrannosaur (.577 T-Rex)
    .577/450 Martini-Henry
    .577/.500 Magnum Nitro Express
    .585 Nyati
    .600 Nitro Express
    .600 Overkill
    .700 Nitro Express
    .950 JDJ

    Metric

    4.6x30mm
    4.85mm SAA (.191)
    4.92x34mm
    5.45x39mm
    5.56×30mm MINSAS
    5.56x45mm NATO
    5.6x50mm Magnum
    5.6x50mm R Magnum
    5.6 x 52R (.22 Savage Hi-Power)
    5.6x57mm
    5.6x57mm R
    5.6 x 61 SE (5.6 x 61 Vom Hofe Super Express)
    5.6 x 61 R SE (5.6 x 61 R Vom Hofe Super Express)
    MMJ 5.7mm
    5.7x28mm
    5.8x42mm DBP87
    6 x 35 mm
    6mm Lee Navy
    6mmAR
    6 mm BR Remington
    6 mm Musgrave
    6mm TCU
    6 mm PPC
    6mm-284
    6x45mm A.K.A. (6mm-223 Remington)
    6x47mm A.K.A. (6mm-222 Rem. Magnum)
    6 mm Remington (.244 Remington)
    6mm-250 A.K.A. (6mm International) Walker Version
    6.5mm TCU
    6.5 Creedmoor
    6.5 mm Grendel
    6.5 mm Remington Magnum
    6.5-06 A-Square
    6.5mm/06 A.K.A. 256/06
    6.5-284 Norma
    6mm/30-30 Improved
    6.5x42mm Multi-Purpose Cartride (SSK Industries)
    6.5x47mm Lapua
    6.5x50mm Arisaka
    6.5x52mm Mannlicher-Carcano
    6.5 x 52R
    6.5x53mmR Mannlicher
    6.5x54mm Mannlicher-Schoenauer
    6.5x55mm (Also 6.5x55 Swedish Mauser, 6.5 x 55 Mauser)
    6.5x57mm Mauser
    6.5x68mm (also known as the 6.5 x 68 RWS, 6.5 x 68 Schüler or the 6.5 x 68 Von Hofe Express)
    6.8 mm Remington SPC
    7mm Shooting Times Easterner (7mm STE)
    7mm International Rimmed
    7mm TCU A.K.A. (25 Ugalde)
    7 mm BR Remington
    7mm IHMSA
    7 mm Dakota
    7 mm Gibbs
    7 mm Remington Magnum
    7 mm RSAUM (Remington Short-Action Ultra Mag)
    7 mm Remington Ultra Magnum
    7 mm STE (Shooting Times Easterner)
    7 mm STW (Shooting Times Westerner)
    7 mm Weatherby Magnum
    7 mm WSM (Winchester Short Magnum)
    7mm-06 Mashburn
    7mm-06
    7 mm-08 Remington
    7 mm-300 Weatherby Magnum
    7-30 Waters
    7.2 SLEC (7.2 SPECIAL LAW ENFORCEMENT CARTRIDGE)
    7.21 Firebird
    7.21 Tomahawk
    7.44mm
    7x33mm Sako
    7×54mm Finnish
    7×54mm Fournier
    7x57mm Mauser (.275 Rigby)
    7x61mm Sharpe & Hart
    7x64mm Brenneke
    7x65mm R Brenneke
    7x66mm Super Express vom Hofe
    7x72 Rimmed
    7x75mm R Super Express vom Hofe
    7.5x55mm Schmidt Rubin
    7.5x57mm MAS mod. 1924 7.5x54mm MAS mod. 1929
    7.62 mm caliber
    7.62x25mm Tokarev
    7.62x38mmR
    7.62×35mm
    7.62x39mm
    7.62x40 Wilson Tactical
    7.62x45mm vz. 52
    7.62×51mm NATO
    7.62x53mm Rimmed
    7.62 x 54R (rimmed) (7.62 Russian)
    7.63x25mm Mauser
    7.65x22mm Parabellum
    7.65x53mm Argentine (7.65x53mm Mauser)
    7.65x53mmR
    7.63x54mm Greek Mannlicher-Schoenauer
    7.7x58mm Arisaka
    7.8 SLEC (( 7.8 SPECIAL LAW ENFORCEMENT CARTRIDGE))
    7.82 Patriot
    7.82 Warbird
    7.92x33mm Kurz
    7.92x36mm EPK
    7.92x57mm Mauser (8 mm Mauser or 8x57 JS)
    8 mm-06
    8mm Mauser
    8 mm Lebel or 8x50R Lebel
    8 mm Remington Magnum
    8x35mm
    8x50mmR Mannlicher
    8x56mm Mannlicher-Schoenauer
    8x56mmR Steyr or Hungarian
    8x58mm RD (rimmed danish)
    8x60mm S
    8x64mm S Brenneke
    8x68mm S
    9x39mm
    9x45mm
    9x53mm
    9x56mm Mannlicher-Schoenauer
    9x57mm Mauser
    9.3x57mm
    9.3x62mm
    9.3x64mm Brenneke
    9.3x65Rmm Brenneke
    9.3x65mm Collath
    9.3x66mm Sako
    9.3x72mmD
    9.3x74mmR
    9.5x57mm Mannlicher-Schoenauer (.375 Rimless Nitro Express x 2-1/4")
    10.75x57mm
    10.75x68mm
    10.75x73mm
    11x60mm Mauser
    12.7mm British No. 2
    12.7x99mm NATO (Multi-Purpose)
    12.7x54mm (subsonic)
    12.7x108mm
    13x63B
    13.2x92mm
    14.5x114mm
    14.5 mm JDJ
    15.2 mm Steyr Armor Piercing Fin Stabilized Discarding Sabot (APFSDS)
    20 mm caliber
    23x115 mm
    23X152 mm
    25x137mm
    30x165mm
    30x173mm
    40 mm Caliber
    50 mm caliber
    60 mm Caliber
    80 mm caliber

    Wildcats - Obscure - Proprietary
    Inches

    .14 Walker Hornet
    .14/221
    .14-222
    .17 Ackley Bee
    .17 CCM
    .17 Hornet
    .17 Mach IV
    .17 PMC/Aguila
    .17 PPC
    .17-06
    .17-222
    .17-223
    .17-225 Winchester
    .17/23 SMC
    .17-357 RG (.172" Wildcat based on the 357 SIG)
    .191 (4.85mm SAA)
    .19 Badger
    .19 Calhoon Hornet
    .19-223
    20 BR
    20 Fergusson Ace
    20 Magna
    20 PPC
    .20 Tactical
    .20 VarTarg
    .20-06
    .218 Mashburn Bee
    .219 Donaldson Wasp
    .22 BR Remington
    .22 Cheetah
    .22 Eargesplitten Loudenboomer
    .22 K Hornet
    .22 Newton
    .22 PPC
    .22 Savage High Power
    .22 Spitfire
    .22 Super Jet
    .22 Waldog
    .22 WCF
    .22-06
    .22-15-60 Stevens
    .22-243 Middlestead
    .22-284 Winchester
    .22/30 (T65 Duplex)
    .22/30-30 Improved
    .22/303
    .220 Weatherby Rocket
    .222 Rimmed
    .223 AI
    .224 Donaldson Ace
    .240 Apex (.240 Belted Nitro Express and .240 Magnum Flanged)
    .25 Ackley Krag
    .25 Gibbs
    .25 Krag
    .25 Remington
    .25-21 Stevens
    .25-25 Stevens
    .256 Newton
    .256 Winchester Magnum
    .264 LBC-AR
    .264 warrior magnum (6.5x40 mm)
    .25/303
    .275 H&H Magnum
    .280 British
    .276 Enfield
    .276 Pedersen
    .280 Ross
    .30 BR
    .30 USA
    .30 Walker
    .30-03
    .309 jdj
    .30-06 JDJ
    .309 Bull
    .300 Dakota
    .300 ICL Grizzly
    .300 Lapua Magnum
    .300 Remington American Magnum
    .300 Whisper (.300 Fireball)
    .300-221
    .303-06
    .330 Dakota
    .333 Jeffery Flanged
    .333 OKH
    .338-06 A-Square
    .338 Hawk/Scoville
    .338 Whisper
    .338 Voschol
    .338 x 57 O'Connor
    .35 Samba (Also .35 WSM)
    .357/.44 B & D (Bain and Davis)
    .375 Dakota
    .375 Whisper
    Modern .375 H&H (based on full length 375 Ruger)
    .40-65 Winchester
    .40-70 Sharps
    .400 Whelen
    .416 Taylor
    .416 Whisper
    Modern 416 (based on full length 375 Ruger)
    .425 Westley Richards
    .44 Henry
    Template:.44 –WSP
    .45-90 Sharps
    .45-110 Sharps
    .45-120 Sharps
    .450 Watts Magnum
    Modern 450 (2.598" 404 Case)
    Modern 460 (2.850" 404 Case)
    .458 SOCOM
    .470 Capstick
    .475 OKH
    .475 Ackley
    .50 Razor Back
    .500 Phantom
    .550 Magnum
    .600/577 REWA
    .700 AHR
    .700 WTF

    Metric

    4.5mm mkr
    5mm Craig
    5mm/35 SMc
    6-06
    6-284
    6mmAR
    6mm BRX
    6mm Dasher
    6mm XC
    6x45 mm
    6 x 47 Swiss Match (6mm/222 Mag)
    6.5-06
    6.5 Grendel (6.5x39mm)
    6.5 CSS
    6.5 PPCX
    6.5 BPC
    6.5 BR
    6.5x40mm (.264 warrior magnum)
    6.5 x 47 Lapua
    6.5 x 57
    6.5 Jonson
    6.5 Wby Mag
    6.5/.243 WSSM
    7mm Dakota
    7mm Gradle Express
    7x54mm Fournier
    7.62 Jonson
    7.62 Thumper
    7.82 Lazzeroni Patriot
    7.82 Lazzeroni Warbird
    8mm-06 Ackley Improved
    10.4 x 38 Vetterli (US: ".41 Swiss")
    10.4 x 47 Italian Vetterli

  8. #8
    Join Date
    Jan 2005
    Posts
    15362
    txcncman

    Good luck trying to do it any other way, a G47 is not going to do that for you
    A program for each is the only sure way of not messing up a good part the engraving is on
    Mactec54

  9. #9
    Quote Originally Posted by darkeagle10x View Post
    I have a 1995 HAAS VF-2 and tried doing text using G47 and get invalid G code.

    Is my machine too old for this code?
    Dan
    if your machine is previous to dec 1995 then the code won't work on your machine , haas allows for custom built g codes , so if your machine is setup to run macro then you could build your own g code with individual sub routines for each letter , that's basically all the g47 is , along with a bunch of if's and's or but's , If you program all of your letters to 1" then you can use the scale function and a variable to size it to whatever you want , it would be a fair bit of work but once your done you'll always have it .
    A poet knows no boundary yet he is bound to the boundaries of ones own mind !! ........

  10. #10
    Join Date
    May 2004
    Posts
    4519
    Quote Originally Posted by mactec54 View Post
    txcncman

    Good luck trying to do it any other way, a G47 is not going to do that for you
    A program for each is the only sure way of not messing up a good part the engraving is on
    I have actually done it the way mentioned on a machine that did not have a built in engraving function. Seems dertsap agrees. Basically, you program your own.

  11. #11
    Join Date
    Aug 2012
    Posts
    20
    Quote Originally Posted by dertsap View Post
    if your machine is previous to dec 1995 then the code won't work on your machine
    Well I guess no short cuts for me.

    It's not so bad to make up the programing with featurecam - its the loading from laptop through serial port that takes so much time. The controller can't hold much in memory so I will probably have to delete one to load another.

    Thanks for all the help - great information you guys have shared.

  12. #12
    Join Date
    Jan 2005
    Posts
    15362
    txcncman

    Yes then show him how to do the macro this will take a long time to do even if you are good at macro programing, & then you have to test it before you can use it

    I'm very good at macro programing, but would not wast my time for doing this type of work
    Mactec54

  13. #13
    Join Date
    Jan 2007
    Posts
    1389
    Quote Originally Posted by darkeagle10x View Post
    I wanted a simple way to lay down barrel markings such as 308 WIN.

    I have used featurecam in the past and programed the text needed but it would be very handy to use G47 where all I have to do is change the text right in the program line so I don't actually have to program what I want each time then load the program into the controller.
    are you trying to do it in the arc of the barrel? it works best on a cad cam software using the wrap command.... However if you have the wrap and text option along with a 4th axis it flat out kicks ass in the haas.

    The only problem I have found on barrels is most have tapers also so if you want the depth to be perfect you have to do it in a cadcam program as I havent found a way to do a taper included in it.

    reguardless of how you do it. if your running out of room on your control dnc it or use the floppy. even with .005 polylines on a cal. name you generally wont run out of room. if you say it takes to long your baud rate may be too slow. at 9600 baud by the time you hit send on the pc and walk to the machine it should be done.

    Also if your using a y-z wrap so to speak use a ball endmill it works better and will contour the same as the barrle if you program it correctly.

  14. #14
    Join Date
    Aug 2012
    Posts
    20
    Quote Originally Posted by Delw View Post
    are you trying to do it in the arc of the barrel? it works best on a cad cam software using the wrap command.... However if you have the wrap and text option along with a 4th axis it flat out kicks ass in the haas.

    reguardless of how you do it. if your running out of room on your control dnc it or use the floppy. even with .005 polylines on a cal. name you generally wont run out of room. if you say it takes to long your baud rate may be too slow. at 9600 baud by the time you hit send on the pc and walk to the machine it should be done.
    .
    No I am not wrapping it - If I run less than .003 deep and .125 high the small text looks fine flat.

    The problem is not with a single program storage - as you said they are small - but total program storage - my machine is old and has no floppy - everything enters with RS-232 cable from a laptop. The controller only has so much storage space and I run a lot of other programs that are much larger so total space taken is the issue - it's just a pain to delete a program to load another only to delete that program later to re-load the previous.

    Maybe I am not understanding what you mean when you say DNC it - are you referring to what I was taught as drip feeding?

    I guess it's the nature of the beast - I am relatively new to this and wish I could just dump them all in with a USB port and have them all ready to run at any given moment - I think the problem here is the age of the machine and me being new to it.

  15. #15
    Join Date
    May 2004
    Posts
    4519
    Yes, DNC is drip feed.

  16. #16
    Join Date
    Jan 2007
    Posts
    1389
    SOmetimes you have no choice but to upload the programs.
    you can get more memory for your machine, install a USB or floppy.
    If I were you I would look at getting a USB that way you can store alot of problems
    calmotion I think is the name of those who have them forsale.
    other than that your stuck. you either have to delete and reload programs or dnc/drip feed it you have no other choice.

    Delw

  17. #17
    Quote Originally Posted by mactec54 View Post
    txcncman

    Yes then show him how to do the macro this will take a long time to do even if you are good at macro programing, & then you have to test it before you can use it

    I'm very good at macro programing, but would not wast my time for doing this type of work
    And to code each and every part doesn't need to be proven , that statement doesn't make sense ???
    Its not hard to prove that it works , haas do have simulators built in ,
    basically once the header of the routine have been created the the rest would be cakewalk , and a guy could easily use cad/cam to create code for each letter and number . Then modify each letter routine with some variables , scaling , rotation and other options if needed .
    The amount of code that would be sitting in the machine would be fairly minimal .
    For some this may seem like a waste of time or it may very well be a waste of time if they don't do much engraving , but for others who have to engrave every single part that comes off the machine , then it would be a great utility to create . G47 was created for a reason , it works great and a lot of people use it . Personally I use both , sometimes I'll use mastercam for engraving on a new part but i generally use g47
    I don't claim to be great nor will I ever , but I do know that if I was to put my mind to it then it wouldn't take long to do such a routine , so someone who is "very good at programming macro" should be able to do it just as quick or quicker !!!



    .
    A poet knows no boundary yet he is bound to the boundaries of ones own mind !! ........

  18. #18
    Join Date
    Jan 2005
    Posts
    15362
    dertsap

    The problem is he can not use a G47 with his control & most likely does not have scaling Etc as well

    When you have a control that you can do all these things with, yes it can be very easy to implement
    Mactec54

  19. #19
    I understand that he doesn't have g47 , which is why i am suggesting that he create his own , the haas control does allow for custom g codes , and it is quick and easy to set up on the machine . I see no reason why that control wouldn't have a standard g code such as scale , but what hasn't been mentioned is if it has the optional macro function .
    A poet knows no boundary yet he is bound to the boundaries of ones own mind !! ........

  20. #20
    Join Date
    Jan 2005
    Posts
    15362
    dertsap

    If the G47 did not work then he most likely does not have the macro fuction

    The G47 text engraving macro variable #599
    Mactec54

Page 1 of 2 12

Similar Threads

  1. Replies: 7
    Last Post: 01-18-2012, 03:52 PM
  2. text to cnc program
    By rhino in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 02-04-2009, 02:28 PM
  3. text to g code conversion
    By Jiamus in forum G-Code Programing
    Replies: 0
    Last Post: 08-15-2008, 06:22 PM
  4. CAD program for 2-D text??
    By Dazza in forum Uncategorised CAD Discussion
    Replies: 2
    Last Post: 06-23-2008, 04:25 PM
  5. text data to G code?
    By zcases in forum G-Code Programing
    Replies: 14
    Last Post: 11-14-2006, 03:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •