Results 1 to 5 of 5

Thread: macro to engrave serial numbers

  1. #1
    nmn
    nmn is offline
    Registered
    Join Date
    Sep 2008
    Location
    usa
    Posts
    11
    Downloads
    0
    Uploads
    0

    macro to engrave serial numbers

    I see in the haas manual there is a macro to engrave serial numbers. I would like to engrave numbers on some connecting rods Ive made. I need to engrave matching numbers on the cap and rod, and then have the macro increment up to the next number on the next assembly. Can any one point me in the right direction?


  2. #2
    nmn
    nmn is offline
    Registered
    Join Date
    Sep 2008
    Location
    usa
    Posts
    11
    Downloads
    0
    Uploads
    0
    I played around a little bit and got the haas macro to do what i needed, ( not exactly what i wanted, but what i needed) I engraved the parts as an assembly, half the serial number on the rod and half on the cap. I was wanting to put matching serial numbers on the rod and cap( 001 and 001 instead of 001 split by the parting line) but i was not sure how to engrave the same number twice in one set up, without the macro incrementing to the next number???


  3. #3
    Registered
    Join Date
    Mar 2005
    Location
    Silicon Valley, CA
    Posts
    988
    Downloads
    0
    Uploads
    0
    I can't remember the Haas macro but I believe the counter is in the #500s for this. The way the macro runs is the counter rolls up in the G47 macro itself. So, you could either edit out the counter in the machine macro, or in between the engraving, you can subtract a value of "1" from the variable before it starts the next portion.

    For example: If the variable is #519 for the counter.... just have a line like this
    #519=#519-1.
    Then when you run the next engraving on the matching part, it will engrave the same serial number. After it runs the second engraving, the counter will then roll up.
    It's just a part..... cutter still goes round and round....


  4. #4
    nmn
    nmn is offline
    Registered
    Join Date
    Sep 2008
    Location
    usa
    Posts
    11
    Downloads
    0
    Uploads
    0
    Thanks physcomill, Ill give it a try. I think the variable for the counter is #599??


  • #5
    Registered
    Join Date
    Mar 2005
    Location
    Silicon Valley, CA
    Posts
    988
    Downloads
    0
    Uploads
    0
    That sounds about right..... working off the top of my head and I don't program Haas that often...
    It's just a part..... cutter still goes round and round....


  • Similar Threads

    1. Fanuc Serial Number Macro
      By TomL21 in forum G-Code Programing
      Replies: 4
      Last Post: 05-08-2009, 09:36 AM
    2. Convert Fanuc Macro to Fadal Macro
      By bfoster59 in forum Fadal
      Replies: 1
      Last Post: 11-09-2007, 12:41 AM
    3. Engraving Serial Numbers
      By drk in forum General CNC (Mill and Lathe) Control Software (NC)
      Replies: 9
      Last Post: 07-01-2007, 10:26 AM
    4. Posting sequentiol serial numbers
      By NateG in forum Engraving Machines
      Replies: 3
      Last Post: 06-22-2007, 07:09 AM
    5. How do I engrave numbers...
      By slp_prlzys in forum DIY CNC Router Table Machines
      Replies: 7
      Last Post: 10-15-2004, 03:35 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.