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:

V9 Mpmaster post question


Rob @ Target Machine
 Share

Recommended Posts

Well since I don't have V9 any longer I'll try from off the top of my head.

 

#1.)

In the tool table you may need to use the no_spc between things where you don't want any extra spaces.

 

#2.)

Maybe, maybe not, it depends HOW your setting Z depths in that custom cycle

Link to comment
Share on other sites

I'm use spaces$ variable to set spaces:

...

spaces$ : 1 # Number of spaces to add between fields

...

pheader$ # File header

n$, sbeginpgm, sprogname$, smm,e$

spaces$ = 0

n$, " ; FILE-", *smcpath$, *smcname$, *smcext$, e$

n$, " ; ", *year2,".", *smonth, day$,". ", time$, e$

spaces$ = 1

...

Link to comment
Share on other sites

I found the space prob --> pspace...it adds extra spaces after tool comment

 

pspace # Creates spaces based on tool comment length

#" " <-----bye bye

""

counter = counter + 1

 

cheers.gif

 

OK one down - one to go. Does anyone know how mpmaster post captures the z levels to make z min / z max comments ???

 

I see preadbuf5 and pwritbuf5 routines buffering the z's, but don't see how the routine is getting the z values. "min_depth" is what is outputting the comment until I do a custom drill cycle.

I am using drl_prm to pass the z to the custom cycle and the cycle is ouput as a sub.

Link to comment
Share on other sites

I'll give a shot at an answer for the z_min/z_max:

 

During execution of the post, the pwrtt section is being called out first, before the first operation is being output to the post.

 

It runs thru all operations and gets info for tooltable, tool planes, and x,y,z min/max limits by calling ptravel and writes out the info by calling pwritbuf5.

 

After this parsing is done, ptravel is re-called from the psof section.

 

hope this helps...

Link to comment
Share on other sites

Thanks it works fine.

 

cheers.gif

 

ptravel # Tool travel limit calculation

if x_min < x_tmin, x_tmin = x_min

if x_max > x_tmax, x_tmax = x_max

if y_min < y_tmin, y_tmin = y_min

if y_max > y_tmax, y_tmax = y_max

if z_min < z_tmin, z_tmin = z_min

if z_max > z_tmax, z_tmax = z_max

# Custom drill parameters<------------

if depth_1 < z_min, z_min = depth_1

if depth_2 < z_min, z_min = depth_2

if depth_3 < z_min, z_min = depth_3

if depth_4 < z_min, z_min = depth_4

if depth_5 < z_min, z_min = depth_5

 

I only need to post for tool clearance. drl_prm values are assigned to depth_1-5 earlier in post.

 

cheers.gif

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