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:

kccadcam

Verified Members
  • Posts

    788
  • Joined

  • Last visited

Posts posted by kccadcam

  1. I already have my Makino post spitting out H1 D2.

    I can force my other posts to spit out the right offsets.

     

    quote:

    OK now I'm confused. I have my MMD set for "tool >add to tool offsets> length 0, diameter 0. If I right click on a tool and edit just the tool # to say 25, the diameter and length offsets become 25 + 0 no matter what I have them as inside the tool edit screen. I thought that's what he was looking for. My bad if its not.

    That is the correct settings, but the tool definition does not update always.

    If you change a tool number the offsets should change with it in the tool definition...

    Then the "add to tool offsets" takes care of the rest.

     

    If you have say, tool 20 and change it to tool 10

    the offsets stay at 20. If you have add 20 in the offsets, tool 10 becomes offset 40!!!!! bonk.gif

     

     

    Just had another strange one,,,,

    Brought in a V9.1 file and all the tool numbers were correct but ALL of the offsets were 1!!!

    (Every Tool)

  2. John,

    I realize that offsets need to change....

    Go back to v9.1, open a tool definition,

    change the tool number and the offsets change with it. Always have.

    Go to job setup, tool offset registers, add 30 or whatever and away you go.

    After it being this way for years, I don't see the logic of not doing this in VX.

     

    Like I said in my original post, If I have a tool that is #55 and I want to change it to #20, the offsets will stay 55. So then, T20 reads offset H55 and we all know the result of that!

    It's ridiculous to have have to watch over every change like a hawk.

  3. For steel, Sandvik RA215 series

    4 inch dia with .850 step over!!!!

     

    For aluminum, Carboloy R220.79 series

    2.5 dia with .55 step over, 8000rpm 192 ipm!!!!

    Have not found ANYTHING that can keep up with this tool in Aluminum........

  4. In MR2, when bringing in tools from a predefined tool library. (tools 1 thru 220) If I change a tool number the offsets don't change with it...

    (change tool #20 to #1 but the offsets stay at 20)

    Is there a way to force this??

    Came REAL close to a major crash!!! eek.gif

  5. Has anybody played with this yet??

    I create a contour, drive the tool to it.

    In plunge rough settings, select source operation

    (previous contour) and the properties of the NCI path of that contour says "invalid path name".

    Then the plunge rough says: "Operation to project needs to be regenerated (or yields no nci motion)"

    If I go back to V9.1 it works fine.....

  6. I've been fighting this also,

    Seems to revert back to default directory everytime.

     

    Also, have any of you been playing with custom tool graphics?

    It also always wants to revert back to the default directory.....(Everytime you open a file, you have to re-associate the custom tool mcx files back into the the tool definition.)

  7. This is from the end of ptlchg_com:

     

    code:

     if nexttool = first_tool$,

    pbld, n$, "G43", *tlngno$, pfzout, scoolant,[if coolant$ = 3,"(HP COOLANT)"], "T0", e$

    else, pbld, n$, "G43", *tlngno$, pfzout, scoolant,[if coolant$ = 3,"(HP COOLANT)"], next_tool$, e$

    sav_coolant = coolant$

    if coolant$ = 1, sm09 = sm09_0

    if coolant$ = 2, sm09 = sm09_1

    if coolant$ = 3, sm09 = sm09_2

    absinc$ = sav_absinc

    pcom_movea

    toolchng = zero

    c_msng$ #Single tool subprogram call

    plast

    this is my current pretract:

    code:

     pretract        #End of tool path, toolchange              

    sav_absinc = absinc$

    absinc$ = one

    sav_coolant = coolant$

    coolant$ = zero

    # if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

    # [ # explicitely turned off through a canned text edit

    if all_cool_off,

    [

    #all coolant off with a single off code here

    if coolant_on, pbld, n$, *sall_cool_off, e$

    coolant_on = zero

    ]

    else,

    [

    local_int = zero

    coolantx = zero

    while local_int < 20,

    [

    coolantx = and(2^local_int, coolant_on)

    local_int = local_int + one

    if coolantx > zero,

    [

    coolantx = local_int

    pbld, n$, scoolantx, e$

    ]

    coolantx = zero

    ]

    coolant_on = zero

    ]

    # ]

    #cc_pos is reset in the toolchange here

    cc_pos$ = zero

    if convert_rpd$ = 1,

    [

    gcode$ = 1

    feed = maxfeedpm

    ipr_type = 0

    ]

    else, gcode$ = zero

    pbld, n$, sccomp, *sm05, psub_end_mny, e$

    pbld, n$, sgabsinc, sgcode, "G28", "Z0.", [if gcode$ = 1, `feed], scoolant, e$

    #if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

    #pbld, n$, "G28", "X0.", "Y0.", protretinc, e$

    #if lock_codes = one & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

    if abs(fmtrnd(cabs)) > 360 & nextop$ <> 1003,

    [

    if lock_codes = one, pbld, n$, *sunlock, e$

    rotretflg = 1

    pbld, n$, 'G28', protretinc, e$

    rotretflg = 0

    if lock_codes = one & cuttype = 0, pbld, n$, *slock, e$

    ]

    absinc$ = sav_absinc

    if prv_coolant$ = 3, <----------NEW

    [

    n$, "M52", "(AIR BLAST ON)" ,e$

    n$, "G4 X9.5" ,e$

    n$, "M53", "(AIR BLAST OFF)" ,e$

    ]

    coolant$ = sav_coolant

    "G49", e$

    pbreak, e$

  8. code:

     if prv_coolant$ = 3,

    [

    n$, "M52", "(AIR BLAST ON)" ,e$

    n$, "G4 X9.5" ,e$

    n$, "M53", "(AIR BLAST OFF)" ,e$

    ]

    That's exactly what I started with....

    I cannot get it to accept the prv_ command.

     

    If I say:

    code:

     if coolant$ = 3 

    it will output on the previous tool....

     

    Stumped...........

  9. Back again,,,,

    quote:

    Mpmaster for X MR1/SP2 and above. It's our master configurable 4-Axis G-Code post. Rotary settings are configured in the Machine Definition.

    Configuring Matsuura H600 cell post.

    I have created:

    code:

     

    #( )======================================

    #*>=========================<***************************************

    #( COOLANT AIRBLOW COMMANDS )======================================

    #*>=========================<***************************************

    #( )======================================

     

    ptool_airblast

    n$, "M52", "(AIR BLAST ON)" ,e$

    n$, "G4 X9.5" ,e$

    n$, "M53", "(AIR BLAST OFF)" ,e$

     


    I,m trying to insert:

    ---> if prv_coolant$ = 3, ptool_airblast <---

    into pretract when coolant-tool is shut off.

    Cannot get it recognize prv_coolant??

    I think it is conflicting with the new x-coolant stuff....

     

    Anybody care to steer me in the right direction??

    Here is my pretract:

    code:

     pretract        #End of tool path, toolchange              

    sav_absinc = absinc$

    absinc$ = one

    sav_coolant = coolant$

    coolant$ = zero

    # if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

    # [ # explicitely turned off through a canned text edit

    if all_cool_off,

    [

    #all coolant off with a single off code here

    if coolant_on, pbld, n$, *sall_cool_off, e$

    coolant_on = zero

    ]

    else,

    [

    local_int = zero

    coolantx = zero

    while local_int < 20,

    [

    coolantx = and(2^local_int, coolant_on)

    local_int = local_int + one

    if coolantx > zero,

    [

    coolantx = local_int

    pbld, n$, scoolantx, e$

    ]

    coolantx = zero

    ]

    coolant_on = zero

    ]

    # ]

    #cc_pos is reset in the toolchange here

    cc_pos$ = zero

    if convert_rpd$ = 1,

    [

    gcode$ = 1

    feed = maxfeedpm

    ipr_type = 0

    ]

    else, gcode$ = zero

    pbld, n$, sccomp, *sm05, psub_end_mny, e$

    pbld, n$, sgabsinc, sgcode, "G28", "Z0.", [if gcode$ = 1, `feed], scoolant, e$

    #if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

    #pbld, n$, "G28", "X0.", "Y0.", protretinc, e$

    #if lock_codes = one & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

    if abs(fmtrnd(cabs)) > 360 & nextop$ <> 1003,

    [

    if lock_codes = one, pbld, n$, *sunlock, e$

    rotretflg = 1

    pbld, n$, 'G28', protretinc, e$

    rotretflg = 0

    if lock_codes = one & cuttype = 0, pbld, n$, *slock, e$

    ]

    absinc$ = sav_absinc

    coolant$ = sav_coolant

    "G49", e$

    pbreak, e$

  10. Thank you Dave!!

    Sometimes the obvious will get you.....

     

    Added !tool_typ$ !tldia$ to ptlchg0$

    code:

     ptlchg0$         #Call from NCI null tool change (tool number repeats)

    if op_id$ <> last_op_id,

    [

    rd_params$ # Read parameters - pparameter

    pmisccheck

    ]

    pcuttype

    toolcount = toolcount + 1

    prvtp = rbuf(3,toolcountp)

    if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)

    else, nexttool = first_tool$

    if (mi8$=one & (op_id$ <> last_op_id | (op_id$ = last_op_id & xform_op_id$ <> op_id$)))

    | ((tlplnno$ <> prvtp | rotary_type$ <> last_rotary_type) & ret_on_indx), pstop

    pcom_moveb

    pcheckaxis #Check for valid rotary axis

    !tool_typ$ !tldia$ <--------Added here ----

    Changed callouts to prv_tool_typ$ and prv_tldia$

    and it works!!!

  11. Back again.......Makino A55e's

     

    OK, I'm trying to insert a tool break check at the end of each tool: G65 P9613 A0.030 H1

    The -A- value is a +/- tolerance (how much variance on touching probe before machine alarms out)

     

    I've copied a section of the MPMaster post (ppredtool) and modified to this:

    code:

     

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

    # Tool Break Check Output

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

     

    pbreak

    "(BREAK CHECK)", e$

    if tool_typ$ = 1, "G65 P9613 A0.030 H1" # CENTER DRILL

    if tool_typ$ = 2, "G65 P9613 A0.030 H2" # SPOT DRILL

    if tool_typ$ = 3, #-----------------------# DRILL

    [

    if tldia$ <= .500, "G65 P9613 A0.025 H3"

    else, "G65 P9613 A0.050 H3"

    ]

    if tool_typ$ = 4, "G65 P9613 A0.025 H4" # TAP-RH

    if tool_typ$ = 5, "G65 P9613 A0.025 H5" # TAP-LH

    if tool_typ$ = 6, "G65 P9613 A0.025 H6" # REAMER

    #if tool_typ$ = 7, "G65 P9613 A0.015 H1" # BORING BAR

    #if tool_typ$ = 8, "G65 P9613 A0.015 H1" # COUNTER BORE

    if tool_typ$ = 9, "G65 P9613 A0.015 H9" # COUNTER SINK

    if tool_typ$ = 10, #----------------------- END MILL FLAT

    [

    if tldia$ <= .500, "G65 P9613 A0.010 H105"

    if tldia$ > .500 & tldia$ < .750, "G65 P9613 A0.015 H106"

    if tldia$ >= .750, "G65 P9613 A0.020 H107"

    ]

    if tool_typ$ = 11, #----------------------- END MILL SPHERE

    [

    if tldia$ <= .500, "G65 P9613 A0.010 H11"

    if tldia$ > .500 & tldia$ < .750, "G65 P9613 A0.015 H11"

    if tldia$ >= .750, "G65 P9613 A0.020 H11"

    ]

    if tool_typ$ = 12, "G65 P9613 A0.015 H12" # CHAMFER MILL

    #if tool_typ$ = 13, "G65 P9613 A0.015 H1" # FACE MILL

    #if tool_typ$ = 14, "G65 P9613 A0.015 H1" # SLOT MILL

    #if tool_typ$ = 15, "G65 P9613 A0.015 H1" # CORNER RAD MILL

    if tool_typ$ = 16, "G65 P9613 A0.015 H16" # DOVETAIL MILL

    if tool_typ$ = 17, "G65 P9613 A0.015 H17" # TAPER MILL

    if tool_typ$ = 18, "G65 P9613 A0.015 H18" # LOLLIPOP MILL

    if tool_typ$ = 19, "G65 P9613 A0.015 H19" # END MILL BULL


    And inserted pbreak at end of pretract:

    code:

     if abs(fmtrnd(cabs)) > 360 & nextop$ <> 1003,

    [

    if lock_codes = one, pbld, n$, *sunlock, e$

    rotretflg = 1

    pbld, n$, 'G28', protretinc, e$

    rotretflg = 0

    if lock_codes = one & cuttype = 0, pbld, n$, *slock, e$

    ]

    absinc$ = sav_absinc

    coolant$ = sav_coolant

    pbreak, e$

    So, I'm getting ouput, but it's calling the next tool_type instead of current or previous tool_type

     

    code:

     Y-8.9243                                                    ppeck_2$ ppeck_2$

    X-5.0074 ppeck_2$ ppeck_2$

    X-4.7574 ppeck_2$ ppeck_2$

    G80 M9 pcanceldc$ pcanceldc$

    M5 ptlchg1002$ pretract

    G91 G28 Z0. ptlchg1002$ pretract

    (BREAK CHECK) ptlchg1002$ pbreak

    G65 P9613 A0.025 H4 <------tool_type 4 = tap --next tool ptlchg1002$ pretract

    M01 ptlchg$ ptlchg$

    T5470 M6 (8-32 EXPRESS TAP -GH5-) ptlchg$ p__48:1625

    (MAX - Z9.) ptlchg$ p__51:1638

    (MIN - Z1.25) ptlchg$ p__51:1638

    M11 ptlchg$ p__50:1635

    G17 G0 G90 G54 X-5.2574 Y-8.4243 B90. S3000 M3 ptlchg$ p__50:1635

    M10 ptlchg$ p__50:1635

    G43 H1 Z9. M8 T2120 ptlchg$ p__50:1635

    /M97 (SHOWER) ptlchg$ p__50:1635

    Z2.6 pzrapid$ prapidout

    G95 M135 S3000

    How do I get to call previous tool_type??

    When all is working well I will change all H values to 1 (Right now I've modified h values to reflect tool_type # to see what is coming out where......

  12. Finally got it to run....

    Only 6 trials left!!!!

     

    quote:

    mill_accel : 1 # Accelerate processing time for Mill or Router only setup sheets [0=No,1=Yes]

    max_toolno : 9999 # Maximum tool number (not including lathe offset portion of tool call)

     

    # The 'stock_info' switch allows selecting to output detailed Stock Information

    stock_info : yes$ # Display Part location, stock size/location

    stock_img : 1 # 0 = No screen capture image

    # 1 = EMF: auto image cap, fast run, large file size, bad on-screen, prints perfectly -
    not supported by Firefox/Mozilla

    # 2 = PNG: auto image cap, slow run, small file size, clean on-screen, prints reasonably

    # 3 = GIF: auto image cap, slow run, small file size, clean on-screen, prints reasonably

    # 4 = GIF: manual image cap, searches for pre-existing GIF

    # [NC_directory][ncfilename].[sextgif] for file_naming = 0

    # [MCX_directory][mcxfilename].[sextgif] for file_naming = 1


    quote:

    slaunch "C:Program FilesInternet Exploreriexplore.exe"

    Can't use firefox?????? eek.gif

  13. quote:

    So if that is set to 0 Deg and is facing from right to left, change to 180 Deg with a Zig-Zag pattern. That should work.

    No, that does not work, if you rotate 180 you get exactly the same thing...

  14. Did not do a side by side install. Loaded MR2

    over MR1.

     

    Did a fresh install of MR2 HTML.set.

    The fixedsetupsheet.dll was still there but not selected.

    I removed that file and now I still get that same OnScript error but it also gives me "Increase max_toolno variable in .set file - Program will Exit"

     

    Our tool numbers start at 1000 and go up from there.

    If I change max_toolno from 99 to 9999 it just crashes...........

  15. I am trying out the new html.set for MR2.

    I keep getting an error:

     

    ActiveScriptSite::OnScriptError()

    Line:

     

    Then it locks up.......

     

    I'm down to 20 trials left!!!

    Been searching around and haven't seen this.

  16. Found one problem......

    If the last operation is a transform op,

    (in this case it was rotate 180 from top plane)

    it still calls the first tool....

     

    Is there a setting somewhere I'm missing???

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