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:

M30

Verified Members
  • Posts

    6
  • Joined

  • Last visited

M30's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Roger, That's great that the c-hook is again available. I think it was unavailable for a version or two but I'm glad its back. It will make my job easier. M30
  2. I don't think this would be trivial. You are saying you would like a comment stating the number of drill points prior to the drill operation. The NCI file is linear and so the only way to find out that piece of information is to suspend all code output until after all the points are drilled while counting the number of points. Then the number of points could be output, and then release all the "buffered" code. It would be a bit of a pain to set up, but I doubt it would be impossible. You should contact your reseller and see what they suggest. M30
  3. I do this all the time. The best method I have found: 1. create a copy of, and rename the "pst" (and "psb" if there is one) using windows explorer or similar. 2. rename the mmd-6 and control-6 using mastercam: - after creating your copied renamed "pst" file go into mastercam settings menu -> machine definition manager. - load up the machine definition you want to rename - "save as" this machine definition as the new name - from the machine definition manager dialog box, click the edit the control definition icon. - once in the control definition, hit the "save as" button, and save as the new name. - under the post processors button, add the newly named post into the list, and remove any old posts from the list - at this point if you hit save on the control def manager you should see a green check mark beside the post processor path for the new post. - last important step, you need to import all settings from the old control def: *select any of the control def settings on the left side. *right click over top of the settings on the right and select import -> all pages *select the original named control def, and the original named post to pull settings from *save the control def Everything should then be renamed and you should be good to go. Long process I know! If in doubt contact your mastercam reseller. M30
  4. Much appreciated. There is always more to learn. Some of what I assume to know is empirical, and based on working with posts alone. I love hearing the straight facts from the source. It would be awesome if some of this information was stickied in a post processor section of the forum. Good discussion all. I'm enjoying it. Cheers, M30 [email protected]
  5. haha. Sorry i would have commented if i had tried pulling those before. I haven't run into a situation where i've had to pull those variables, and currently don't have mastercam to test. I wish I could help further. Regards, Your local post processor Guru
  6. Some general notes on parameters for everyone with regards to MP posts: - There are several ways parameters must be obtained. * some parameters are available in the NCI file and can sometimes be read using sparameter$ or via existing variables. * Some values with existing variables do not need a parameter read, but a parameter read could be used to fill a new variable with the same information. * There is a long list of existing variables in the V9 documentation and you can also find several in some of the newer documentation - Contrary to popular belief there are many parameters that do not appear in the NCI file in any form, but they still exist. They are passed by some method directly from mastercam to MP and then to the post when called for. * in order to call for parameters not available via the NCI file some commands like rd_params$, rd_cd$, rd_md$, rd_tlpathgrp$, etc must be present in the correct location in the post. This can be difficult to troubleshoot. Some of this information is in mpmaster already but there are no guarantees it is all there, especially for newer parameters that are not used in any of the mpmaster output currently. * some parameters are only accessible via parameter tables. parameter table calls: #Read parameter lookup tables - if prmcode$ >= 17000 & prmcode$ < 18000, result = fprm(1) #Run the parameter table for Machine Definition Parameters #Leave lines below commented until you enter values in related lookup tables if prmcode$ >= 18000 & prmcode$ < 19000, result = fprm(2) #Run the parameter table for Control Definition Parameters #if prmcode$ >= 19000 & prmcode$ < 19900, result = fprm(3) #Run the parameter table for Toolpath Group Parameters parameter table contents: fprmtbl 1 42 #Table Number, Size # Param Variable to load value into 17008 spostname #Post Processor Filename 17060 minfrdeg_old #this parameter no longer functions MU00008b 17054 minfeedpm #Limit for feed in inch/min 17055 maxfeedpm #Limit for feed in inch/min 17058 maxfrinv #Maximum feedrate - inverse time - inch - Minimum value from MD as this is inverse time 17059 minfrinv #Minimum feedrate - inverse time - inch - Minimum value from MD as this is inverse time 17922 maxfrdeg #Maximum feedrate deg/min .... .... * there are other parameters still that are only available as a filled group of variables. essentially the parameter number is called and a bunch of variables are filled at once in sequence all from the main call parameter, like so: declaration of all variables associated with the parameter: fmt 2 slot # 20004 Parameter line fmt 2 tool_type fmt 2 matl_type fmt 2 corner_rad_type fmt 2 diameter fmt 2 corner_rad fmt 2 threads fmt A 2 tip_angle fmt 2 dia_off fmt 2 len_off fmt 2 tool_feed fmt 2 plunge fmt 2 retract fmt 2 rpm fmt 2 coolant1 fmt 2 n_flutes1 fmt A 2 tip_angle_ch call of the parameter group to fill the variables in pwrttparam or pparameter: if prmcode$ = 20004, slot = rpar(sparameter$,16) - note the total number of variables is the 2nd argument in the function. - i have probably forgotten a thing or two but that's most of the critical stuff. In summary obtaining information from parameters in MP can vary in complexity depending on how they must be obtained. Also the system of information itself is somewhat more complex than it needs to be, which is mainly due to the MP language being built upon over a number of years and the needs for information expanding beyond the original scope of older MP post processors. Regards, Your local post processor Guru

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