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:

Post question again


mikhael gutman
 Share

Recommended Posts

Hi !

I would like to use “STOCK TO LEAVE” value for setting up mode for high speed machining automatically in G-code . So idea is : pull out stock value ,compare with limits of stock and in depend of this limits and my “stock to leave “ value get spatial codes in my g-code generated by post.

I would be really appreciate any help to get stock to leave value in G-code which from ver . 8 came as new option but I newer see it working.

 

Thank you in advance

Link to comment
Share on other sites

If I recall, this has been covered. It goes something like this, (being lazy like you and not checking the search feature), there's no varialbles for those available to the end user.

 

'Rekd teh So many un-used tools in the shed..

 

[ 05-16-2003, 10:15 AM: Message edited by: Rekd ]

Link to comment
Share on other sites

mikhael:

 

There is a will, there is a way smile.gif

 

Please read Dave's reply cheers.gif , for Contour or pocket tool path, you need to add/modify the following in the post (I just tried with Mpmaster post for v9 and it works fine):

......

# ------------------------------------------------------------------------

# Parameter Tables

# ------------------------------------------------------------------------

fprmtbl 2 2 # 2D Contour

10010 stock2dxy # Amount of stock to leave on X & Y

10068 stock2dz # Amount of stock to leave on Z

 

fprmtbl 4 2 # 2D Pocket

10010 stock2dxy # Amount of stock to leave on X & Y

10068 stock2dz # Amount of stock to leave on Z

 

......

 

fmt 2 stock2dxy # Amoutn of Stock left on X & Y

fmt 2 stock2dz # Amoutn of Stock left on Z

 

......

 

pstock # Comment amount of stock to leave

spaces=0

if opcode = 2 | opcode = 4,

[

pbld, n, pspc, "(TOOLPATH - ", *stoper, ")", e

pbld, n, pspc, "(STOCK LEFT ON X & Y = ", *stock2dxy, ")", e

pbld, n, pspc, "(STOCK LEFT ON Z = ", *stock2dz, ")", e

]

......

pparameter # Run parameter table

if opcode=2 | opcode=4 | opcode=13 | opcode=14, result = fprm (opcode)

......

 

Here is the output I get with the modified post:

 

......

N10 G00 G17 G20 G40 G49 G80 G90

N20 (CONTOUR)

N30 T3 M06 ( 3/4 FLAT ENDMILL)

N40 (MAX - Z2.)

N50 (MIN - Z-.095)

N60 (TOOLPATH - CONTOUR)

N70 (STOCK LEFT ON X & Y = .012)

N80 (STOCK LEFT ON Z = .005)

N90 G00 G90 G54 X.45 Y-1.412 S713 M03

N100 G43 H3 Z2. M08

N110 Z.1

N120 G01 Z-.095 F6.42

......

N300 (POCKET)

N310 T2 M06 ( 1/2 BALL ENDMILL)

N320 (MAX - Z2.5)

N330 (MIN - Z-.49)

N340 (TOOLPATH - POCKET)

N350 (STOCK LEFT ON X & Y = .015)

N360 (STOCK LEFT ON Z = .01)

N370 G00 G90 G54 X-.3671 Y-.0415 S1069 M03

N380 G43 H2 Z2. M08

N390 Z.1

N400 G01 X-.625 Z.0865 F6.42

......

 

HTH.

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