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 09-12-2007, 04:09 PM
 
Join Date: Apr 2007
Location: Sweden
Posts: 3
Longitud is on a distinguished road
Few bugs in my Post...

Hi!
I'm farely new here so dont shoot me for asking
I work on a Nicholas correa Calidad A-30 3-axis with Heidenhain tnc426(PB) on my job here in sweden. Using mastercam X.
I got a post from this forum a while ago (actually a 4-axis post) and have used it with a lot of luck. But there is a few simple bugs that I have in my post and wondered if there is someone that could help me with them. I've done some modifications that have helped me but there are some left. These bugs I have to change before i transfer the program to the control.

Bugs like:
0 BEGIN PGM MM0 BLK FORM 0.1 Z X-5 Y-5 Z-10 BLK FORM 0.2 X+5 Y+5 Z+00 ; PROGRAM NAME -
1 ; PROGRAM FOR - HEIDENHAIN
2 ; DATE=DD-MM-YY - 12-09-07 TIME=HH:MM - 09:23

There I want it to be:
0 BEGIN PGM "program name" MM
1 BLK FORM 0.1 Z X-5 Y-5 Z-1
2 BLK FORM 0.2 X+5 Y+5 Z+0
3 ; PROGRAM FOR - HEIDENHAIN
4 ; DATE=DD-MM-YY - 12-09-07 TIME=HH:MM - 09:23

Without the "
post says:
pheader #Start of file
seqno = 0
seqinc = 1
n = seqno
n, "BEGIN PGM ", progname, *smetric
n, "BLK FORM", "0.1", "Z X-5 Y-5 Z-1"
n, "BLK FORM", "0.2", "X+5 Y+5 Z+0"

psof0 #Start of file for tool zero
psof

psof #Start of file for non-zero tool number
nextcflg = c9k
last_mr2 = c9k
last_mr3 = c9k
last_mr4 = c9k
last_workofs = c9k
plast_recd
rc1 = one
gcode1 = rbuf ( one, rc1 )
if ntools = one, stagetool = two #skip single tool output
gcode = zero
cc_pos = zero
pspindle
pcom_movbtl
pbld, n, "; PROGRAM NAME - ", progname, e
pbld, n, "; PROGRAM FOR - HEIDENHAIN ", e
pbld, n, "; DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, e
if mi3 > 0, pm92_rtrnz

And an other bug:
4713 L Z3. FMAX
4714 L M5 M9

Want to be:
4713 L Z3. FMAX
4714 L M2
4715 END PGM "program name" MM

Without the " again

Post says:

ptoolend #End of tool path
gcode1 = rbuf ( one, rc1 )
if gcode1 <> 1000, ptoolend_t

ptoolend_t #End of tool path, toolchange
gcode = zero
coolant = zero
if cc_pos <> zero, cc_pos = zero
pbld, n, "L", sccomp, "M5 M9", e

and

peof #End of file for non-zero tool
ptoolend_t
comment
pbld, n, "L","M2"
pbld, n, "END PGM ", progname, *smetric

That became a long thread. :/
If there is someone that wants to help don't get to involved with it. it's not that big of a deal but it would be a great help.

Thanks

Last edited by Longitud; 09-12-2007 at 05:42 PM. Reason: too many zeros + I missed program info
Reply With Quote

  #2   Ban this user!
Old 09-14-2007, 03:08 PM
 
Join Date: Dec 2004
Location: Norway
Posts: 43
ak762 is on a distinguished road

0 BEGIN PGM MM0 BLK FORM 0.1 Z X-5 Y-5 Z-10 BLK FORM 0.2 X+5 Y+5 Z+00 ; PROGRAM NAME -
There I want it to be:
0 BEGIN PGM "program name" MM
1 BLK FORM 0.1 Z X-5 Y-5 Z-1
2 BLK FORM 0.2 X+5 Y+5 Z+0
**************************************
A.
If you wish to output at separate line add "e" letter at end of line in post
n, "BLK FORM", "0.1", "Z X-5 Y-5 Z-1" , e
n, "BLK FORM", "0.2", "X+5 Y+5 Z+0" , e

B.
if you do not want output any line or simbol put "#" before
like #pbld, n, "L", sccomp, "M5 M9", e
Reply With Quote

  #3   Ban this user!
Old 09-14-2007, 06:47 PM
 
Join Date: Apr 2007
Location: Sweden
Posts: 3
Longitud is on a distinguished road

Thanks!
That was great info! New to post-writing, so that infos good!
It helped my programs start but the end is still wrong.
It's like Mastercam chooses to use "ptoolend #End of tool path" instead of "peof #End of file for non-zero tool".
Or is this maybe a setting in mastercam I should change?

Thanks
Reply With Quote

  #4   Ban this user!
Old 09-14-2007, 09:28 PM
 
Join Date: Sep 2007
Location: USA
Posts: 217
crazythunder is on a distinguished road

No that works that way. Look at the structure it make sense also if you use the debug it will help you see what is doing what where in the post.
Reply With Quote

  #5   Ban this user!
Old 09-16-2007, 03:28 AM
 
Join Date: Dec 2004
Location: Norway
Posts: 43
ak762 is on a distinguished road

Longitud
If you will not find a solution by yourself send me a post and I will try to adjust it for you

b0066746@yandex.ru
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-16-2007, 06:01 AM
 
Join Date: Apr 2007
Location: Sweden
Posts: 3
Longitud is on a distinguished road

Originally Posted by ak762 View Post
Longitud
If you will not find a solution by yourself send me a post and I will try to adjust it for you

b0066746@yandex.ru
Thanks, maybe you'll hear from me
I've managed to sort most of the bugs out.
Seems that its one left. With the coolant, but I'll try to figure it out.
The problem with "peof #End of file for non-zero tool" was the ", e"
Thanks again for that info!
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
Bugs in 2005 mdlmkr Surfcam 9 10-04-2005 11:45 AM
Visual Mill 4th axis bugs metalchipper Visual Mill 1 07-07-2005 01:13 PM




All times are GMT -5. The time now is 05:34 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