CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > CAM Software > Mastercam


Mastercam Discuss Mastercam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-02-2004, 08:16 AM
 
Join Date: Oct 2004
Location: USA
Posts: 9
Shadowfaxx is on a distinguished road
Continued post help for Prototrak DPM

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
Reply With Quote

  #2  
Old 11-02-2004, 10:04 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

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 fastmode to "0"
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 words you see on the right are the places in the post that those lines on
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)
Reply With Quote

  #3   Ban this user!
Old 11-04-2004, 12:18 PM
 
Join Date: Oct 2004
Location: USA
Posts: 9
Shadowfaxx is on a distinguished road

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
What I am trying to eliminate is the multiple M06 calls. Is it possible that I have a parameter in MC set so that it is not outputting an NCI call for ptlchg0?

Last edited by Rekd; 11-04-2004 at 01:54 PM. Reason: Added "CODE" tags to make it readable
Reply With Quote

  #4  
Old 11-04-2004, 02:16 PM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

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)
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 11:43 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361