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:

How to set a parts counter on a Makino


RDEMIDON
 Share

Recommended Posts

There are a lot of guys who have that machine here, Im sure that one of them can help you.

But you could use a macro counter at the end of the program.

Example:

%

O1234(Part program)

N1T

M6

G0G55G90X16.74Y17.88S3056M3

G43H1Z142.5

G99G81Z39.6R75.0F1078.

G0G80

M5

G0G91G30Z0.

M01

#531=#531+1(COUNTER)

M30

%

Link to comment
Share on other sites

Isn't it a fanuc control? Makino Professional Series Front End. Anyway if so, should be tied to #3901. There may be a pmc k parameter that you could set to automatically update this upon M30. Otherwise

 

just add the following line immediately above your M30

 

#3901 = #3901 + (number to increase by).

 

ex

 

#3901 = #3901 + 1.

 

Give that line a shot in MDI and it would update the parts counter.

 

 

Husker

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

#6710 dictates which M-Code advances the parts counter. M00, M98, M99, and M198 are invalid.

 

I did what you see below for a lathe application. With some work you can do a bunch of things with it.

 

%

O1001(READING PARTS COUNTER TEST 1)

 

#3902=200(TOTAL PARTS WANTED)

 

N1

#100=0

 

N10

WHILE[#100LE#3902]DO1

G4X1. (PART PROGRAM INSERTED HERE)

#100=#100+1

END1

M1

 

M30

 

N9999#3000=1(PARTS QTY MET)

 

M30

%

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