603,953 active members*
3,377 visitors online*
Register for free
Login
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2007
    Posts
    3

    Few bugs in my Post...

    Hi!
    I'm farely new here so dont shoot me for asking
    I work on a Nicholas correa Calidad A-30 3-axis with Heidenhain tnc426(PB) on my job here in sweden. Using mastercam X.
    I got a post from this forum a while ago (actually a 4-axis post) and have used it with a lot of luck. But there is a few simple bugs that I have in my post and wondered if there is someone that could help me with them. I've done some modifications that have helped me but there are some left. These bugs I have to change before i transfer the program to the control.

    Bugs like:
    0 BEGIN PGM MM0 BLK FORM 0.1 Z X-5 Y-5 Z-10 BLK FORM 0.2 X+5 Y+5 Z+00 ; PROGRAM NAME -
    1 ; PROGRAM FOR - HEIDENHAIN
    2 ; DATE=DD-MM-YY - 12-09-07 TIME=HH:MM - 09:23

    There I want it to be:
    0 BEGIN PGM "program name" MM
    1 BLK FORM 0.1 Z X-5 Y-5 Z-1
    2 BLK FORM 0.2 X+5 Y+5 Z+0
    3 ; PROGRAM FOR - HEIDENHAIN
    4 ; DATE=DD-MM-YY - 12-09-07 TIME=HH:MM - 09:23

    Without the "
    post says:
    pheader #Start of file
    seqno = 0
    seqinc = 1
    n = seqno
    n, "BEGIN PGM ", progname, *smetric
    n, "BLK FORM", "0.1", "Z X-5 Y-5 Z-1"
    n, "BLK FORM", "0.2", "X+5 Y+5 Z+0"

    psof0 #Start of file for tool zero
    psof

    psof #Start of file for non-zero tool number
    nextcflg = c9k
    last_mr2 = c9k
    last_mr3 = c9k
    last_mr4 = c9k
    last_workofs = c9k
    plast_recd
    rc1 = one
    gcode1 = rbuf ( one, rc1 )
    if ntools = one, stagetool = two #skip single tool output
    gcode = zero
    cc_pos = zero
    pspindle
    pcom_movbtl
    pbld, n, "; PROGRAM NAME - ", progname, e
    pbld, n, "; PROGRAM FOR - HEIDENHAIN ", e
    pbld, n, "; DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, e
    if mi3 > 0, pm92_rtrnz

    And an other bug:
    4713 L Z3. FMAX
    4714 L M5 M9

    Want to be:
    4713 L Z3. FMAX
    4714 L M2
    4715 END PGM "program name" MM

    Without the " again

    Post says:

    ptoolend #End of tool path
    gcode1 = rbuf ( one, rc1 )
    if gcode1 <> 1000, ptoolend_t

    ptoolend_t #End of tool path, toolchange
    gcode = zero
    coolant = zero
    if cc_pos <> zero, cc_pos = zero
    pbld, n, "L", sccomp, "M5 M9", e

    and

    peof #End of file for non-zero tool
    ptoolend_t
    comment
    pbld, n, "L","M2"
    pbld, n, "END PGM ", progname, *smetric

    That became a long thread. :/
    If there is someone that wants to help don't get to involved with it. it's not that big of a deal but it would be a great help.

    Thanks

  2. #2
    Join Date
    Dec 2004
    Posts
    44
    0 BEGIN PGM MM0 BLK FORM 0.1 Z X-5 Y-5 Z-10 BLK FORM 0.2 X+5 Y+5 Z+00 ; PROGRAM NAME -
    There I want it to be:
    0 BEGIN PGM "program name" MM
    1 BLK FORM 0.1 Z X-5 Y-5 Z-1
    2 BLK FORM 0.2 X+5 Y+5 Z+0
    **************************************
    A.
    If you wish to output at separate line add "e" letter at end of line in post
    n, "BLK FORM", "0.1", "Z X-5 Y-5 Z-1" , e
    n, "BLK FORM", "0.2", "X+5 Y+5 Z+0" , e

    B.
    if you do not want output any line or simbol put "#" before
    like #pbld, n, "L", sccomp, "M5 M9", e

  3. #3
    Join Date
    Apr 2007
    Posts
    3
    Thanks!
    That was great info! New to post-writing, so that infos good!
    It helped my programs start but the end is still wrong.
    It's like Mastercam chooses to use "ptoolend #End of tool path" instead of "peof #End of file for non-zero tool".
    Or is this maybe a setting in mastercam I should change?

    Thanks

  4. #4
    Join Date
    Sep 2007
    Posts
    217
    No that works that way. Look at the structure it make sense also if you use the debug it will help you see what is doing what where in the post.

  5. #5
    Join Date
    Dec 2004
    Posts
    44
    Longitud
    If you will not find a solution by yourself send me a post and I will try to adjust it for you

    [email protected]

  6. #6
    Join Date
    Apr 2007
    Posts
    3
    Quote Originally Posted by ak762 View Post
    Longitud
    If you will not find a solution by yourself send me a post and I will try to adjust it for you

    [email protected]
    Thanks, maybe you'll hear from me
    I've managed to sort most of the bugs out.
    Seems that its one left. With the coolant, but I'll try to figure it out.
    The problem with "peof #End of file for non-zero tool" was the ", e"
    Thanks again for that info!:rainfro:

Similar Threads

  1. Bugs in 2005
    By mdlmkr in forum Surfcam
    Replies: 9
    Last Post: 10-04-2005, 05:45 PM
  2. Visual Mill 4th axis bugs
    By metalchipper in forum Visual Mill
    Replies: 1
    Last Post: 07-07-2005, 07:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •