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:

Ivan Mikesic

Verified Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Ivan Mikesic

  1. Hi PcRobotic, You will have to force the string sgfeed, for tapping operations only (drillcyc$ = 3), in the post block pcanceldc$ right before the G80 output. if drillcyc$ = 3, pbld, n$, *sgfeed, e$ if drillcyc$ <> 8, pcan1, pbld, n$, "G80", scoolant, strcantext, e$ sgfeed is the target string for a string select table, so it will only output G94 if the selector variable, ipr_type, is set properly. Hope this helps.
  2. Hi Helio, You can set the data for the letter create by using the LetterCreationData structure. Dim oLetterData As New Mastercam.GeometryUtility.Types.LetterCreationData Once you set the data, you can create the letter using the CreateLetters method referencing the data in the LetterCreationData structure. Mastercam.GeometryUtility.LetterCreationManager.CreateLetters(oLetterData) Hope this helps, Ivan
  3. There is an option to have your post modified that would allow you to use the groove toolpath to cut this thread. Two misc reals are typically setup to control the retract from the thread in X (between points) and to set the length of the thread in Z. Each cut position in the groove toolpath outputs a G32 with the length of the thread. It retracts to the X value set in the misc reals, then moves to the next point and continues. For this type of post modification, I would recommend contacting your reseseller.
  4. Hi Robert, If you send the information on your machines to [email protected] we should be able to help you out. We have dealt with both of these controllers before.
  5. It seems like the post block you need access to is psof_tlchg_blck. That post block is in the encrypted portion of the post which means it cannot be edited. I would recommend contacting your local Mastercam reseller.
  6. The ref return and the tool offset cancel should be in the post block pl_retract. If you have a mill-turn it will also be in pm_retract. In both post blocks you will see a line with sg28ref or "G28" (ref return line) and right before that line should be the tool offset cancel which will probably have the variable toolno. From there, you should be able to cut the tool offset cancel line and paste it below the G28 ref return line.
  7. If you create a utility in another programming language to determine file size, you can run it as an executable from the post using the launch command. The launch command has the following format. result = launch(<utility_name>,<input>) The input would be the external file you created during posting and it would need the entire path in quotations. For example, "C:\mcamx\mill\NC\Test.ext". The utility name would be formatted the same way, "C:\My Utility\Utility.exe". The variable result is a numeric variable.
  8. G20 is probably coming from psof$. In psof$, find the following line of code. pbld, n$, *smetric, e$ Add an *e$ before that line, so it will look like this. *e$ pbld, n$, *smetric, e$ The extra comments look like operation comments and are most likely coming from pcomment$ or pcomment2. If they are meant to be used only for reference in Mastercam, they can be removed as follows. In pcomment2, you can comment out (add a # to the beginning of the line) the following lines. #if gcode$ = 1008 & header = zero, n$, pspc, scomm_str, scomm$, scomm_end, e$ #if gcode$ = 1008, scomm_sav = ucase(scomm$) gcode$ = 1008 refers to the operation comment. Hope this helps.
  9. Hi Russ, This line is most likely coming from peof$. It will look something like this. pbld, n$, *sg28ref, "X0.", "Y0.", e$ You can change it to the following to remove the X0. pbld, n$, *sg28ref, "Y0.", e$ Basically, you will want to delete the X0. in quotation marks. Hope this helps.
  10. You can use some variation of the code below. The variable exitpost$ will stop the posting process and mprint will display a dialoge box with the error message. Note that mprint returns a value of 0 or 1, so it has to be written to an integer variable (result in the code below - result may already exist in your post processor). #################################### #Integer initializations my_var : 0 result : 0 #String initialization serror : "ERROR - POST WILL EXIT" pmy_postblock if my_var <> 0, [ result = mprint(serror) exitpost$ ] #################################### Hope this helps.
  11. We may be able to help you out if you submit a detailed description of the requirements to [email protected].
  12. Jimmy, thanks for the sample code. Greg, could you send a copy of the machine sim to In-House, if you don't mind? Thanks

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