584,846 active members*
3,947 visitors online*
Register for free
Login
Results 1 to 14 of 14
  1. #1
    Join Date
    Jan 2007
    Posts
    1389

    serial number macro

    Has anyone ever used the serial number macro to use the y axis as the rapid/feed/depth control axis rather than the z axis? ie depth will be controlled by Y axis Instead of Z axis.

    part is a cylinder standing 5" tall, I can create a program to wrap it around the cylinder using the y axis as a depth control( have many times) however I need to have it change a number for every part.

    I would like to engrave on the side of the part INSTEAD of in my 4th axis rotary table one at a time.

    I can make a fixture/pallet to hold 24 parts but I have to change the program over 180+ times for each set/pallet of 24 trying to eliminate operator mistakes/errors.

    its a vf2ss with all the options so I have the macros and such.

    SO I guess the questions is 2 parts
    will the serial number marco work on a wrapped geometry (non 4th)and if so can I modify it so the y axis will control the depth of the numbers.

    Haas told me there was a marco for doing it in the 4th (non wrapped just using the "A" drive and the macro)

    Thanks
    Delw

  2. #2
    Join Date
    Jan 2007
    Posts
    1389
    did a little more searching on the haas site.
    has anyone actually used this? the tech today didnt think it was possible but would do some checking. I never used the g107 might have to test it out.
    No I am not paul

    Our job shop does a lot of single run parts, and we use G47 to engrave the manufacturing data whenever necessary. We received a few new jobs that are small piston shapes, and we are using a VF-2TR. Can we use G47 to engrave on the round side of the part? Are there any other canned cycles that can accomplish this? Is there an example program on how to accomplish this?

    Sincerely,

    Paul



    Dear Paul,

    Yes, it’s possible to use G47 along with G107 (cylindrical mapping) to engrave on the round side of your part. Below is a sample program that shows the structure needed to make your application possible. Be sure to specify on the G107 line the axis on which you will map the engraving operation.


    O00956 (Engrave “CNC” on a cylindrical sur¬face)

    G17 G20 G40 G58 G80 G90

    T8 M06 (#2 C-DRILL)

    S5000 M03

    G00 X0. Y0.6 A0. B0.

    G43 H08 Z3.

    Z0.5 M08

    G107 X0. B0. R0.855 (Maps cylinder along X axis around B axis with a radius of .855)

    G00 Z0.08

    G47 X0. Y0.6 Z-0.01 P0 E12. F50. I90. J0.15 R0.08 (CNC)

    G28

    M30

  3. #3
    Join Date
    May 2004
    Posts
    4519
    From 9:11 to 9:23 PM you answered your own question.

  4. #4
    Join Date
    Jan 2007
    Posts
    1389
    Not really still looking for someone who actually tried it. as the tech didnt think it was possible.

    Delw

  5. #5
    Join Date
    Aug 2010
    Posts
    579

    Haas Factory Support

    Before we publish any Answer Man questions, we test them. G47 has it's own serial number macro, it works well, unless you want to engrave each serial number twice. Still works, just need macros to fix the counting system.
    Thanks,
    Ken Foulks

  6. #6
    Join Date
    Jan 2007
    Posts
    1389
    Quote Originally Posted by KenFoulks View Post
    Before we publish any Answer Man questions, we test them. G47 has it's own serial number macro, it works well, unless you want to engrave each serial number twice. Still works, just need macros to fix the counting system.
    Ken,
    Thanks
    I am am working with Mark T on that as we speak. he sent me a sample program friday, I havent tried it yet. production starts tuesday/wednesday

    the one off answer man worked fine for a few samples. just put in number manually.

  7. #7
    Join Date
    Aug 2010
    Posts
    579

    Haas Factory Support

    Replace the P0 with P1 to enable serial number engraving. Macro variable #599 is used to keep track of the current number. Use pound (#) signs to control the number of characters in the serial number. For example, use (########) for an eight character serial number.

    To set the starting number, you can replace the pound sign with a number and run it once or set variable 599.
    Thanks,
    Ken Foulks

  8. #8
    Join Date
    Jan 2007
    Posts
    1389
    ken
    we have to do 2 of the same numbers 180º apart from each other, then put new part is and have number change on each part.

    this is what I got from Mark. I havent tried it yet but should shortly.
    notice the -1 before the second engraving statement.
    when I tried it I did it with +1 after the second and obviously it worked on the 1st test but not on second.

    O00120 (G47 S/N WITH G107 WRAP)

    (**** TOOL LIST ****)
    (T1 = ENGRAVING TOOL)
    (***** END LIST ****)

    T1 M06
    M03 S7500
    G54 G90 G00 G17 G40 G80
    X0.1 Y0. A0. (START POINT OF ENGRAVE)
    G43 H01 Z0.1 M08
    G107 A0. Y0. R1.25
    G47 P1 (####) X0.1 Y0. I90. J0.15 R0.05 Z-0.012 F30. E10.
    G00 Z0.1 M09


    G54 G90 G00 G17 G40 G80
    X0.1 Y0. A180. (START POINT OF ENGRAVE)
    G43 H01 Z0.1 M08
    G107 A0. Y0. R1.25
    #599= [ #599 - 1 ]
    G47 P1 (####) X0.1 Y0. I90. J0.15 R0.05 Z-0.012 F30. E10.
    G00 Z0.1 M09
    G91 G28 Z0.
    G90
    G107
    M05
    M30

  9. #9
    Join Date
    Aug 2010
    Posts
    579

    Haas Factory Support

    This should work perfectly, as long as you have the macros option.
    Thanks,
    Ken Foulks

  10. #10
    Join Date
    Jan 2007
    Posts
    1389
    I'd better I was told it had all the options and I paid for them.
    How do I check?
    it runs the g107 and the g47 just fine. would that be the same?

  11. #11
    Join Date
    Apr 2009
    Posts
    5
    We have used a G47 and a G107 together on the B axis and it worked out well. Don't see why it wouldn't work on the A axis. Doing this allowed us to engrave on a radius only works if you are really in the center of rotation.

  12. #12
    Join Date
    Jan 2007
    Posts
    1389
    Kevin it works fine, that part wasnt the doubt.
    just needed to do a 2 sided serial number. on each part.

    thats where the macro call out came to play in the code above.

    I am pretty sure I have macros as I have the probe and some other stuff and If I remember correctly macros was requiered. for some of those options.

    Delw

  13. #13
    Join Date
    Aug 2010
    Posts
    579

    Haas Factory Support

    To check if the macros option is enabled, press these buttons:
    PARAM/DGNOS
    57
    DOWN ARROW
    Look for the 23rd item (may be on the second page)
    The line is "Enable Macro"
    It should have a value of 1 to the right of it.
    Thanks,
    Ken Foulks

  14. #14
    Join Date
    Jan 2007
    Posts
    1389
    thanks Ken, its 1

Similar Threads

  1. Fanuc Serial Number Macro
    By TomL21 in forum Parametric Programing
    Replies: 14
    Last Post: 06-01-2023, 06:57 PM
  2. Serial number in variable?
    By ghyman in forum Haas Mills
    Replies: 4
    Last Post: 08-30-2016, 11:42 PM
  3. Serial number
    By fergieman in forum Haas Mills
    Replies: 1
    Last Post: 03-21-2011, 03:16 PM
  4. Seq. serial number engraving
    By MSGMachine in forum G-Code Programing
    Replies: 2
    Last Post: 10-29-2010, 02:10 PM
  5. Seq. Serial number engraving.
    By MSGMachine in forum Mori Seiki Mills
    Replies: 1
    Last Post: 10-26-2010, 02:19 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
  •