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

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

     

     

    we got a couple of used machines last week and they came online this week. first one is a 1979 devlieg 4k-96 jig mill with a new in 2008 xxxxor 8040 control on it. is there a post available for this control or what would be a good post to start with? also how would you go about programing this thing? the quill is "z" and the table is "w" for what would be the "Z". how would you go about programing for this? i never programmed someting like this before.

    other machine is a Rambaudi with an old Heidenhain tnc 150 control. would this control even take g-code from mcam or am i stuck programing at the control? if it can take g-code is there a post or what would be a good starting post to work from? it is just xyz and 4th axis.

    if there are posts the boss and i would be very happy, as i nor the boss like standing at the control programming while the machine is stopped. would much rather program and get machine up and running then work on next program.

     

    Thanks

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

     

     

    (TOOL - 9 OFFSET - 9)

    (OD THREAD RIGHT INSERT - NONE)

    G28U0.W0.

    G0T0900

    G0T0909

    /M8

    G97S500M03

    G0X-1.2Z.2178

    G76P010029Q0R0

    G76X-.924Z-.5725P380Q73R0.F.0625

    M9

    T0900---------I want this line to be after the G28 U0 W0

    G28U0.W0.M05

     

    The control is Fanuc T3 on a Mori Seiki.

     

    Robert

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

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

     

    THIS IS HOW IT POSTS RIGHT NOW

     

    O1234 ( TEST )

    ( CREATED ON 05-03-11 AT 8:40 AM )

    ( MCX FILE - E:\MCX\PRATT & WHITNEY\ RIGHT\ OP 40 RIGHT - COPY.MCX-5 )

    ( NC FILE - C:\USERS\LUKAS.\DOCUMENTS\MY MCAMX5\MILL\NC\TEST.NC )

    ( MATERIAL - ALUMINUM INCH - 2024 )

    ( T1 | 5/8 FLAT ENDMILL | H1 | D1 | WEAR COMP |0.625 )

    ( T2 | 1.5" FACE MILL | H2 | D2 | WEAR COMP |1.5 | XY STOCK TO LEAVE - 0. | Z STOCK TO LEAVE - .02 )

    G20

    G0 G17 G40 G49 G80 G90 H0 E0 Z0

    T1 M6

    ( 2.3 STICK OUT , 1.625 LOC , GRIND THE SHANK )

    ( 5/8 FLAT ENDMILL TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA - 0.625 )

    G0 G90 S580 M3 E1 X-.7852 Y-4.0855

    H1 Z6. M8 T2

    .................

    ...........

    T2 M6

    ( SYIC-22709-4 STELLRAM , STICK OUT 4.4 )

    ( 1.5" FACE MILL TOOL - 2 DIA. OFF. - 2 LEN. - 2 DIA - 1.5 )

    G0 G90 S650 M3 E1 X-5.6503 Y-1.8449

    H2 Z4. M8 T3

    .....................

    ..................

    M30

     

    ... BUT I WOULD LIKE TO POST LIKE THIS

     

     

     

    O1234 ( TEST )

    ( CREATED ON 05-03-11 AT 8:40 AM )

    ( MCX FILE - E:\MCX\PRATT & WHITNEY\ RIGHT\ OP 40 RIGHT - COPY.MCX-5 )

    ( NC FILE - C:\USERS\LUKAS.\DOCUMENTS\MY MCAMX5\MILL\NC\TEST.NC )

    ( MATERIAL - ALUMINUM INCH - 2024 )

    ( T1 | 5/8 FLAT ENDMILL | H1 | D1 | WEAR COMP |0.625 | 2.3 STICK OUT , 1.625 LOC , GRIND THE SHANK )

    ( T2 | 1.5" FACE MILL | H2 | D2 | WEAR COMP |1.5 | XY STOCK TO LEAVE - 0. | Z STOCK TO LEAVE - .02 |

    SYIC-22709-4 STELLRAM , STICK OUT 4.4 )

     

    G20

    G0 G17 G40 G49 G80 G90 H0 E0 Z0

    T1 M6

    ( 5/8 FLAT ENDMILL TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA - 0.625 )

    G0 G90 S580 M3 E1 X-.7852 Y-4.0855

    H1 Z6. M8 T2

    .................

    ...........

    T2 M6

    ( 1.5" FACE MILL TOOL - 2 DIA. OFF. - 2 LEN. - 2 DIA - 1.5 )

    G0 G90 S650 M3 E1 X-5.6503 Y-1.8449

    H2 Z4. M8 T3

    .....................

    ..................

    M30

     

    THANKS

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

     

    Hello Everyone:

     

    I'd like to remove the X0. at the end of my gcode so it easier to unload and load parts.

     

    Is this easy? I am relatively new to post editing. I desperately want to learn.

     

    What I'm getting is this at the end:

     

    G0Z.1

    M5

    G91G28Z0.

    G28X0.Y0.

    M30

    %

     

    What I want is this:

     

    G0Z.1

    M5

    G91G28Z0.

    G28Y0.

    M30

    %

     

    Thank you very much!!

     

    Russ

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

     

    I am a proficient programmer in vb and am currently looking into editing a master post for the CNC dept.

     

    Can someone guide me to some resources about post editing, the formats, syntax and available resources within post?

     

    I want the post to terminate when if a declaration is not met. In other words, if a specific requirement is not met, then i would want a message to alert the user the reason for termination and then not complete the post process. Is that possible?

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