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:

CatchingChrome

Verified Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

665 profile views

CatchingChrome's Achievements

Rookie

Rookie (2/14)

  • Collaborator Rare
  • Dedicated Rare
  • First Post Rare
  • Conversation Starter Rare
  • Week One Done

Recent Badges

0

Reputation

  1. Hi Ivan, That’s exactly what I need. Could you merge the logic with my post? Thanks
  2. Hi Ron, I've attached my Z2G file. I included my post (that I've poked around in), unaltered 3 axis post, and unaltered MpMaster post. It doesn't work properly in any of the 3. Thank you! STRIPPED.MCAM-CONTENT
  3. I use air blast on a drill/mill for chamfers and flood coolant for engraving. When moving from chamfers to engraving without forcing a tool change, I can get the flood coolant to turn on appropriately but I can't get the air blast to turn off before flood turns on. If I select air off/before and flood on/with, the coolant codes repeat after null tool change event. Both Generic 3 Axis.pst and MpMaster.pst give me the similar results. Has anyone written logic for the pcant_out postblock to handle this? Thanks MpMaster % O0000 (MCX FILE - (PROGRAM - (DATE - FEB-09-2023) (TIME - 6:51 AM) (T27 - 3/8 DRILL/MILL - H27 - D27 - D0.3750") G00 G17 G20 G40 G80 G90 G91 G28 Z0. (COMPENSATION TYPE - COMPUTER) T27 M06 (3/8 DRILL/MILL) (MAX - Z2.) (MIN - Z-.065) On G00 G17 G90 G54 X-24.504 Y-.625 S4584 M03 G43 H27 Z2. Z.1 G94 G01 Z-.065 F25. G03 X-24.444 Y-.685 R.06 F91.68 X-24.384 Y-.625 R.06 X-24.636 Y-.373 R.252 X-24.888 Y-.625 R.252 X-24.636 Y-.877 R.252 X-24.384 Y-.625 R.252 X-24.3842 Y-.615 R.252 X-24.4442 Y-.5574 R.06 X-24.5042 Y-.6174 R.06 X-24.5041 Y-.6198 R.06 G00 Z2. X-20.0248 Y-.625 Z.1 G01 Z-.065 F25. G03 X-19.9648 Y-.685 R.06 F91.68 X-19.9048 Y-.625 R.06 X-20.1568 Y-.373 R.252 X-20.4088 Y-.625 R.252 X-20.1568 Y-.877 R.252 X-19.9048 Y-.625 R.252 X-19.905 Y-.615 R.252 X-19.965 Y-.5574 R.06 X-20.025 Y-.6174 R.06 X-20.0249 Y-.6198 R.06 G00 Z2. X-15.5456 Y-.625 Z.1 G01 Z-.065 F25. G03 X-15.4856 Y-.685 R.06 F91.68 X-15.4256 Y-.625 R.06 X-15.6776 Y-.373 R.252 X-15.9296 Y-.625 R.252 X-15.6776 Y-.877 R.252 X-15.4256 Y-.625 R.252 X-15.4258 Y-.615 R.252 X-15.4858 Y-.5574 R.06 X-15.5458 Y-.6174 R.06 X-15.5457 Y-.6198 R.06 G00 Z2. X-11.0664 Y-.625 Z.1 G01 Z-.065 F25. G03 X-11.0064 Y-.685 R.06 F91.68 X-10.9464 Y-.625 R.06 X-11.1984 Y-.373 R.252 X-11.4504 Y-.625 R.252 X-11.1984 Y-.877 R.252 X-10.9464 Y-.625 R.252 X-10.9466 Y-.615 R.252 X-11.0066 Y-.5574 R.06 X-11.0666 Y-.6174 R.06 X-11.0665 Y-.6198 R.06 G00 Z2. X-6.5872 Y-.625 Z.1 G01 Z-.065 F25. G03 X-6.5272 Y-.685 R.06 F91.68 X-6.4672 Y-.625 R.06 X-6.7192 Y-.373 R.252 X-6.9712 Y-.625 R.252 X-6.7192 Y-.877 R.252 X-6.4672 Y-.625 R.252 X-6.4674 Y-.615 R.252 X-6.5274 Y-.5574 R.06 X-6.5874 Y-.6174 R.06 X-6.5873 Y-.6198 R.06 G00 Z2. X-2.108 Y-.625 Z.1 G01 Z-.065 F25. G03 X-2.048 Y-.685 R.06 F91.68 X-1.988 Y-.625 R.06 X-2.24 Y-.373 R.252 X-2.492 Y-.625 R.252 X-2.24 Y-.877 R.252 X-1.988 Y-.625 R.252 X-1.9882 Y-.615 R.252 X-2.0482 Y-.5574 R.06 X-2.1082 Y-.6174 R.06 X-2.1081 Y-.6198 R.06 G00 Z2. Off <--------------------- correct S7000 M03 On <--------------------- correct X-4.1591 Y-.6311 Z.02 G01 Z-.005 F15. X-4.1161 F22. Y-.6666 X-4.1361 Y-.6798 X-4.1389 Y-.6809 X-4.163 Y-.6863 X-4.1652 X-4.1864 Y-.6823 X-4.188 Y-.6817 X-4.2055 Y-.6695 X-4.2065 Y-.6685 X-4.2188 Y-.6495 X-4.219 Y-.649 X-4.2236 Y-.6277 Y-.6253 X-4.2206 Y-.6052 X-4.2189 Y-.6007 X-4.2069 Y-.5826 X-4.2058 Y-.5815 X-4.1887 Y-.5695 X-4.1866 Y-.5685 X-4.1662 Y-.5637 X-4.1635 X-4.1509 Y-.5655 X-4.1387 Y-.5707 X-4.1282 Y-.5787 X-4.1202 Y-.5897 G00 Z.1 X-4.2699 Y-.5648 Off <-------------------repeat Z.02 G01 Z-.005 F15. X-4.3489 F22. Y-.6852 X-4.2699 G00 Z.1 X-4.2745 Y-.6224 Off <-----------------repeat Z.02 G01 Z-.005 F15. X-4.3489 F22. G00 Z.1 X-4.3963 Y-.6253 Off <---------------repeat Z.02 G01 Z-.005 F15. X-4.3998 Y-.6028 F22. X-4.4101 Y-.5838 X-4.4259 Y-.5704 X-4.4355 Y-.5664 X-4.4462 Y-.5648 X-4.4903 Y-.6852 X-4.4462 X-4.4297 Y-.6817 X-4.4259 Y-.68 X-4.4101 Y-.6666 X-4.3998 Y-.6475 X-4.3963 Y-.6253 G00 Z.1 X-4.6516 Y-.6852 Off <-----------------repeat Z.02 G01 Z-.005 F15. X-4.7231 F22. X-4.7146 Y-.667 X-4.7134 Y-.6653 X-4.698 Y-.651 X-4.6793 Y-.6374 X-4.6648 Y-.6221 X-4.6551 Y-.6068 X-4.6516 Y-.5932 X-4.6544 Y-.5814 X-4.6619 Y-.5722 X-4.6729 Y-.566 X-4.6861 Y-.5637 X-4.6974 Y-.5653 X-4.7077 Y-.5703 X-4.7158 Y-.578 X-4.7202 Y-.5881 G00 Z.1 X-4.7741 Y-.5648 Off <----------------repeat Z.02 G01 Z-.005 F15. X-4.8259 F22. X-4.8365 Y-.6253 X-4.8237 Y-.6156 X-4.8076 Y-.6126 X-4.7935 Y-.6153 X-4.7817 Y-.623 X-4.7736 Y-.6347 X-4.7704 Y-.6492 X-4.7737 Y-.6641 X-4.7822 Y-.6757 X-4.794 Y-.6836 X-4.808 Y-.6863 X-4.8192 Y-.6847 X-4.8294 Y-.68 X-4.8375 Y-.6727 X-4.8431 Y-.6631 G00 Z2. Off <----------------duplicates Off On On <--------------duplicates M05 G91 G28 Z0. G28 Y0. G90 M30 % Generic 3 axis % O0000 (CHECK PROGRAM NUMBER AND REVISION) ( 02-09-23 ) ( 07:32 ) ( T27 | 3/8 DRILL/MILL | H27 ) ( T27 | 3/8 DRILL/MILL | H27 ) G20 G0 G17 G40 G49 G80 G90 T27 M6 G0 G90 G54 X-24.504 Y-.625 S4584 M3 G43 H27 Z2. M83 Z.1 G1 Z-.065 F25. G3 X-24.444 Y-.685 R.06 F91.7 X-24.384 Y-.625 R.06 X-24.636 Y-.373 R.252 X-24.888 Y-.625 R.252 X-24.636 Y-.877 R.252 X-24.384 Y-.625 R.252 X-24.3842 Y-.615 R.252 X-24.4442 Y-.5574 R.06 X-24.5042 Y-.6174 R.06 X-24.5041 Y-.6198 R.06 G0 Z2. X-20.0248 Y-.625 Z.1 G1 Z-.065 F25. G3 X-19.9648 Y-.685 R.06 F91.7 X-19.9048 Y-.625 R.06 X-20.1568 Y-.373 R.252 X-20.4088 Y-.625 R.252 X-20.1568 Y-.877 R.252 X-19.9048 Y-.625 R.252 X-19.905 Y-.615 R.252 X-19.965 Y-.5574 R.06 X-20.025 Y-.6174 R.06 X-20.0249 Y-.6198 R.06 G0 Z2. X-15.5456 Y-.625 Z.1 G1 Z-.065 F25. G3 X-15.4856 Y-.685 R.06 F91.7 X-15.4256 Y-.625 R.06 X-15.6776 Y-.373 R.252 X-15.9296 Y-.625 R.252 X-15.6776 Y-.877 R.252 X-15.4256 Y-.625 R.252 X-15.4258 Y-.615 R.252 X-15.4858 Y-.5574 R.06 X-15.5458 Y-.6174 R.06 X-15.5457 Y-.6198 R.06 G0 Z2. X-11.0664 Y-.625 Z.1 G1 Z-.065 F25. G3 X-11.0064 Y-.685 R.06 F91.7 X-10.9464 Y-.625 R.06 X-11.1984 Y-.373 R.252 X-11.4504 Y-.625 R.252 X-11.1984 Y-.877 R.252 X-10.9464 Y-.625 R.252 X-10.9466 Y-.615 R.252 X-11.0066 Y-.5574 R.06 X-11.0666 Y-.6174 R.06 X-11.0665 Y-.6198 R.06 G0 Z2. X-6.5872 Y-.625 Z.1 G1 Z-.065 F25. G3 X-6.5272 Y-.685 R.06 F91.7 X-6.4672 Y-.625 R.06 X-6.7192 Y-.373 R.252 X-6.9712 Y-.625 R.252 X-6.7192 Y-.877 R.252 X-6.4672 Y-.625 R.252 X-6.4674 Y-.615 R.252 X-6.5274 Y-.5574 R.06 X-6.5874 Y-.6174 R.06 X-6.5873 Y-.6198 R.06 G0 Z2. X-2.108 Y-.625 Z.1 G1 Z-.065 F25. G3 X-2.048 Y-.685 R.06 F91.7 X-1.988 Y-.625 R.06 X-2.24 Y-.373 R.252 X-2.492 Y-.625 R.252 X-2.24 Y-.877 R.252 X-1.988 Y-.625 R.252 X-1.9882 Y-.615 R.252 X-2.0482 Y-.5574 R.06 X-2.1082 Y-.6174 R.06 X-2.1081 Y-.6198 R.06 G0 Z2. M84 <--------------correct S7000 M3 X-4.1591 Y-.6311 M8 <---------------correct Z.02 G1 Z-.005 F15. X-4.1161 F22. Y-.6666 X-4.1361 Y-.6798 X-4.1389 Y-.6809 X-4.163 Y-.6863 X-4.1652 X-4.1864 Y-.6823 X-4.188 Y-.6817 X-4.2055 Y-.6695 X-4.2065 Y-.6685 X-4.2188 Y-.6495 X-4.219 Y-.649 X-4.2236 Y-.6277 Y-.6253 X-4.2206 Y-.6052 X-4.2189 Y-.6007 X-4.2069 Y-.5826 X-4.2058 Y-.5815 X-4.1887 Y-.5695 X-4.1866 Y-.5685 X-4.1662 Y-.5637 X-4.1635 X-4.1509 Y-.5655 X-4.1387 Y-.5707 X-4.1282 Y-.5787 X-4.1202 Y-.5897 G0 Z.1 X-4.2699 Y-.5648 M84 <------------------repeat Z.02 M8 <------------------repeat G1 Z-.005 F15. X-4.3489 F22. Y-.6852 X-4.2699 G0 Z.1 X-4.2745 Y-.6224 Z.02 G1 Z-.005 F15. X-4.3489 F22. G0 Z.1 X-4.3963 Y-.6253 Z.02 G1 Z-.005 F15. X-4.3998 Y-.6028 F22. X-4.4101 Y-.5838 X-4.4259 Y-.5704 X-4.4355 Y-.5664 X-4.4462 Y-.5648 X-4.4903 Y-.6852 X-4.4462 X-4.4297 Y-.6817 X-4.4259 Y-.68 X-4.4101 Y-.6666 X-4.3998 Y-.6475 X-4.3963 Y-.6253 G0 Z.1 X-4.6516 Y-.6852 Z.02 G1 Z-.005 F15. X-4.7231 F22. X-4.7146 Y-.667 X-4.7134 Y-.6653 X-4.698 Y-.651 X-4.6793 Y-.6374 X-4.6648 Y-.6221 X-4.6551 Y-.6068 X-4.6516 Y-.5932 X-4.6544 Y-.5814 X-4.6619 Y-.5722 X-4.6729 Y-.566 X-4.6861 Y-.5637 X-4.6974 Y-.5653 X-4.7077 Y-.5703 X-4.7158 Y-.578 X-4.7202 Y-.5881 G0 Z.1 X-4.7741 Y-.5648 M84 <------------------repeat Z.02 M8 <------------------repeat G1 Z-.005 F15. X-4.8259 F22. X-4.8365 Y-.6253 X-4.8237 Y-.6156 X-4.8076 Y-.6126 X-4.7935 Y-.6153 X-4.7817 Y-.623 X-4.7736 Y-.6347 X-4.7704 Y-.6492 X-4.7737 Y-.6641 X-4.7822 Y-.6757 X-4.794 Y-.6836 X-4.808 Y-.6863 X-4.8192 Y-.6847 X-4.8294 Y-.68 X-4.8375 Y-.6727 X-4.8431 Y-.6631 G0 Z2. M5 <-----------missing G91 G28 Z0. G90 G53 X-32. Y0. M30
  4. Only one generation of Mazak controls on our vertical mills have support for a #3020 variable. H(#51999) works for the 3 we have (Fusion 640 MN, Matrix, Smooth). I'll check the other configurations and update.
  5. Good Morning All, I work at a job shop where we use Mazatrol for all 2.5 axis work on our vertical mills and then sub out to .EIA for any 3D milling or Dynamic Toolpaths. The issue I run into is specifying a tool number in a Mastercam program and making that jive with the tool numbers at each machine. Generally, I either have to wait for the tooling to be loaded into the machine for the actual tool number or force the guys at the machine to change their tool layouts to match the program. Ideally, I would like to have a Mazatrol Manual call for a tool and then run the sub from there. A variable that could read what the actual tool number in the spindle is could then be output with every T, H and D in place of the tool number used in Mastercam. Is there a preset Variable on a Mazak that would return this? I think setting it up in the post would be easy enough? Thanks in advance.
  6. Yes, we spoke with a service tech yesterday who helped us get all the parameters set and we will start off slow. Thanks for the help!!
  7. It's a Mazak Integrex I 300 with the Matrix control. I thought TPC would handle it for me as long as I program about the center of rotation but wanted to be sure.
  8. Good Morning All, I'm as new as can be to programming 5 axis machines. My question is this: Do I need to use precise tool length measurements in Mastercam when programming for this machine, or does the TPC (G43.4) option at the control compensate for differing tool lengths?
  9. First of all, I want to thank you all for your support. I've learned a great deal about editing posts from reading through the forums. however, I am now stuck....lol I'm programming a Kuraki HBM, Fanuc style code, with a rotating table. The spindle moves in "Z" and the entire column moves in "W". The machine came with a built in macro that synchronizes Z and W so that we can choose which axis we want to move when drilling, tapping, etc. What I'm trying to set up is a "miscellaneous function" (mi4) switch so I can choose which positioning method I want to apply so I don't have to manage two posts(I also program a Femco HBM, Fanuc, with the same definition/post). Below is the NC statement as we want it to read for our purposes, a copy of the edits I have made attempting it and a copy of the NC code it is generating. A little more info to help....the controller uses G143 in place of G43, and A54.(55.,56.,etc) (with decimal) in place of G54 (55.,56.,etc) when it sets up the macro. I also have to disengage the macro with G149 instead of G49. The NC statement as we want it to read: G90 G143 A54. X-19.135 Y7.355 Z2. W-5. H1 S1000 M3 Z and W would be commented in as "0", so that the operator has control over the spindle projection The NC code it is generating: G20 G0 G17 G40 G49 G80 G90 G0 G90 A54 X-19.135 Y7.355 S1000 M3 G43 H1 Z2. M8 G98 G81 Z-.01 R.1 F2. X-16.043 Y12.762 X-11.559 Y16.931 X-6.049 Y19.587 X0. Y20.5 X6.049 Y19.587 X11.559 Y16.931 X16.043 Y12.762 X19.135 Y7.355 G80 M5 G149 Z15. M9 G91 G30 Y0. M00 G90 G143 A54 X17.7535 Y10.25 Z2. W-5. H1 S1000 M3 G0 Z2. M8 G98 G81 Z-.01 R.1 F2. X10.25 Y17.7535 X4.4139 Y20.0192 X-4.4139 X-10.25 Y17.7535 X-17.7535 Y10.25 G80 M5 G149 Z15. M9 G91 G30 Y0. M30 Note I have several problems here...The first block is supposed to use a normal positioning technique, but I changed the sign for G_WCS to "A" to get the macro to post correctly. I can change this back to "G" and comment in the "A54." (barely have need of more than one work coordinate), but I don't know how to make the decimal appear in this location only. Second, the first block of code should have canceled cutter length with the normal G49 but it seems to be reading from the next operation? The second block posts correctly, except for that decimal point. Here are the sections of my post as I have it now: psof$ #Start of file for non-zero tool number pcuttype toolchng = one if ntools$ = one, [ #skip single tool outputs, stagetool must be on stagetool = m_one !next_tool$ ] pbld, n$, *smetric, e$ pbld, n$, *sgcode, *sgplane, scc0, sg49, sg80, *sgabsinc, e$ sav_absinc = absinc$ if mi1$ <= one, #Work coordinate system [ absinc$ = one pfbld, n$, sgabsinc, *sg28ref, "Y0.", e$ #pfbld, n$, *sg28ref, "X0.", "Y0.", e$ pfbld, n$, sg92, *xh$, *yh$, *zh$, e$ absinc$ = sav_absinc ] pcom_moveb pcheckaxis c_mmlt$ #Multiple tool subprogram call ptoolcomment comment$ pcan #pbld, n$, *t$, sm06, e$ pindex if mi1$ > one, absinc$ = zero if mi4$ = one, [pbld, n$, *sgabsinc, e$ pcan1, pbld, n$, sg143, pwcs, pfxout, pfyout, "Z2.", "W-5.", pfcout, *tlngno$, [if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$ pbld, n$, *sgcode, pfzout, scoolant, e$] else, [pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout, [if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$ pbld, n$, sg43, *tlngno$, pfzout, scoolant, e$] absinc$ = sav_absinc pbld, n$, sgabsinc, e$ pcom_movea toolchng = zero c_msng$ #Single tool subprogram call ptlchg$ #Tool change pcuttype toolchng = one if mi1$ = one, #Work coordinate system [ #pfbld, n$, *sg28ref, "X0.", "Y0.", e$ pfbld, n$, sg92, *xh$, *yh$, *zh$, e$ ] if prog_stop = 1, pbld, n$, *sm01, e$ if prog_stop = 2, pbld, n$, *sm00, e$ pcom_moveb pcheckaxis c_mmlt$ #Multiple tool subprogram call ptoolcomment comment$ pcan result = newfs(15, feed) #Reset the output format for 'feed' #pbld, n$, *t$, sm06, e$ pindex sav_absinc = absinc$ if mi1$ > one, absinc$ = zero pcan1, pbld, n$, *sgabsinc, e$ if mi4$ = one, [pbld, n$, pcan1, pbld, sg143, pwcs, pfxout, pfyout, "Z2.", "W-5.", pfcout, *tlngno$, [if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$ pbld, n$, *sgcode, pfzout, scoolant, e$] else, [pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout, [if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$ pbld, n$, sg43, *tlngno$, pfzout, scoolant, e$] pbld, n$, e$ absinc$ = sav_absinc pbld, n$, sgabsinc, e$ pcom_movea toolchng = zero c_msng$ #Single tool subprogram call !xnci$, !ynci$, !znci$ # 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 & coolant_on > 0, [ 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 gcode$ = zero pbld, n$, sccomp, *sm05, psub_end_mny, e$ if mi4$ = one, [pbld, n$, sg149, "Z15.", scoolant, e$ pbld, n$, sgabsinc, sgcode, *sg28ref, "Y0.", e$] else, [pbld, n$, sg49, "Z15.", scoolant, e$ pbld, n$, sgabsinc, sgcode, *sg28ref, "Y0.", e$] #if nextop$ = 1003 | tlchg_home, pbld, n$, *sg28ref, "X0.", "Y0.", protretinc, e$ else, pbld, n$, protretinc, e$ absinc$ = sav_absinc coolant$ = sav_coolant Any help to get this completed would be greatly appreciated!!

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