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:

evolution serializing


rich
 Share

Recommended Posts

has anyone had to do this type of part number engraving? and if so what would be the best way to number engrave 1000's of parts on the machine without making 1000's of programs. something that the operator can do would be best. confused.gif maybe some type of macro?

Link to comment
Share on other sites

I do believe the only way to do it is in the machine control using macro or parametric programming. I know Fadal has this feature built in for serializing part numbers.

It would be nice if there was a c-hook or macro you could run in Mcam.. anybody seen anything???

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

I wrote a Custom Macro eons ago that did this. Unfortunately I can't seem to find it. It did take a number hours to write though.

 

That's your best option, get someone to write a Macro for you.

 

JM2C

Link to comment
Share on other sites

We are actually looking into this situation for one of our customers. They have a serial number that has to be projected onto a surface and then create the NC code. This cannot be done in macro programming on the control.

 

Anybody have a solution for this off the shelf???

 

Luc

Link to comment
Share on other sites

The surface projection condition for sure makes this best suited to a C-Hook type application, without the possibility to have an operator or the control increment or auto-increment the serial number.

 

--

 

As for the 2D situation, I've done the same thing as James.

 

I accomplished this by creating numbers in Mastercam - 1" in height so that scaling could be used on the control. Posted the code in incremental mode, made them each a subprogram. Hand edited the code to use Z as a variable, etc, etc. Then created a main program to move a given position, call the 1st sub for the first number, move to the next position, etc.

 

The amount of flexibility in the program depends on whether your control supports scaling, macros, etc. So it starts as something fairly generic, but must be tightened up for specific conditions as the control losses functionality. For instance on a limited control, your subs must be written for a specific letter size rather than scaled in the program. If variables are not supported, you must write in your Z depth in the subs as well.

 

Couldn't figure out how to auto-increment the serial number on the control, or how to parse out digits in a serial number to convert them into separate sub calls for each digit. As a result in this program, the operator must edit the individual digit variables in order to represent the proper serial number. If someone has solutions to these issues, please post them here. I'd also have to wonder if the cut depth is not also scaled by the P factor. If someone could please ship me their machine with a Fanuc control for more advanced testing, that would be great - thanks in advance.

 

-Variables #101 to #105 represent a 5 digit serial number

-#107 - cut depth

-#108 - plunge feed

-#109 - cut feed

-P value on G51 line - letter height

-R value on G68 line - rotation angle

 

code:

%

O0001 (SERIALNO)

(SERIAL NUMBER ENGRAVING)

G00 G17 G20 G40 G49 G80 G90

 

(EDIT SERIAL NUMBER)

#101=1

#102=2

#103=3

#104=4

#105=5

 

(LETTER HEIGHT)

#107=-0.01 (DEPTH)

#108= 5.0 (PLUNGE FEED)

#109=10.0 (XY FEED)

 

T1 M06 (ENGRAVING TOOL)

G51 I0. J0. K0. P0.10 (P - LETTER HEIGHT)

G68 X0. Y0. R0. (R - ROTATION ANGLE)

G00 G90 G54 X0. Y0.

G43 H1 Z1.

S5000 M3

 

(FIRST NUMBER)

G00 G90 X0. Y0.

G65 P[#101+1000]

 

(SECOND NUMBER)

G00 G90 X.6 Y0.

G65 P[#102+1000]

 

(THIRD NUMBER)

G00 G90 X1.2 Y0.

G65 P[#103+1000]

 

(FORTH NUMBER)

G00 G90 X1.8 Y0.

G65 P[#104+1000]

 

(FIFTH NUMBER)

G00 G90 X2.4 Y0.

G65 P[#105+1000]

 

G69 (CANCEL ROTATION)

G50 (CANCEL SCALING)

M05

G91 G28 Z0.

G28 X0. Y0.

G90

M30

 

O1000

(#0)

G91

G00 X.251 Y0.

G90 Z.1

G01 Z#107 F#108

G91 X-.0451 Y.0096 F#109

X-.0412 Y.0192

X-.0392 Y.0385

X-.0353 Y.0481

X-.0314 Y.0625

X-.0255 Y.0721

X-.0176 Y.0769

G02 X-.0157 Y.1731 I.9529 J.1736

X.0157 Y.1731 I.9686 J-.0005

G01 X.0176 Y.0769

X.0255 Y.0721

X.0314 Y.0625

X.0353 Y.0481

X.0392 Y.0385

X.0412 Y.0192

X.0451 Y.0096

X.0431 Y-.0096

X.0412 Y-.0192

X.0392 Y-.0385

X.0353 Y-.0481

X.0314 Y-.0625

X.0255 Y-.0721

X.0176 Y-.0769

G02 X.0157 Y-.1731 I-.9529 J-.1736

X-.0157 Y-.1731 I-.9686 J.0005

G01 X-.0176 Y-.0769

X-.0255 Y-.0721

X-.0314 Y-.0625

X-.0353 Y-.0481

X-.0392 Y-.0385

X-.0412 Y-.0192

X-.0431 Y-.0096

G00 G90 Z.25

M99

 

O1001

(#1)

G91

G00 X.1431 Y1.

G90 Z.1

G01 Z#107 F#108

G91 X.1177 F#109

Y-1.

G00 G90 Z.25

M99

 

O1002

(#2)

G91

G00 X0. Y.8077

G90 Z.1

G01 Z#107 F#108

G91 X.0039 Y.0336 F#109

G02 X.0294 Y.0625 I.3402 J-.1219

X.0922 Y.0722 I.1871 J-.1442

G01 X.0392 Y.0144

G02 X.0863 Y.0096 I.5226 J-4.2968

X.0843 Y-.0096 I-.8755 J-8.0515

X.1059 Y-.0577 I-.0705 J-.2554

G01 X.0255 Y-.0289

G02 X.0294 Y-.0625 I-.3108 J-.1844

G01 X.0039 Y-.0336

X-.0039 Y-.0385

G02 X-.0294 Y-.0625 I-.3402 J.1219

G01 X-.4667 Y-.7067

X.5

G00 G90 Z.25

M99

 

O1003

(#3)

G91

G00 X.0275 Y.8077

G90 Z.1

G01 Z#107 F#108

G91 X.0039 Y.0336 F#109

G02 X.0255 Y.0625 I.2995 J-.0857

X.1176 Y.0866 I.1826 J-.125

X.0765 Y.0096 I.7951 J-6.0147

G01 X.0745 Y-.0096

G02 X.1176 Y-.0866 I-.065 J-.2116

X.0255 Y-.0625 I-.274 J-.1482

G01 X.0039 Y-.0336

X-.0039 Y-.0385

G02 X-.0255 Y-.0625 I-.2995 J.0857

X-.1176 Y-.0865 I-.1826 J.125

G01 X-.0745 Y-.0096

X.0431 Y-.0048

X.0412 Y-.0145

G02 X.0745 Y-.0528 I-.157 J-.3001

X.0569 Y-.0818 I-.2386 J-.2266

X.0294 Y-.0961 I-.4135 J-.1791

G01 X.0039 Y-.0529

X-.0039 Y-.0577

G02 X-.0294 Y-.0962 I-.4429 J.0829

X-.0569 Y-.0817 I-.2955 J.1449

X-.0745 Y-.0529 I-.2315 J.2472

G01 X-.0412 Y-.0144

X-.0431 Y-.0048

X-.0451 Y.0048

X-.0412 Y.0144

G02 X-.0745 Y.0529 I.157 J.3001

X-.0569 Y.0817 I.2386 J.2266

X-.0294 Y.0962 I.4135 J.1791

G01 X-.0039 Y.0577

G00 G90 Z.25

M99

 

O1004

(#4)

G91

G00 X.5 Y.3317

G90 Z.1

G01 Z#107 F#108

G91 X-.5 F#109

X.4176 Y.6683

Y-1.

G00 G90 Z.25

M99

 

O1005

(#5)

G91

G00 X.5 Y1.

G90 Z.1

G01 Z#107 F#108

G91 X-.4608 F#109

Y-.5337

X.0196 Y.0337

X.0314 Y.0385

G02 X.0745 Y.0528 I.2315 J-.2472

G01 X.0412 Y.0145

X.0451 Y.0048

X.0431 Y-.0048

X.0412 Y-.0145

G02 X.0745 Y-.0528 I-.157 J-.3001

X.0569 Y-.0818 I-.2386 J-.2266

X.0294 Y-.0961 I-.4135 J-.1791

G01 X.0039 Y-.0529

X-.0039 Y-.0577

G02 X-.0294 Y-.0962 I-.4429 J.0829

X-.0569 Y-.0817 I-.2955 J.1449

X-.0745 Y-.0529 I-.2315 J.2472

G01 X-.0412 Y-.0144

X-.0431 Y-.0048

X-.0451 Y.0048

X-.0412 Y.0144

G02 X-.0745 Y.0529 I.157 J.3001

X-.0569 Y.0817 I.2386 J.2266

G00 G90 Z.25

M99

 

O1006

(#6)

G91

G00 X.5 Y1.

G90 Z.1

G01 Z#107 F#108

G91 X-.4412 Y-.5913 F#109

X-.0255 Y-.0337

G03 X-.0294 Y-.0817 I.2312 J-.1294

Y-.0866 I.2367 J-.0433

X.0294 Y-.0817 I.2606 J.0476

X.0569 Y-.0673 I.3569 J.2439

X.0745 Y-.0433 I.1886 J.239

X.0863 Y-.0144 I.1014 J.3412

X.0843 Y.0144 I-.0185 J.3616

X.0745 Y.0433 I-.1141 J.2822

X.0569 Y.0673 I-.3001 J.3112

X.0294 Y.0817 I-.2312 J.1294

Y.0866 I-.2367 J.0433

X-.0294 Y.0817 I-.2606 J-.0476

X-.0569 Y.0673 I-.3569 J-.2439

X-.0745 Y.0433 I-.1886 J-.239

X-.0843 Y.0144 I-.1028 J-.3471

X-.0863 Y-.0144 I.0151 J-.3556

X-.0745 Y-.0433 I.1141 J-.2822

G01 X-.0314 Y-.0336

G00 G90 Z.25

M99

 

O1007

(#7)

G91

G00 X0. Y1.

G90 Z.1

G01 Z#107 F#108

G91 X.5 F#109

X-.5 Y-1.

G00 G90 Z.25

M99

 

O1008

(#8)

G91

G00 X.2706 Y.6106

G90 Z.1

G01 Z#107 F#8

G91 X.0176 Y.0048 F#9

X.0373 Y.0048

G03 X.1176 Y.0865 I-.065 J.2116

X.0255 Y.0625 I-.274 J.1482

G01 X.0039 Y.0385

G03 X-.0137 Y.0625 I-.1523 J-.0007

G01 X-.0157 Y.0336

G03 X-.1176 Y.0866 I-.1826 J-.125

G01 X-.0745 Y.0096

G03 X-.0765 Y-.0096 I.7187 J-6.0243

X-.1176 Y-.0866 I.065 J-.2116

X-.0255 Y-.0625 I.274 J-.1482

G01 X-.0039 Y-.0336

X.0039 Y-.0385

G03 X.0255 Y-.0625 I.2995 J.0857

X.1176 Y-.0865 I.1826 J.125

G02 X.0569 Y-.0096 I-.0143 J-.2573

G01 X.0392

G02 X.0647 Y-.0193 I-.0382 J-.2472

X.0745 Y-.0528 I-.157 J-.3001

X.0569 Y-.0818 I-.2386 J-.2266

X.0294 Y-.0961 I-.4135 J-.1791

G01 X.0039 Y-.0529

X-.0039 Y-.0577

G02 X-.0294 Y-.0962 I-.4429 J.0829

X-.0569 Y-.0817 I-.2955 J.1449

X-.0745 Y-.0529 I-.2315 J.2472

G01 X-.0412 Y-.0144

X-.0431 Y-.0048

X-.0451 Y.0048

X-.0412 Y.0144

G02 X-.0745 Y.0529 I.157 J.3001

X-.0569 Y.0817 I.2386 J.2266

X-.0294 Y.0962 I.4135 J.1791

G01 X-.0039 Y.0577

X.0039 Y.0529

G02 X.0294 Y.0961 I.4429 J-.0829

X.0569 Y.0818 I.2955 J-.1449

X.0745 Y.0528 I.2315 J-.2472

G01 X.0412 Y.0145

X.0255 Y.0048

G00 G90 Z.25

M99

 

O1009

(#9)

G91

G00 X.4412 Y.5913

G90 Z.1

G01 Z#107 F#108

G91 X-.0314 Y-.0336 F#109

G02 X-.0745 Y-.0433 I-.1886 J.239

X-.0843 Y-.0144 I-.1028 J.3471

X-.0863 Y.0144 I.0151 J.3556

X-.0745 Y.0433 I.1141 J.2822

X-.0569 Y.0673 I.3001 J.3112

X-.0294 Y.0817 I.2312 J.1294

Y.0866 I.2367 J.0433

X.0294 Y.0817 I.2606 J-.0476

X.0569 Y.0673 I.3569 J-.2439

X.0745 Y.0433 I.1886 J-.239

X.0863 Y.0144 I.1014 J-.3412

X.0843 Y-.0144 I-.0185 J-.3616

X.0745 Y-.0433 I-.1141 J-.2822

X.0569 Y-.0673 I-.3001 J-.3112

X.0294 Y-.0817 I-.2312 J-.1294

Y-.0866 I-.2367 J-.0433

X-.0294 Y-.0817 I-.2606 J.0476

G01 X-.4667 Y-.625

G00 G90 Z.25

M99

%

 

[ 04-15-2002, 11:34 AM: Message edited by: Dave Thomson ]

Link to comment
Share on other sites

Well I too had this problem, my boss even contacted our reseller for a possible solution.

 

Our problem was, how do I program the numbers to have the operator has as little input into the job as possible. I did all my lettering in 2D with box letters to get exact spacing. Fired up Easy Macro (macro program off the internet), programmed a part to use the calculator to sequence the numbers and post the toolpath. I can program about 500 numbers in 3 hours.

 

Easy Macro was my life saver

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...