Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

engraving sequential serial numbers


MIL-TFP-41
 Share

Recommended Posts

Oh you gotta love customers. We recently ran 500 parts & we got the call from the customer saying he wants each parts with a serial number engraved on it. I am not really looking forward to doing 500 toolpaths, 500 program sends, ect. I am thinking there has got to be a way to do this on a control...it is a Yasnac I80 on a matsuura machining center.

 

I guess Haas does this automatically....one fo the few times I wish I had a Haas around...

 

 

Any ideas on how to do this??

 

Thanks

Link to comment
Share on other sites

So, me non doing to much at all with Macro's, I wondered how with that code from the link above you tell it what number you are looking for. Is that where the #3000 = 99 (setting error) is?

Link to comment
Share on other sites

Millingman,

 

No the #3000 line is an error line if the macro finds some input it does not understand.

 

Looking at thie quickly it looks like you set your starting number in the variables

 

#524 = 0

#525 = 0

#526 = 1

 

The macro would then engrave 001 and update the varable to read 002 and then engarve 002 and so on.

Link to comment
Share on other sites

The machines manual is a good place to start.

 

Different makes of machines have different requirements so it's good to be familiar with the machine you want to do it on.

 

Then of course writing macros is an art all it's own, very powerful when employed correctly.

Link to comment
Share on other sites

I did this...

 

Create each number 0 through to 9 on a sepperate level.

Creat aboundry box centre point around each number.This point is your X, Y, zero.

 

Program each number in INCREAMENTAL.

 

Now have a main program that calls the first point of number then a sub program say number 1 which does number "1"

Then the main program moves to position 2 and calls sub program 2 this engraves number "2"

 

The main program can be edited to call up different Numbers by just changing the sub program program numbers.

 

HTH

Link to comment
Share on other sites

Chris,

 

We have to engrave work orders on some off our parts.

So every time the operates need to engrave a different number on the same part.

 

It's simple really they just need to change the main program to the currrent work order number and run it.

I guess thats why we have first off inspection.

 

The operater can't machine the remander of the batch until the first part is signed off by an inspector.

Link to comment
Share on other sites
Guest CNC Apps Guy 1

You're welcome. It was written/compiled by a friend of mine; Dave Liskey. He said "share" so I did and do. biggrin.gif

 

I am in the process if adding to it and when I am satisfied I will put up again.

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Something else you can do if you want to create your own MACRO stuff is to Draw Letters and Numbers @1.0 tall, program them in incremental @ then you can create and use use another MACRO variable to scale them and use letters and numbers following the one refereenced MACRO above.

 

Lots and lots of possibilities.

Link to comment
Share on other sites

Here is what I did.Just change the main program to call different sub programs for what ever numbers you want engraved.

 

( TOOL1 - 1.MM BALLNOSE ENDMILL )

N10

G91G28Z0

M69

G28X0Y0A0.B0.

T1M06

G54

S10000M03

M69

G00G90X1.895Y-3.369A0.B0.

M68

G43H1Z2.M08

(FIRST DIGIT POSITION )

M98P3512

(SECOND DIGIT POSITION)

G90G00X.795Y-3.369

M98P3510

(THIRD DIGIT POSITION)

G90G00X-.305Y-3.369

M98P3516

(FOURTH DIGIT POSITION)

G90G00X-1.405Y-3.369

M98P3516

(FIFTH DIGIT POSITION)

G90G00X-2.505Y-3.369

M98P3516

G91G28Z0M05

G28X0Y0M09

M30

 

 

O3510

(SUB PROGRAM FOR THE DIGIT 0)

G91 G00 X0.000 Y0.000

X-0.376

G01 Z-2.075 F50.

X-0.065 Y-0.014

X-0.062 Y-0.029

X-0.059 Y-0.058

X-0.053 Y-0.072

X-0.047 Y-0.094

X-0.038 Y-0.108

X-0.026 Y-0.115

X-0.018 Y-0.130

X-0.006 Y-0.130

X0.006 Y-0.130

X0.018 Y-0.130

X0.026 Y-0.115

X0.038 Y-0.108

X0.047 Y-0.094

X0.053 Y-0.072

X0.059 Y-0.058

X0.062 Y-0.029

X0.065 Y-0.014

X0.067 Y0.014

X0.062 Y0.029

X0.059 Y0.058

X0.053 Y0.072

X0.047 Y0.094

X0.038 Y0.108

X0.026 Y0.115

X0.018 Y0.130

X0.006 Y0.130

X-0.006 Y0.130

X-0.018 Y0.130

X-0.026 Y0.115

X-0.038 Y0.108

X-0.047 Y0.094

X-0.053 Y0.072

X-0.059 Y0.058

X-0.062 Y0.029

X-0.067 Y0.014

G00 Z2.000

X0.376 Z0.075

M99

 

O3511

(SUB PROGRAM FOR THE DIGIT 1)

G91 G00 X0.000 Y0.000

X-0.391

G01 Z-2.075 F50.

Y-1.500

X0.176

G00 Z2.000

X0.215 Y1.500 Z0.075

M99

 

O3512

(SUB PROGRAM FOR THE DIGIT 2)

G91 G00 X0.000 Y0.000

X-0.750

G01 Z-2.075 F50.

X0.750

X-0.700 Y-1.060

X-0.026 Y-0.051

X-0.018 Y-0.043

X-0.006 Y-0.058

X0.006 Y-0.050

X0.018 Y-0.043

X0.026 Y-0.051

X0.038 Y-0.043

X0.047 Y-0.036

X0.053 Y-0.029

X0.059 Y-0.022

X0.062 Y-0.007

X0.065 Y-0.007

X0.067 Y0.007

X0.062 Y0.007

X0.059 Y0.022

X0.053 Y0.029

X0.047 Y0.036

X0.038 Y0.043

X0.026 Y0.051

X0.018 Y0.043

X0.006 Y0.050

G00 Z2.000

Y1.212 Z0.075

M99

 

O3513

(SUB PROGRAM FOR THE DIGIT 3)

G91 G00 X0.000 Y0.000

Y-0.462

G01 Z-2.075 F50.

X-0.006 Y0.087

X-0.018 Y0.072

X-0.026 Y0.072

X-0.038 Y0.065

X-0.047 Y0.058

X-0.053 Y0.043

X-0.059 Y0.036

X-0.062 Y0.022

X-0.067 Y0.007

X-0.065 Y-0.007

X-0.062 Y-0.022

X-0.059 Y-0.036

X-0.053 Y-0.043

X-0.047 Y-0.058

X-0.038 Y-0.065

X-0.026 Y-0.072

X-0.018 Y-0.072

X-0.006 Y-0.087

X0.006 Y-0.079

X0.018 Y-0.072

X0.026 Y-0.072

X0.038 Y-0.065

X0.047 Y-0.058

X0.053 Y-0.043

X0.059 Y-0.036

X0.062 Y-0.022

X0.065 Y-0.007

X-0.056 Y-0.007

X-0.056 Y-0.007

X-0.053 Y-0.022

X-0.047 Y-0.029

X-0.041 Y-0.036

X-0.036 Y-0.043

X-0.023 Y-0.051

X-0.015 Y-0.043

X-0.006 Y-0.058

X0.006 Y-0.050

X0.015 Y-0.043

X0.023 Y-0.051

X0.036 Y-0.043

X0.041 Y-0.036

X0.047 Y-0.029

X0.053 Y-0.022

X0.056 Y-0.007

X0.056 Y-0.007

X0.058 Y0.007

X0.056 Y0.007

X0.053 Y0.022

X0.047 Y0.029

X0.041 Y0.036

X0.036 Y0.043

X0.023 Y0.051

X0.015 Y0.043

X0.006 Y0.050

G00 Z2.000

X0.041 Y1.212 Z0.075

M99

 

O3514

(SUB PROGRAM FOR THE DIGIT 4)

G91 G00 X0.000 Y0.000

X-0.626

G01 Z-2.075 F50.

Y-1.500

X0.626 Y1.002

X-0.750

G00 Z2.000

X0.750 Y0.498 Z0.075

M99

 

O3515

(SUB PROGRAM FOR THE DIGIT 5)

G91 G00 X0.000 Y0.000

X-0.750 Y-1.500

G01 Z-2.075 F50.

X0.691

Y0.800

X-0.029 Y-0.050

X-0.047 Y-0.058

X-0.053 Y-0.043

X-0.059 Y-0.036

X-0.062 Y-0.022

X-0.067 Y-0.007

X-0.065 Y0.007

X-0.062 Y0.022

X-0.059 Y0.036

X-0.053 Y0.043

X-0.047 Y0.058

X-0.038 Y0.065

X-0.026 Y0.072

X-0.018 Y0.072

X-0.006 Y0.079

X0.006 Y0.087

X0.018 Y0.072

X0.026 Y0.072

X0.038 Y0.065

X0.047 Y0.058

X0.053 Y0.043

X0.059 Y0.036

X0.062 Y0.022

X0.065 Y0.007

X0.067 Y-0.007

X0.062 Y-0.022

X0.059 Y-0.036

X0.053 Y-0.043

X0.047 Y-0.058

X0.038 Y-0.065

G00 Z2.000

X0.050 Y0.231 Z0.075

M99

 

O3516

(SUB PROGRAM FOR THE DIGIT 6)

G91 G00 X0.000 Y0.000

X-0.750 Y-1.500

G01 Z-2.075 F50.

X0.662 Y0.887

X0.038 Y0.050

X0.026 Y0.058

X0.018 Y0.065

X0.006 Y0.065

X-0.006 Y0.065

X-0.018 Y0.065

X-0.026 Y0.057

X-0.038 Y0.051

X-0.047 Y0.050

X-0.053 Y0.037

X-0.059 Y0.028

X-0.062 Y0.015

X-0.067 Y0.007

X-0.065 Y-0.007

X-0.062 Y-0.015

X-0.059 Y-0.028

X-0.053 Y-0.037

X-0.047 Y-0.050

X-0.038 Y-0.051

X-0.026 Y-0.057

X-0.018 Y-0.065

X-0.006 Y-0.065

X0.006 Y-0.065

X0.018 Y-0.065

X0.026 Y-0.058

X0.038 Y-0.050

X0.047 Y-0.050

X0.053 Y-0.037

X0.059 Y-0.028

X0.062 Y-0.015

X0.065 Y-0.007

X0.067 Y0.007

X0.062 Y0.015

X0.059 Y0.028

X0.053 Y0.037

X0.047 Y0.050

G00 Z2.000

X0.088 Y0.613 Z0.075

M99

 

O3517

(SUB PROGRAM FOR THE DIGIT 7)

G91 G00 X0.000 Y0.000

G01 Z-2.075 F50.

X-0.750 Y-1.500

X0.750

G00 Z2.000

Y1.500 Z0.075

M99

 

O3518

(SUB PROGRAM FOR THE DIGIT 8)

G91 G00 X0.000 Y0.000

X-0.406 Y-0.916

G01 Z-2.075 F50.

X0.059

X0.038 Y0.007

X0.062 Y0.022

X0.059 Y0.036

X0.053 Y0.043

X0.047 Y0.058

X0.038 Y0.065

X0.026 Y0.072

X0.018 Y0.072

X0.006 Y0.079

X-0.006 Y0.087

X-0.018 Y0.072

X-0.026 Y0.072

X-0.038 Y0.065

X-0.047 Y0.058

X-0.053 Y0.043

X-0.059 Y0.036

X-0.062 Y0.022

X-0.067 Y0.007

X-0.065 Y-0.007

X-0.062 Y-0.022

X-0.059 Y-0.036

X-0.053 Y-0.043

X-0.047 Y-0.058

X-0.038 Y-0.065

X-0.026 Y-0.072

X-0.018 Y-0.072

X-0.006 Y-0.087

X0.006 Y-0.079

X0.018 Y-0.072

X0.026 Y-0.072

X0.038 Y-0.065

X0.047 Y-0.058

X0.053 Y-0.043

X0.059 Y-0.036

X0.062 Y-0.022

X0.035 Y-0.007

X-0.026 Y-0.007

X-0.056 Y-0.007

X-0.053 Y-0.022

X-0.047 Y-0.029

X-0.041 Y-0.036

X-0.036 Y-0.043

X-0.023 Y-0.051

X-0.015 Y-0.043

X-0.006 Y-0.058

X0.006 Y-0.050

X0.015 Y-0.043

X0.023 Y-0.051

X0.036 Y-0.043

X0.041 Y-0.036

X0.047 Y-0.029

X0.053 Y-0.022

X0.056 Y-0.007

X0.056 Y-0.007

X0.058 Y0.007

X0.056 Y0.007

X0.053 Y0.022

X0.047 Y0.029

X0.041 Y0.036

X0.036 Y0.043

X0.023 Y0.051

X0.015 Y0.043

X0.006 Y0.050

X-0.006 Y0.058

X-0.015 Y0.043

X-0.023 Y0.051

X-0.036 Y0.043

X-0.041 Y0.036

X-0.047 Y0.029

X-0.053 Y0.022

X-0.056 Y0.007

X-0.029 Y0.007

G00 Z2.000

X0.347 Y0.916 Z0.075

M99

 

O3519

(SUB PROGRAM FOR THE DIGIT 9)

G91 G00 X0.000 Y0.000

G01 Z-2.075 F50.

X-0.662 Y-0.887

X-0.038 Y-0.051

X-0.026 Y-0.057

X-0.018 Y-0.065

X-0.006 Y-0.065

X0.006 Y-0.065

X0.018 Y-0.065

X0.026 Y-0.058

X0.038 Y-0.050

X0.047 Y-0.050

X0.053 Y-0.037

X0.059 Y-0.028

X0.062 Y-0.015

X0.065 Y-0.007

X0.067 Y0.007

X0.062 Y0.015

X0.059 Y0.028

X0.053 Y0.037

X0.047 Y0.050

X0.038 Y0.050

X0.026 Y0.058

X0.018 Y0.065

X0.006 Y0.065

X-0.006 Y0.065

X-0.018 Y0.065

X-0.026 Y0.057

X-0.038 Y0.051

X-0.047 Y0.050

X-0.053 Y0.037

X-0.059 Y0.028

X-0.062 Y0.015

X-0.067 Y0.007

X-0.065 Y-0.007

X-0.062 Y-0.015

X-0.059 Y-0.028

X-0.053 Y-0.037

X-0.047 Y-0.050

G00 Z2.000

X0.662 Y0.887 Z0.075

M99

%

Link to comment
Share on other sites

I to would like a email if possible. I can not access that ftp site. Always trying to learn more on macros. I run a couple basic macros on my machine to make it safer and also more efficient. Like a basic counter to make sure we dont run to many parts on the multi pallet horizontal. before the program IF[#999GT1000]GOTO30 after the program #999=#999+1 or how many parts you just ran. Bascially I can run 1000 parts on the machine and it will shut off that face. I do this for every part on the machine. Really lowers the wasted time machining something we can not sell. Also a cheaper alternative to the 50k computer they want to sell you to do this..

 

Jim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...