584,866 active members*
4,982 visitors online*
Register for free
Login
Results 1 to 12 of 12
  1. #1

    G47 Parse Text

    Hello all.

    I have a Haas EC400 (brand new).

    I am looking at developing a engraving cycle much like the G47 engraving cycle...well exactly like that cycle.

    The problem is that I want the text to be in a different font.

    Here is what I know...

    I know I need to incrementally generate a program for all the character's in a 1" size so they are scalable.
    I know I need to program the different characters with all the variables that will be passed into.

    In a nutshell I know what it will take to actually overcome the task.

    What I don't know, is how the Haas is parsing the "()" characters.

    Honestly, if I knew how the control was taking what is in the () and passing it to the macro program...I could pound this out pretty quickly and just re-designate or create my own "G" -code in the settings(parameters).

    I have read about this O9876 program...it's not visible on my control. I did get my local reseller to give me an old copy when it used to be visible on Haas Controls, but I really don't see where the () characters come into play.

    Any insight on this one?

    Thank you,

    Mike in MN
    www.cncbasics.com

  2. #2
    Join Date
    Nov 2010
    Posts
    73
    Unfortunately I can not say for sure, but it works just about.
    In the program you are calling using the G65 should be the following command
    N2000
    M97
    GOTO2000
    M99
    M97 without additional parameters will call subroutines with the numbers corresponding encoded characters enclosed in parentheses in the G65.
    I do not know the character encoding but it is possible to check the selection or ask HAAS.

  3. #3
    Quote Originally Posted by andre_77 View Post
    Unfortunately I can not say for sure, but it works just about.
    In the program you are calling using the G65 should be the following command
    N2000
    M97
    GOTO2000
    M99
    M97 without additional parameters will call subroutines with the numbers corresponding encoded characters enclosed in parentheses in the G65.
    I do not know the character encoding but it is possible to check the selection or ask HAAS.
    Thank you for the response.

    I got this from my reseller....

    The header...


    O9876 (ENGRAVING)
    (KPZ 29-JUN-96 FIXED ACCURACY PROBLEMS WITH I,J)
    (KPZ 2-Nov-96 Fixed problem with metric and large sizes)
    #700= #4003 (SAVE G90/G91)
    #701= #4001 (SAVE G00/G01 etc.)
    G00 X#24 Y#25
    Z#18 (IF R, MOVE THERE WITH USERS G90/G91)
    #702= #5003 - #26
    IF [ #9 EQ #0 ] #9= #4109 (USE PRESENT F IF NONE SPECIFIED)
    IF [ #8 EQ #0 ] #8= #9 (IF NO E, USE F)
    G91 (ALL INCREMENTAL FROM HERE ON)
    IF [ #4 EQ #0 ] #4= 0.0
    IF [ #5 EQ #0 ] #5= 1.0
    G68 R#4
    G51 P [ #5 * 1000 ]
    N1000
    M97 (M97 AUTO M99 AT END OF STRING)
    GOTO1000

    N125
    M99

    (SPACE)
    N126
    G00 X0.864 F#8
    M99

    N127
    G#700 (RESTORE G90/G91)
    G#701 (RESTORE G00/G01 etc.)
    M99

    N1
    (!)
    G00 X0.2692
    G01 Z - #702 F#8
    G03 J0.0297 F#9
    G00 Z#702
    G00 Y0.2079
    G01 Z - #702 F#8
    G01 X0.0495 Y0.6732 F#9
    G03 X-0.099 R0.0495
    G01 X0.0495 Y-0.6732
    G00 Z#702
    G00 X0.2692 Y-0.2079
    M99

    I made a G47 line of code in MDI and ran it on the graph. I then took the O9876 copied it and called it O9010 and refined G06 to call that program up in the parameters. I swapped out the G47 with G06 and it started to step thru the O9010 in single block but alarms at the M97(M97 AUTO M99 AT END OF STRING). It says there is no P, L, etc defined with M97.

    There appears to be something special with the G47 line versus defining it as a macro subprogram.

    I have a message into my reseller asking if they can contact Haas to see why it will "parse" via the G47 but not the G65 subroutine.

    It would be very nice to figure out a single line multiple character cycle like this.

    Thank you,

    Mike in MN
    www.cncbasics.com

  4. #4
    Join Date
    Nov 2010
    Posts
    73
    On my VF product found to improve the program engraving. It has the same number as your program and is called using G47.
    Putting in parentheses capital letters used for the engraving of English text, and enter small letters for engraving text in Russian. Maybe you can use this idea to implement your own font style.
    When you install this program, there is a certain sequence of actions, I'll look tomorrow at work. I believe that changing the number of the programs can not.

  5. #5
    Join Date
    Jul 2007
    Posts
    378
    Here's a good one. I created a O9876 program and when I use the G47, it jumps to the one I created, not the one that is hiding on the mill. How can there be two O9876 programs?

    I also don't like the standard font with G47 cause you can't mathematically figure out long your text is going to be before you run it. I ask the "answer man" this question and he replied "you have to graph the program out to see where it lands". Why didn't I think of that!

    I also don't understand the M97 at the N1000 line how dose it know where to jump to.....

  6. #6
    Join Date
    Jul 2009
    Posts
    80
    There is setting 23 ON/OFF , it makes visible all 9000 prgrms.
    There you can figure out

    - - - Updated - - -

    There is setting 23 ON/OFF , it makes visible all 9000 prgrms.
    There you can figure out

  7. #7
    Join Date
    Jul 2009
    Posts
    80

    Setting 23

    There is setting 23 ON/OFF , it makes visible all 9000 prgrms.
    There you can figure out

  8. #8
    Quote Originally Posted by ROBBY 68 View Post
    There is setting 23 ON/OFF , it makes visible all 9000 prgrms.
    There you can figure out
    O9876 is hidden even with the setting turned.

    Thank you,

    Mike in MN
    www.cncbasics.com

  9. #9
    Quote Originally Posted by glovebox20 View Post
    Here's a good one. I created a O9876 program and when I use the G47, it jumps to the one I created, not the one that is hiding on the mill. How can there be two O9876 programs?

    I also don't like the standard font with G47 cause you can't mathematically figure out long your text is going to be before you run it. I ask the "answer man" this question and he replied "you have to graph the program out to see where it lands". Why didn't I think of that!

    I also don't understand the M97 at the N1000 line how dose it know where to jump to.....
    Are you saying you have thrown your own version of O9876 in the control and it didn't overwrite the "hidden" one, but ran your code?

    The single M97 in the O9876 is what I am trying to get out of Haas how it parses that characters in the parenthesis. It must throw it somewhere in the background.

    Hmm...interesting if loading your own O9876 program will work.

    Thank you,

    Mike in MN
    www.cncbasics.com

  10. #10
    Join Date
    Jul 2007
    Posts
    378
    Quote Originally Posted by charger19690 View Post
    Are you saying you have thrown your own version of O9876 in the control and it didn't overwrite the "hidden" one, but ran your code?

    The single M97 in the O9876 is what I am trying to get out of Haas how it parses that characters in the parenthesis. It must throw it somewhere in the background.

    Hmm...interesting if loading your own O9876 program will work.

    Thank you,

    Mike in MN
    Correct. Once I deleted my O9876 program, G47 reverted back to the original O9876 program.

    The single M97 line would be my biggest hurdle in creating my own O9876 engraving program. If the dealer gave you a copy of this program, maybe you could edit it to your liking and see how it works out?.....

  11. #11
    Quote Originally Posted by glovebox20 View Post
    Correct. Once I deleted my O9876 program, G47 reverted back to the original O9876 program.

    The single M97 line would be my biggest hurdle in creating my own O9876 engraving program. If the dealer gave you a copy of this program, maybe you could edit it to your liking and see how it works out?.....
    I forwarded this information to the applications guy at my dealer and he is going to try on a machine in house. I basically asked him if I did it if it would void my warranty, didn't get a clear answer.

    As of right now, I am patiently waiting to see what the result is.

    Yes, the single M97 line is something special to the G47 code, it will not work when trying to use a G65 with a different O9xxx designation. There is probably another "something" that parses that handles the () characters before moving to the O9876...or maybe it's a software coded thing in the control for G47???


    Thank you,

    Mike in MN
    www.cncbasics.com

  12. #12
    Join Date
    Jan 2014
    Posts
    1

    Re: G47 Parse Text

    Mike, I found this old thread while searching for help on a similar problem. I'm trying to develop an engraving program on a Fanuc machine that allows you to enter text to be engraved, similar to the Haas G47 (xxx). My problem is that I cannot figure out how to get the macro program to identify the text to be engraved. I see that you were working on a similar problem and I was wondering if you were ever able to resolve it.
    Thanks.
    Mark

Similar Threads

  1. Replies: 8
    Last Post: 07-26-2013, 01:24 AM
  2. text
    By blakey235 in forum EdgeCam
    Replies: 7
    Last Post: 10-24-2010, 02:44 AM
  3. no text?
    By mark c in forum Autodesk
    Replies: 2
    Last Post: 12-10-2007, 09:05 PM
  4. z parse command too far positive
    By jam1960 in forum Bridgeport / Hardinge Mills
    Replies: 2
    Last Post: 07-09-2007, 10:53 PM
  5. text
    By marty7001 in forum BobCad-Cam
    Replies: 2
    Last Post: 05-31-2007, 08:26 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
  •