![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Mastercam Discuss Mastercam software here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I believe that I spoke too soon. I still have an error in that the post is calling "M06" at the end of each NCI operation regardless of the whether there is supposed to be a tool change or not. Removing the asterisk from in front of the "t" in the program line got rid of the multile T calls but not the multiple M06 calls. Also, is it possible to tell the post to output only linear moves, no arcs? It seems to be making very strange G2 and G3 calls. The following is the affected code for the toolchange as it stands, I think. 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 ] "%", e *progno, e "(PROGRAM NAME - ", sprogname, ")", e "(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e pbld, n, *smetric, e pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e sav_absinc = absinc if mi1 <= one, #Work coordinate system [ absinc = one pfbld, n, sgabsinc, *sg28ref, e pfbld, n, *sg28ref, e pfbld, n, "G92", *xh, *yh, *zh, e absinc = sav_absinc ] pcom_moveb c_mmlt #Multiple tool subprogram call ptoolcomment comment pcan if stagetool >= zero, pbld, n, t, "M6", e pindex if mi1 > one, absinc = zero pcan1, pbld, n, sgcode, sgabsinc, pwcs, pfxout, pfyout, pfcout, *speed, *spindle, pgear, strcantext, e pbld, n, "G43", tlngno, pfzout, scoolant, next_tool, e absinc = sav_absinc pcom_movea toolchng = zero c_msng #Single tool subprogram call ptlchg0 #Call from NCI null tool change (tool number repeats) pcuttype pcom_moveb c_mmlt #Multiple tool subprogram call comment pcan pbld, n, sgplane, e pspindchng pbld, n, scoolant, e if mi1 > one & workofs <> prv_workofs, [ sav_absinc = absinc absinc = zero pbld, n, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e pe_inc_calc ps_inc_calc absinc = sav_absinc ] if cuttype = zero, ppos_cax_lin if gcode = one, plinout else, prapidout pcom_movea c_msng #Single tool subprogram call ptlchg #Tool change pcuttype toolchng = one if mi1 = one, #Work coordinate system [ pfbld, n, sg28ref, e pfbld, n, "G92", *xh, *yh, *zh, e ] pbld, n, "M01", e pcom_moveb c_mmlt #Multiple tool subprogram call ptoolcomment comment pcan pbld, n, t, sm06 pindex sav_absinc = absinc if mi1 > one, absinc = zero pcan1, pbld, n, sgcode, sgabsinc, pwcs, pfxout, pfyout, pfcout, speed, spindle, pgear, strcantext, e pbld, n, "G43", tlngno, pfzout, scoolant, next_tool, e absinc = sav_absinc pcom_movea toolchng = zero c_msng #Single tool subprogram call pretract #End of tool path, toolchange sav_absinc = absinc absinc = one sav_coolant = coolant coolant = zero #cc_pos is reset in the toolchange here cc_pos = zero gcode = zero pcan pbld, n, sccomp, sm05, psub_end_mny, e pcan1, pbld, n, sgabsinc, sgcode, sg28ref, scoolant, strcantext, e pbld, n, sg28ref, protretinc, e pcan2 absinc = sav_absinc coolant = sav_coolant |
|
#2
| ||||
| ||||
| First things first: Back up your post before you go any further. Next, look for this: Code: # -------------------------------------------------------------------------- # Debugging and Factory Set Program Switches # -------------------------------------------------------------------------- fastmode : 1 #Posting speed optimizition bug1 : 2 #0=No display, 1=Generic list box, 2=Editor bug2 : 40 #Append postline labels, non-zero is column position? bug3 : 0 #Append whatline no. to each NC line? 0 bug4 : 0 #Append NCI line no. to each NC line? 0 whatno : yes #Do not perform whatline branches? leave as yes Change bug1 to "2" if it isn't already Change bug2 to "30" or "40" (this is the column to start display on) Make sure bug3 and bug4 are as shown Now run your post again. You'll see more information on the end of each line, similar to: Code: % pheader O0001 pheader (107407 REV M.NCF) pheader (NOV 02, 2004 07:39) pheader (MC9 FILE: 107407 REV M) pheader (MACHINE: 3 AXIS) pheader (MATERIAL: ALUMINUM INCH - 6061) pheader (STOCK SIZE: X 12.75 Y 3. Z 3.) pheader (TOOL 1: DIA 0.7100 .71 Finish EM 3FL 2.5" Clearance) pwrtt (TOOL 2: DIA 0.2500 1/4 CHAMFER MILL Ext To 3.0) pwrtt (TOOL 3: DIA 0.3160 #O DRILL 3.25 Long) pwrtt (TOOL 4: DIA 0.7031 45/64 DRILL) pwrtt (TOOL 5: DIA 0.3750 3/8-16 Cut Tap Plug H3) pwrtt (TOOL 6: DIA 0.7500 3/4-24 Cut Tap ) pwrtt (TOOL 7: DIA 0.5000 1/2 CB EM 2FL SE) pwrtt (TOOL 8: DIA 0.2500 1/4 CB EM 2FL TICN) pwrtt (OVERALL MAX Z1.562) psof (OVERALL MIN Z-2.6692) psof N1 G00 G17 G40 G49 G80 G90 G20 psof N2 M01 psof ptlchg_com N3 ( OPERATION: 1 POCKET ) psof popnumber N4 ( OP 1 ) psof pcomment N5 ( MAKE ROOM ) psof pcomment N6 T1 M06 psof p__8:1109 N7(T1: .71 FINISH EM 3FL 2.5" CLEARANCE) psof ptoolcomm N8(MAX-DEPTH | Z-2.448) psof ptlchg_com N9( TOOLPATH - POCKET) psof p__1:920 N10( STOCK LEFT ON X & Y = 0.) psof p__1:920 N11( STOCK LEFT ON Z = 0.) psof p__1:920 N12(OP ID: 1) psof pstock N13 M03 S4304 psof ptlchg_com N14 G00 G54 X-10.7572 Y-1.6132 psof ptlchg_com N15 G43 H1 Z1.562 psof ptlchg_com / N16 M08 psof ptlchg_com the left are called from. Now you can look at each line in the posted file, and be able to tell where that line is coming from. Use that info to look in your post to find the culprit for your problems. Show an example of the posted output, as well as what you'd 'like' to have. Also, use the "code" tags when pasting something like the NC file or the Post stuff, it makes it easier to read, and keeps your formatting. In the following example, you can see a null tool change between lines N108 and N117 Code: N95 X-2.24 Y-1. F68.86 plin plinout N96 G03 I-.26 J0. pcir pcirout1 N97 G01 X-2.628 Y-.929 plin plinout N98(OPERATION: 6 POCKET) ptlchg0 popnumber N99(T1: .71 FINISH EM 3FL 2.5" CLEARANCE) ptlchg0 ptoolcomm N100 F34.43 ptlchg0 plinout N101 G41 D1 X-2.699 F68.86 plin plinout N102 G03 X-2.77 Y-1. I0. J-.071 pcir pcirout1 N103 X-2.23 I.27 J0. pcir pcirout1 N104 X-2.77 I-.27 J0. pcir pcirout1 N105 Y-1.005 I.27 J0. pcir pcirout1 N106 X-2.6977 Y-1.0747 I.071 J.0013 pcir pcirout1 N107 G01 G40 X-2.6267 Y-1.0734 plin plinout N108 G00 Z1.287 pzrapid prapidout N109(OPERATION: 7 CONTOUR) ptlchg0 popnumber N110(OP 1) ptlchg0 pcomment N111(CONTOUR) ptlchg0 pcomment N112(T1: .71 FINISH EM 3FL 2.5" CLEARANCE) ptlchg0 ptoolcomm N113( TOOLPATH - CONTOUR) ptlchg0 p__1:920 N114( STOCK LEFT ON X & Y = 0.) ptlchg0 p__1:920 N115( STOCK LEFT ON Z = 0.) ptlchg0 p__1:920 N116(OP ID: 2) ptlchg0 pstock N117 X-12.965 Y-3.05 Z1. ptlchg0 prapidout N118 Z.662 pzrapid prapidout N119 G01 Z.132 F34.43 plin plinout N120 G41 D1 X-12.915 F68.86 plin plinout N121 G03 X-12.865 Y-3. I0. J.05 pcir pcirout1 N122 G01 Y0. plin plinout N123 G03 X-12.915 Y.05 I-.05 J0. pcir pcirout1 N124 G01 G40 X-12.965 plin plinout N125 G00 Z.75 pzrapid prapidout N126 X-12.955 Y-3.05 prapid prapidout N127(OPERATION: 8 CONTOUR) ptlchg0 popnumber N128(T1: .71 FINISH EM 3FL 2.5" CLEARANCE) ptlchg0 ptoolcomm N129 Z.662 ptlchg0 prapidout N130 G01 Z.132 F34.43 plin plinout N131 G41 D1 X-12.905 F68.86 plin plinout N132 G03 X-12.855 Y-3. I0. J.05 pcir pcirout1
__________________ Matt San Diego, Ca ___ o o o_ [l_,[_____], l---L - □lllllll□- ( )_) ( )_)--)_) (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
| Being able to see what part of the post generates what line really helps and I think it has identified the problem but I don't have a clue how to fix it. Apparently a null tool change is never called for. Here is a sample of the gcode output: Code: T1M06 ptlchg G0G90G53X0.Y0.S4500M3 ptlchg H1Z.1 ptlchg M06 ptlchg G0G90G53X-1.7042Y.0327S4500M3 ptlchg H1Z.25 ptlchg Z.1M8 pzrapid prapidout G1Z-.01F10. plin plinout Y.1327 plin plinout G0 ptlchg1002 pretract M06 ptlchg G1G90G53X-1.7042Y.1327S4500M3 ptlchg H1Z-.01 ptlchg Y.2327F10. plin plinout Z.09F50. plin plinout G0Z.24 pzrapid prapidout Z.25 pzrapid prapidout M06 ptlchg G0G90G53X-1.6642Y.2327S4500M3 ptlchg H1Z.25 ptlchg Z.1 pzrapid prapidout G1Z-.01F10. plin plinout X-1.6356 plin plinout G0 ptlchg1002 pretract M06 ptlchg Last edited by Rekd; 11-04-2004 at 01:54 PM. Reason: Added "CODE" tags to make it readable |
|
#4
| ||||
| ||||
| Can you zip and attach your mastercam file with the post? I'll take a look.
__________________ Matt San Diego, Ca ___ o o o_ [l_,[_____], l---L - □lllllll□- ( )_) ( )_)--)_) (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Emco Compact 5 PC...have ???? | Double G | Mini Lathe | 42 | 08-22-2010 06:26 PM |
| Upgrading control hardware - Emco | eDudlik | General CNC (Mill and Lathe) Control Software (NC) | 21 | 12-08-2009 12:52 AM |
| v2xt post | jrrhotrod | Post Processors for MC | 25 | 12-10-2008 05:20 PM |
| post processor help | jrrhotrod | Post Processor Files | 8 | 01-14-2005 03:45 PM |
| One more little bump in the ProtoTrak post | Shadowfaxx | Post Processors for MC | 1 | 01-04-2005 10:10 PM |