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:

kkominiarek

Verified Members
  • Posts

    555
  • Joined

  • Last visited

Posts posted by kkominiarek

  1. Solids is the way to go, you can create good surfaces from a solid but you can't always create a good solid from surfaces....therefore solids gives you the best of both worlds....also once your accustomed to building a solid it's so much easier than trimming/blending/filleting surfaces.

  2. Haven't had too much time to work on post this past week.

     

    Here is a whole lot of info...

     

    **This is what I want.**

     

    (TOOLS LIST)

    (TOOL-1 - .75" ROUGHER)

    (Z_MAX - Z-.900)

    (Z_MIN - Z .100)

    (TOOL-2 - .75 END MILL)

    (Z_MAX - Z-.900)

    (Z_MIN - Z .100)

    (TOOL-3 - .75 OD X 45 DEG C'SNK)

    (Z_MAX - Z-.753)

    (Z_MIN - Z .100)

     

    **This is what my post outputs now.**

     

    (TOOLS LIST) pheader 42

    (MAX - Z-99999.) pheader p__13:968 42

    (MIN - Z99999.) pheader p__13:968 42

    (TOOL-1.-.75" ROUGHER) pwrtt 42

    (TOOL-2.-.75 E MILL) pwrtt 42

    (TOOL-3.-.75 OD X 45 DEG C'SNK) pwrtt 42

     

    Portions of my post......

    code:

    # -------

    # GENERAL OUPUT SETTINGS

    # -------

    tooltable : 1 #Read for tool table and pwrtt - use tool_table to disable

    output_z : yes #Output Z Min and Z Max values (yes or no)

     

     

    # -------

    # MISC VARIABLES

    # -------

    z_min : 99999 # Min Z

    z_tmin : 99999 # Overall min Z

    z_max : -99999# Max Z

    z_tmax : -99999# Overall max Z

     

    bldnxtool : yes # Build next tool table

     

     

    # -------

    # Buffer 3 - Holds the variable 'tlplnno' for each toolpath segment

    # -------

    rc3 : 1

    wc3 : 1

    fbuf 3 0 1 0 # Buffer 3

     

     

    # -------

    # Buffer 4 - Holds the variable 't' for each toolpath segment

    # -------

    rc4 : 1

    wc4 : 1

    fbuf 4 0 1 0 # Buffer 4

     

     

    # ------

    # Buffer 5 - Min / Max

    # ------

    b5_gcode : 0

    b5_zmin : 0

    b5_zmax : 0

    rc5 : 2

    wc5 : 1

    size5 : 0

     

    fbuf 5 0 3 0 #Min / Max

     

     

    # ------

    # Toolchange / NC output Variable Formats

    # ------

    fmt Z 2 z_tmin # Total z_min

    fmt Z 2 z_tmax # Total z_max

    fmt Z 2 min_depth # Tool z_min

    fmt Z 2 max_depth # Tool z_max

     

     

     

    # ------

    # Tool Comment / Manual Entry Section

    # ------

     

    pspc # Creates spaces based tool level setting

    if sav_spc = one & omitseq = no, " "

     

     

    # ------

    # Start of File and Toolchange Setup

    # ------

     

    psof #Start of file for non-zero tool number

     

    ptravel

    pwritbuf5

    pcuttype

    toolchng = one

    if ntools = one,

    [

    #skip single tool outputs, stagetool must be on

    stagetool = m_one

    !next_tool

    ]

     

     

    # ------

    # Tooltable Output

    # ------

    pwrtt # Write tool table, scans entire file, null tools are negative

    tnote = t

    strtool = ucase(strtool)

    if t >= 0, "(", tnote, "-", strtool, ")"

    if t >= 0, tcnt = tcnt + 1

    PWRITBUF5

     

    ptravel # Tool travel limit calculation

    if z_min < z_tmin, z_tmin = z_min

    if z_max > z_tmax, z_tmax = z_max

     

     

    pheader

     

    "(TOOLS LIST)

     

     

    if met_tool = one, #Metric constants and variable adjustments

    [

    ltol = ltol_m

    vtol = vtol_m

    maxfeedpm = maxfeedpm_m

    ]

     

    #spaces=0

    if output_z = yes & tcnt > 1,

    [

    "(OVERALL MAX - ", *z_tmax, ")", e

    "(OVERALL MIN - ", *z_tmin, ")", e

    ]

    #spaces=sav_spc

     

    ptlchg_com

     

    ptlchg_com #Tool change common blocks

    pcom_moveb

    c_mmlt #Multiple tool subprogram call

    #ptoolcomment

     

    spaces=0

    if output_z = yes,

    [

    preadbuf5

    if (opcode > 0 & opcode < 16) | opcode = 19,

    [

    n, pspc, "(", "MAX - ", *max_depth, ")", e

    n, pspc, "(", "MIN - ", *min_depth, ")", e

    ]

    ]

    spaces=sav_spc

     

     

    # ------

    # Buffer 5 Read / Write Routines

    # ------

    pwritbuf5 # Write Buffer 1

    b5_gcode = gcode

    b5_zmin = z_min

    b5_zmax = z_max

    b5_gcode = wbuf(5, wc5)

     

    preadbuf5 # Read Buffer 1

    size5 = rbuf(5,0)

    b5_gcode = 1000

    min_depth = 99999

    max_depth = -99999

    while rc5 <= size5 & b5_gcode = 1000,

    [

    if rc5 <= size5, b5_gcode = rbuf(5,rc5)

    if b5_zmin < min_depth, min_depth = b5_zmin

    if b5_zmax > max_depth, max_depth = b5_zmax

    ]


    It seems as if I'm close, but not quite there yet.

  3. Solids are great...but you must be careful..it's easy to lose model geometry when copying, translating, rotating geometry etc....I constantly hit ALT-Y ....this is shortcut to solids manager where I look for red X this will tell me if my solid is or bad/corrupt.

     

    Use your levels to your advantage, I have solid geometry and program geometry. Rarely do I use the geometry I used to create a solid with as "program geometry". I copy to a different level and use the copied geometry. An extra step but well worth it IMO.

     

    Some where along the way you have some bad geometry.

     

    HTH

  4. I'm not sure what the standard stitch tol. should be set at. So in instances like this one I experiment to see if the results are any better after adjusting tol......I tried .0001, .0005, .001, .002, .003, .004, .005

     

    none worked

     

    I am creating a part solid from scratch...trying to do a boolean remove for this one particular feature.

  5. I'm trying to create what I feel is a simple solid from surfaces....but I rec. the following errors.

     

    Parasolid kernal interface error

    KI error code:1043-

    tolerance is less than parasolid tolerance

     

    Parasolid kernal interface error

    KI error code:15-

    distance or zero is negative

     

    The errors are where flat surfaces meet at 90° walls/intersections.

     

    Any ideas???

  6. robk....not sure if that applies to z_min z_max

     

    roger...don't assume....can I cut/paste from MILL.SET to Post?

     

    ...also is there switch I can set so that when I post a program it tells me what part of the post did what?

  7. I've put many hours into this over this past week and I can't figure it out.

     

    I want to post each tool z_min z_max value in the tool table at the start of program.

    (i have the tool table)

     

    ....what I want....

    (TOOLS LIST)

    ( TOOL-1. - .75" ROUGHER )

    ( Z_MIN -.500 )

    ( Z_MAX - 2.50 )

    ( TOOL-2. - .75 E MILL )

    ( Z_MIN -.900 )

    ( Z_MAX - 3.50 )

    ( TOOL-3. - .75 OD X 45 DEG C'SNK )

    ( Z_MIN -.753 )

    ( Z_MAX -.753 )

     

    Here are some portions of my post.....

     

     

    tooltable : 1 #Read for tool table and pwrtt - use tool_table to disable

    output_z : yes #Output Z Min and Z Max values (yes or no)

     

     

    z_min : 99999 # Min Z

    z_tmin : 99999 # Overall min Z

    z_max : -99999# Max Z

    z_tmax : -99999# Overall max Z

     

     

    fmt Z 2 z_tmin # Total z_min

    fmt Z 2 z_tmax # Total z_max

    fmt Z 2 min_depth # Tool z_min

    fmt Z 2 max_depth # Tool z_max

     

    code:

    # --------------------------

    # Tooltable Output

    # ------------------------

    pwrtt # Write tool table, scans entire file, null tools are negative

    tnote = t

    strtool = ucase(strtool)

    if t >= 0, "(", tnote, "-", strtool, ")"

    if t >= 0, tcnt = tcnt + 1

     

     

     

     

     

    ptravel # Tool travel limit calculation

    if z_min < z_tmin, z_tmin = z_min

    if z_max > z_tmax, z_tmax = z_max

     

     

    if output_z = yes & tcnt > 1,

    [

    "(OVERALL MAX - ", *z_tmax, ")", e

    "(OVERALL MIN - ", *z_tmin, ")", e

    ]

     

     

    # -------------------------------

    # Buffer 5 Read / Write Routines

    # -------------------------------

    pwritbuf5 # Write Buffer 1

    b5_gcode = gcode

    b5_zmin = z_min

    b5_zmax = z_max

    b5_gcode = wbuf(5, wc5)

     

    preadbuf5 # Read Buffer 1

    size5 = rbuf(5,0)

    b5_gcode = 1000

    min_depth = 99999

    max_depth = -99999

    while rc5 <= size5 & b5_gcode = 1000,

    [

    if rc5 <= size5, b5_gcode = rbuf(5,rc5)

    if b5_zmin < min_depth, min_depth = b5_zmin

    if b5_zmax > max_depth, max_depth = b5_zmax

    ]

    As always, your guidance is greatly appreciated.

  8. thought I had my tooltable where I wanted it but noooooo......

     

    I want to move my tooltable from the pheader to psof

     

    I've looked at everything, tried everything........psof postblock, nc output variables, bldnxtool, tooltable, pwrtt, pwrttparam etc...etc.....I

  9. Storkman, I appreciate your help but I'm unfamiliar with adding questions/prompts to the post and what needs to be changed/added to what location in the post.

     

    I've made numerous changes and nothing has worked.

     

    I did order the post cd. Hopefully the cd has what I need on it. With a good "how to" section.

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