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 > Post Processors for MC



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-10-2007, 08:18 AM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road
N at the beginning of each tool?

From what I've seen, it only appears that MCAM will let me either ouput sequence numbers for the entire program, or none at all. Is it possible to have it spit out an N code at the startup block for every tool? Example of what I want:

N10G0G40G80G90G94G98
M01
T1M6
G0G90G54X-1.125Y-.25S6112M3
G43H1Z.25M8T2
G4 P1000
Z.1
G1Z0.F48.9
G41D51X-.875F97.79
G3X-.625Y0.R.25
G2I.625
G3X-.875Y.25R.25
G1G40X-1.125
G0Z.25
M9
G91G30Z0.M19
M01

N20G0G40G80G90G94G98
T2M6
M01
G0G90G54X-.1875Y.125S10000M3
G43H2Z.25M8T3
G4 P1000
Z.1
G1Z0.F97.79
G41D52X-.3125F195.58
G3X-.4375Y0.R.125
I.4375
X-.3125Y-.125R.125
G1G40X-.1875
G0Z.25
M9
G91G30Z0.M19
M01

N30G0G40G80G90G94G98
T3M6
M01
G0G90G54X0.Y0.S9167M3
G43H3Z.1M8T1
G4 P1000
G99G81Z0.R.1F88.
G80
M9
G91G30Z0.M19
G28Y0.
M30
%

why does everything go to lowercase?
Reply With Quote

  #2  
Old 11-10-2007, 10:16 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,660
Switcher is on a distinguished road

why does everything go to lowercase?
The whole forum is messed up (lowercase).

.
Reply With Quote

  #3  
Old 11-16-2007, 02:04 PM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road

Find the section in the post that you want the output. Most likely this will be the ptlchg section of the post. Find the line where you want to force out the block number. Find the "n," in that line and replace it with a *n, "n" is the variable for the block number and the * forces the output of that variable. Then make sure the omitseq variable is set to yes (or 1).

You you've turned off block numbers, except for that one place where you're forcing them out.

Mike Mattera
__________________
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Reply With Quote

  #4   Ban this user!
Old 11-17-2007, 08:01 AM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road

Thank you! I'll give it a shot.
Reply With Quote

  #5   Ban this user!
Old 11-19-2007, 08:05 AM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road

Originally Posted by Mike Mattera View Post
Find the section in the post that you want the output. Most likely this will be the ptlchg section of the post. Find the line where you want to force out the block number. Find the "n," in that line and replace it with a *n, "n" is the variable for the block number and the * forces the output of that variable. Then make sure the omitseq variable is set to yes (or 1).

You you've turned off block numbers, except for that one place where you're forcing them out.

Mike Mattera
So, I've tried that, and it's not working. I found the n$ before the beginning of each toolchange, changed it to a *n, and it still posts out as:
G0G40G80G90G94G98
This is at the beginning of each tool, and I would like it to add in a "N10", or "N20", whatever tool # I'm on....
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-19-2007, 08:09 AM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road

omitseq$ : yes$ #CD_VAR Omit sequence numbers?
seqmax$ : 9999 #CD_VAR Max. sequence number

pbld, *n, *sgcode, scc0, sg40, sg80, *sgabsinc, sg94, sg98, e$
This is what I've got in my post....
Reply With Quote

  #7  
Old 11-19-2007, 08:29 AM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road

Did you say you were using MCam X? No.

Put the *n$ in and try it again.

It aways helps when you tell us what version your using.

Mike Mattera
__________________
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Reply With Quote

  #8   Ban this user!
Old 11-19-2007, 04:32 PM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road

Mike,

Thank you! That works now. Sorry about not mentioning what version I was using. I wasn't aware that made a difference....

One last question, if I may.... It gives me N100 at T1, N102 at T2, N103 at T3, etc. etc. Now do I get it to do N10, N20, N30, N40, etc. etc. I set the increment in the control definition to 10, but that doesn't seem to make a difference.
Reply With Quote

  #9  
Old 11-20-2007, 07:59 AM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road

Machine Type - Control Definition - NC-Output - Start Seq Num = 10 - Increment Seq Num = 10.

Mike Mattera
__________________
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Reply With Quote

  #10   Ban this user!
Old 11-20-2007, 08:24 AM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road

I'll be darned. That did it. I had changed it just in the control definition. Apparently, one needs to go into machine def. and then into control def. and then re-load the machine def.... thank you!
Reply With Quote

Sponsored Links
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
a machine design (pics) from beginning to end blurrycustoms Vertical Mill, Lathe Project Log 29 10-06-2007 02:26 PM
Getting Close to Beginning Lathemaster 9x30 CNC Conversion... BobWarfield General Metal Working Machines 12 02-21-2006 11:42 PM
Beginning Crusader to Mach 2 Conversion Please Help MMT Bridgeport and Hardinge Mills 8 10-30-2005 11:13 PM
Joe's CNC Router the beginning for testing joecnc2006 DIY-CNC Router Table Machines 63 04-14-2005 01:20 PM
At the very beginning rackbox DIY-CNC Router Table Machines 16 12-01-2004 04:56 PM




All times are GMT -5. The time now is 03:55 AM.





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