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:

incremental number ingraving macro?


gary.d
 Share

Recommended Posts

I would appreciate any help from someone to help automate the incremental advance of a part no. for part marking serialization.

 

Called from the starting point, a serial no would be generated at the machine, and incremented with each new part.

 

Ie.. 001, 002, 003 etc…..

 

Thanks

 

Gary F.

Link to comment
Share on other sites

THIS PROGRAM WILL MACHINE .100 HIGH NUMBERS. You will need to add tool

Information to the program

 

 

O8000

G54

(#600=(SERIAL NUMBER)

#601=[FIX[#600/1000]](THOUSANDS)

#602=[#600-[#601*1000]]

#603=[FIX[#602/100]](HUNDREDS)

#604=[#602-[#603*100]]

#605=[FIX[#604/10]](TENS)

#606=[#604-[#605*10]]

#607=[FIX[#606*1]](ONES)

 

#700=.1(INDEX AMOUNT)

G52X.1Y.1(CENTER POSITION OF FIRST NUMBER)

G65P[#601+10](SCRIBE THOUSANDS)

G52X[#700*2](INDEX)

G65P[#603+10](SCRIBE HUNDREDS)

G52X[#700*3](INDEX)

G65P[#605+10](SCRIBE TENS)

G52X[#700*4](INDEX)

G65P[#607+10](SCRIBE ONES)

#600=[#600+1]

G52X0Y0

M99

 

 

O10

G00Z0.1

X0.0337Y-0.0072

Z0.05

G01Z-0.002F10.0

X0.0291Y-0.0308

X0.0193Y-0.0453

X0.0048Y-0.05

X-0.0048Y-0.05

X-0.0193Y-0.0453

X-0.029Y-0.0308

X-0.0337Y-0.0072

X-0.0337Y0.0071

X-0.029Y0.0307

X-0.0193Y0.0452

X-0.0048Y0.05

X0.0048Y0.05

X0.0193Y0.0452

X0.0291Y0.0307

X0.0337Y0.0071

X0.0337Y-0.0072

G00Z0.1

X0.0316Y-0.0069

Z0.05

G01Z-0.002F10.0

X0.0316Y0.0068

X0.027Y0.0299

X0.018Y0.0433

X0.0046Y0.0478

X-0.0045Y0.0478

X-0.018Y0.0433

X-0.027Y0.0299

X-0.0316Y0.0068

X-0.0316Y-0.0069

X-0.027Y-0.03

X-0.018Y-0.0435

X-0.0045Y-0.048

X0.0046Y-0.048

X0.018Y-0.0435

X0.027Y-0.03

X0.0316Y-0.0069

G00Z.05

M99

 

O11

G00Z0.1

X0.0126Y-0.05

Z0.05

G01Z-0.002F10.0

X0.0104Y-0.05

X0.0104Y0.0464

X-0.0019Y0.0338

X-0.0115Y0.0292

X-0.0126Y0.031

X-0.0033Y0.0357

X0.0111Y0.05

X0.0126Y0.05

X0.0126Y-0.05

G0Z.05

M99

 

O12

G00Z0.1

X0.0339Y-0.05

Z0.05

G01Z-0.002F10.0

X-0.0339Y-0.05

X0.0145Y-0.0018

X0.0236Y0.0121

X0.0282Y0.0212

X0.0282Y0.03

X0.0236Y0.0389

X0.0193Y0.0434

X0.0103Y0.0479

X-0.0078Y0.0479

X-0.0167Y0.0434

X-0.0212Y0.0389

X-0.0257Y0.03

X-0.0257Y0.0256

X-0.0278Y0.0256

X-0.0278Y0.0305

X-0.023Y0.0403

X-0.0181Y0.0452

X-0.0083Y0.05

X0.0109Y0.05

X0.0206Y0.0452

X0.0255Y0.0403

X0.0303Y0.0305

X0.0303Y0.0206

X0.0255Y0.0111

X0.0161Y-0.0031

X-0.0289Y-0.048

X0.0339Y-0.048

X0.0339Y-0.05

G0Z.05

M99

 

O13

G00Z0.1

X0.0337Y-0.0212

Z0.05

G01Z-0.002F10.0

X0.0289Y-0.0356

X0.0191Y-0.0453

X0.0048Y-0.05

X-0.0095Y-0.05

X-0.0239Y-0.0453

X-0.029Y-0.0404

X-0.0337Y-0.0309

X-0.0318Y-0.0299

X-0.0271Y-0.0391

X-0.0229Y-0.0435

X-0.0092Y-0.048

X0.0045Y-0.048

X0.0181Y-0.0435

X0.027Y-0.0345

X0.0316Y-0.0209

X0.0316Y-0.0118

X0.027Y0.0018

X0.0226Y0.006

X0.0137Y0.0105

X-0.0022Y0.0105

X0.0258Y0.0479

X-0.0234Y0.0479

X-0.0234Y0.05

X0.0301Y0.05

X0.0021Y0.0127

X0.0142Y0.0127

X0.024Y0.0079

X0.0289Y0.0028

X0.0337Y-0.0116

X0.0337Y-0.0212

G0Z.05

M99

 

O14

G00Z0.1

X0.0356Y-0.0188

Z0.05

G01Z-0.002F10.0

X0.0136Y-0.0188

X0.0136Y-0.05

X0.0115Y-0.05

X0.0115Y-0.0188

X-0.0356Y-0.0188

X0.0136Y0.05

X0.0136Y-0.0167

X0.0356Y-0.0167

X0.0356Y-0.0188

G00Z0.1

X0.0115Y-0.0167

Z0.05

G01Z-0.002F10.0

X0.0115Y0.0434

X-0.0314Y-0.0167

X0.0115Y-0.0167

G0Z.05

M99

 

O15

G00Z0.1

X0.0337Y-0.0212

Z0.05

G01Z-0.002F10.0

X0.0289Y-0.0356

X0.0191Y-0.0453

X0.0048Y-0.05

X-0.0095Y-0.05

X-0.0239Y-0.0453

X-0.029Y-0.0404

X-0.0337Y-0.0309

X-0.0318Y-0.0299

X-0.0271Y-0.0391

X-0.0229Y-0.0435

X-0.0092Y-0.048

X0.0045Y-0.048

X0.0181Y-0.0435

X0.027Y-0.0345

X0.0316Y-0.0209

X0.0316Y-0.0118

X0.027Y0.0018

X0.0181Y0.0107

X0.0045Y0.0152

X-0.0092Y0.0152

X-0.0229Y0.0107

X-0.0294Y0.004

X-0.0243Y0.05

X0.0233Y0.05

X0.0233Y0.0479

X-0.0225Y0.0479

X-0.0267Y0.0099

X-0.0239Y0.0126

X-0.0095Y0.0173

X0.0048Y0.0173

X0.0191Y0.0126

X0.0289Y0.0028

X0.0337Y-0.0116

X0.0337Y-0.0212

G0Z.05

M99

 

O16

G00Z0.1

X0.0314Y-0.0212

Z0.05

G01Z-0.002F10.0

X0.0266Y-0.0356

X0.0169Y-0.0453

X0.0025Y-0.05

X-0.0025Y-0.05

X-0.0169Y-0.0453

X-0.0266Y-0.0356

X-0.0314Y-0.0165

X-0.0314Y0.0071

X-0.0268Y0.0307

X-0.0219Y0.0403

X-0.0169Y0.0452

X-0.0025Y0.05

X0.0072Y0.05

X0.0218Y0.0452

X0.0266Y0.0355

X0.0247Y0.0344

X0.0202Y0.0434

X0.0068Y0.0479

X-0.0022Y0.0479

X-0.0158Y0.0434

X-0.0201Y0.0389

X-0.0246Y0.0299

X-0.0293Y0.0068

X-0.0293Y-0.0099

X-0.0266Y-0.0019

X-0.0169Y0.0079

X-0.0025Y0.0127

X0.0025Y0.0127

X0.0169Y0.0079

X0.0266Y-0.0019

X0.0314Y-0.0163

X0.0314Y-0.0212

G00Z0.1

X0.0293Y-0.0209

Z0.05

G01Z-0.002F10.0

X0.0293Y-0.0165

X0.0247Y-0.0029

X0.0158Y0.006

X0.0022Y0.0105

X-0.0022Y0.0105

X-0.0158Y0.006

X-0.0247Y-0.0029

X-0.0293Y-0.0164

X-0.0247Y-0.0345

X-0.0158Y-0.0435

X-0.0022Y-0.048

X0.0022Y-0.048

X0.0158Y-0.0435

X0.0247Y-0.0345

X0.0293Y-0.0209

G0Z.05

M99

 

O17

G00Z0.1

X0.0338Y0.05

Z0.05

G01Z-0.002F10.0

X-0.0141Y-0.05

X-0.0159Y-0.0493

X0.0302Y0.0478

X-0.0338Y0.0478

X-0.0338Y0.05

X0.0338Y0.05

G0Z.05

M99

 

O18

G00Z0.1

X0.0337Y-0.0307

Z0.05

G01Z-0.002F10.0

X0.024Y-0.0453

X0.0095Y-0.05

X-0.0094Y-0.05

X-0.0238Y-0.0453

X-0.0289Y-0.0404

X-0.0337Y-0.0307

X-0.0337Y-0.0161

X-0.0289Y-0.0064

X-0.0192Y0.0032

X-0.0044Y0.0081

X-0.0144Y0.0105

X-0.0242Y0.0155

X-0.029Y0.0253

X-0.029Y0.0352

X-0.0242Y0.0452

X-0.0094Y0.05

X0.0095Y0.05

X0.0242Y0.0452

X0.0291Y0.0352

X0.0291Y0.0253

X0.0242Y0.0155

X0.0144Y0.0105

X0.0044Y0.0081

X0.0049Y0.008

X0.0192Y0.0032

X0.029Y-0.0064

X0.0337Y-0.0161

X0.0337Y-0.0307

G00Z0.1

X0.027Y0.0258

Z0.05

G01Z-0.002F10.0

X0.027Y0.0347

X0.0225Y0.0433

X0.0092Y0.0478

X-0.0092Y0.0478

X-0.0225Y0.0433

X-0.027Y0.0347

X-0.027Y0.0258

X-0.0225Y0.017

X-0.0136Y0.0127

X0.0Y0.0092

X0.0136Y0.0127

X0.0225Y0.017

X0.027Y0.0258

G00Z0.1

X0.0316Y-0.0302

Z0.05

G01Z-0.002F10.0

X0.0316Y-0.0167

X0.0271Y-0.0078

X0.0182Y0.0014

X0.0044Y0.0058

X0.0Y0.0071

X-0.0044Y0.0058

X-0.0181Y0.0014

X-0.0271Y-0.0078

X-0.0316Y-0.0167

X-0.0316Y-0.0302

X-0.0271Y-0.0391

X-0.0228Y-0.0435

X-0.0092Y-0.048

X0.0092Y-0.048

X0.0227Y-0.0435

X0.0316Y-0.0302

G0Z.05

M99

 

O19

G00Z0.1

X0.0314Y-0.0072

Z0.05

G01Z-0.002F10.0

X0.0268Y-0.0308

X0.0219Y-0.0404

X0.0169Y-0.0453

X0.0025Y-0.05

X-0.0072Y-0.05

X-0.0218Y-0.0453

X-0.0266Y-0.0356

X-0.0247Y-0.0345

X-0.0202Y-0.0435

X-0.0068Y-0.048

X0.0022Y-0.048

X0.0158Y-0.0435

X0.0201Y-0.0391

X0.0246Y-0.03

X0.0293Y-0.0069

X0.0293Y0.0098

X0.0266Y0.0018

X0.0169Y-0.008

X0.0025Y-0.0128

X-0.0025Y-0.0128

X-0.0169Y-0.008

X-0.0266Y0.0018

X-0.0314Y0.0161

X-0.0314Y0.0211

X-0.0266Y0.0355

X-0.0169Y0.0452

X-0.0025Y0.05

X0.0025Y0.05

X0.0169Y0.0452

X0.0266Y0.0355

X0.0314Y0.0164

X0.0314Y-0.0072

G00Z0.1

X0.0293Y0.0163

Z0.05

G01Z-0.002F10.0

X0.0247Y0.0344

X0.0158Y0.0433

X0.0022Y0.0478

X-0.0022Y0.0478

X-0.0158Y0.0433

X-0.0247Y0.0344

X-0.0293Y0.0208

X-0.0293Y0.0164

X-0.0247Y0.0028

X-0.0158Y-0.0061

X-0.0022Y-0.0107

X0.0022Y-0.0107

X0.0158Y-0.0061

X0.0247Y0.0028

X0.0293Y0.0163

G0Z.05

M99

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