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 08-11-2009, 02:55 PM
 
Join Date: Aug 2009
Location: USA
Posts: 5
mnewman is on a distinguished road
Into the deep end..

The company I work for recently purchased a woodworking facility to diversify our operating basis.

Prior to about 4 weeks ago I didn't even know what gcode was, now I'm responsible for helping streamline the flow of hand drawn designs into final cut pieces using a Fanuc 15M from 1989.

So far I've got a pretty good handle on how everything works and have successfully used Mastercam X3 to generate code for a few simple pieces.



But enough rambling--

I believe I've got something wrong in my post processor. I'm attempting to post a two contours. I want the code generated in incremental mode, and the first contour does as such, however after it finishes the first cut, it G0 G90 G54 to the start of the next location and then never goes back to G91. At this point I'm clueless as to where to go next.

Help?
Reply With Quote

  #2   Ban this user!
Old 08-11-2009, 03:36 PM
 
Join Date: Apr 2006
Location: USA
Posts: 187
SCRAPWOTSCRAP is on a distinguished road

A work around.....you can bring the program file into a word processor software, MS. word, note pad, etc and insert your G91 at the appropriate line, and your file will cut. Maybe modify post processor down the line after you get a real feel for what you're doing. Many of us alter programs generated by post processors....quick and easy fixes.
Reply With Quote

  #3   Ban this user!
Old 08-11-2009, 03:54 PM
 
Join Date: Aug 2009
Location: USA
Posts: 5
mnewman is on a distinguished road

Let me clarify that a bit.. The code from that point on is in absolute mode, instead of incremental like the start of the program.

I am aware that in MCEdit there is an Absolute to Incremental convertor, but I cannot communicate to the CNC from within that program like I can with the Mastercam X Editor.

I'm trying to get this process down to the minimal number of steps, as eventually it will be taken over by the workers in the shop, none of whom have much computer experience.

Where in the post processor would I begin to look to correct a problem like this?
Reply With Quote

  #4   Ban this user!
Old 08-11-2009, 10:30 PM
 
Join Date: Jan 2008
Location: us
Posts: 62
donnelson is on a distinguished road

you need to get a hold of mike matera he advertises right here on this post he will fix your post for minimal amount of money just pay the man it is worth it to know that it is right he has helped me and it is good
Reply With Quote

  #5   Ban this user!
Old 08-12-2009, 03:52 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

OK, you've told us you have X3
what modified post are you using ?

Can you put up some code showing the problem ?
( I suggest using just a couple of lines to keep it short )


mark in red the code in error
mark in blue the code you want


example
Code:
N4 G30 P1
()
N5 T3
N6 M201 ( pallet #1 )
( 3.0BALL CBD 2FLUTE 4FLUTELENGTH 6SHANK 18OUT )
( TOOL - 3 ; D3 ; H3 ; TOOL DIA. - 3. )
N7 T3 M6
N8 G15 H1
N9 B0. M15
N10 G0 X366.4 Y22.775
N11 S8500 M3
N12 M50 ( thru tool coolant )
N13 G56 G43 H3 Z80.
...
...
...
N107 G0 Z80.
N108 M9
N109 M5
N109 M205 (clear coolant lines )
N110 G17
N111 G15 H0
N112 G30 P1
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-12-2009, 07:04 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Originally Posted by mnewman View Post
I want the code generated in incremental mode,
If I may I have to ask why?
I have been doing this stuff for 25 years and have never found a case where incremental was better, it is almost impossible to read and debug on the floor.
Reply With Quote

  #7   Ban this user!
Old 08-12-2009, 09:30 AM
 
Join Date: Aug 2009
Location: USA
Posts: 5
mnewman is on a distinguished road

I've begun using "Generic Fanuc 3X Router", and made a duplicate of the .PST
which I've begun editing to try and fit the needs of our machine.

At the moment the only changes I've made are:
Under NC output, changing 'main program default absolute/incremental' to incremental.
Under Arc, changing the three planes under Arc Center Type to Radius.
Under Misc Int/Real values, changing "Absolute/Incremental, top level" from 0 to 1 (labeled as being 0=Abs, 1=Inc).

Code:
.....
N150G0G90G54X-8.0463Y-14.0375
N160S0M5
N170G43H1Z.1
N180G1G91Z-.1F0.
N190X-.0648Y.0435F.01
N200X-.0697Y.0583
N210X-.0692Y.07
N220X-.0689Y.0826
N230X-.0686Y.0962
N240X-.0683Y.1109
N250X-.0677Y.1264
.....
N800X.0597Y.1447
N810X.0582Y.1195
N820X.0569Y.0978
N830X.0562Y.079
N840X.0167Y.0187
N850Z.1F0.
N860M5
N870G0G28Z0.
N880M01
N890G90M5Z0.
N900T2M6
N910G0G90G54X-18.Y-34.25
N920S0M5
N930G43H2Z.1
N940G1Z0.F0.
N950X-14.3521F.01
N960X-14.2902Y-34.21
N970G2X-9.Y-32.65R9.75
N980X-3.7098Y-34.21R9.75
N990G1X-3.6479Y-34.25
N1000X0.
N1010G3X.25Y-34.R.25
N1020G1Y0.
N1030G3X0.Y.25R.25
N1040G1X-18.
N1050G3X-18.25Y0.R.25
N1060G1Y-34.
N1070G3X-18.Y-34.25R.25
N1080G1Z.1F0.
N1090M5
N1100G91G0G28Z0.
N1110G28X0.Y0.
N1120G52X0.Y0.Z0.
N1130G8P0
N1140M30
The code for switching heads and actually starting up the machine is wrong also, but until I understand how to fix that also, I can do that much by hand.

As you can see, in green, it starts out in Incremental mode, as desired, however when it fast planes to the next chain further down the program, it switches to absolute and never goes back to incremental. This is not the desired behavior. I want all the code in incremental.
Reply With Quote

  #8   Ban this user!
Old 08-12-2009, 09:43 AM
 
Join Date: Aug 2009
Location: USA
Posts: 5
mnewman is on a distinguished road

Originally Posted by Andre' B View Post
If I may I have to ask why?
I have been doing this stuff for 25 years and have never found a case where incremental was better, it is almost impossible to read and debug on the floor.
Because we are doing a low number of each cut, usually only a few at a time spread out over a very long period of time, they need to be able to reposition where on the table the piece is cut without having to re-write half the code.

Edit: And if there's an easier way to do that then having all incremental code, I'm all ears. I just need it to work (:
Reply With Quote

  #9   Ban this user!
Old 08-12-2009, 10:03 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

Originally Posted by mnewman View Post
Under Misc Int/Real values, changing "Absolute/Incremental, top level" from 0 to 1 (labeled as being 0=Abs, 1=Inc).
Before altering the post
Have you altered all misc values in all operations to output in increm.
or did you alter only the 1st op. ?

And if there's an easier way to do that then having all incremental code, I'm all ears. I just need it to work (:
The G54 is the zero point datum, adjust this X & Y and the program is set from that.

If the output is inc. or abs you get the same part- absolute is more user freindly and can be followed & edited.

adjust an address in incremental-the code following is junk.

you can put the G54 anywhere and run the absolute output, you will get the same part .
Reply With Quote

  #10   Ban this user!
Old 08-12-2009, 10:13 AM
 
Join Date: Aug 2009
Location: USA
Posts: 5
mnewman is on a distinguished road

Originally Posted by Superman View Post
Before altering the post
Have you altered all misc values in all operations to output in increm.
or did you alter only the 1st op. ?
I dunno Where do I even check that?


Originally Posted by Superman View Post
The G54 is the zero point datum, adjust this X & Y and the program is set from that.
That's sounding like a more reasonable way to do this. I'll have to look into that.

Originally Posted by Superman View Post
If the output is inc. or abs you get the same part- absolute is more user freindly and can be followed & edited.

adjust an address in incremental-the code following is junk.
As I understand it, they'd only alter the first coordinate to reposition it,
but getting G54 as part of the routine will be more reasonable.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-14-2009, 06:34 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

I program lathes. Very little experience with mills. Woodworking? What's that? I'm going out on a limb here trying to help, and don't doubt someone will cut it off from under me. But...I'll try anyway.

I modified a v9 mill post for incremental. Boss complained that it wouldn't output incremental now that it is in X3. I checked it out, and the post still said incremental output. Apparently X3 doesn't care what the output is set for in the post. You have to select incremental in each operation where it is desired.

For mills look in the area where the tool depth, approach, etc. is defined. There is a place there to select incremental if that is what you want. I believe this is the solution to your problem. A side note: On a mill or lathe, if you have G54 you will also have G55 through G59 work offsets at a minimum. Hope I used the correct words there (work offsets) else I will get flamed.

Be sure to let us know how you make out. I always like to know "the rest of the story." Too often the OP never lets you know if his problem was solved or not.

________________

“It stands to reason that where there's sacrifice, there's someone collecting sacrificial offerings. Where there's service, there's someone being served. The man who speaks to you of sacrifice, speaks of slaves and masters. And intends to be the master."
--Ayn Rand
Reply With Quote

  #12   Ban this user!
Old 08-14-2009, 07:03 PM
Matt Berube's Avatar
Power User
 
Join Date: Mar 2005
Location: USA
Posts: 461
Matt Berube is on a distinguished road

Originally Posted by g-codeguy View Post
I program lathes. Very little experience with mills. Woodworking? What's that? I'm going out on a limb here trying to help, and don't doubt someone will cut it off from under me. But...I'll try anyway.

I modified a v9 mill post for incremental. Boss complained that it wouldn't output incremental now that it is in X3. I checked it out, and the post still said incremental output. Apparently X3 doesn't care what the output is set for in the post. You have to select incremental in each operation where it is desired.

For mills look in the area where the tool depth, approach, etc. is defined. There is a place there to select incremental if that is what you want. I believe this is the solution to your problem. A side note: On a mill or lathe, if you have G54 you will also have G55 through G59 work offsets at a minimum. Hope I used the correct words there (work offsets) else I will get flamed.

Be sure to let us know how you make out. I always like to know "the rest of the story." Too often the OP never lets you know if his problem was solved or not.

________________

“It stands to reason that where there's sacrifice, there's someone collecting sacrificial offerings. Where there's service, there's someone being served. The man who speaks to you of sacrifice, speaks of slaves and masters. And intends to be the master."
--Ayn Rand
I got the impression you'd be disappointed if nobody flamed you so here you go !
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
in at the deep end stupokeit Commercial CNC Wood Routers 0 07-18-2009 09:04 AM
In deep SH%$ stevo1 Fanuc 3 08-28-2008 11:51 AM
how deep will it cut? anakinjay Rockcliff Machine 2 11-02-2007 08:22 AM
In at the Deep End!!! PlymUK General Metal Working Machines 0 08-19-2007 09:51 AM
.250 Dia x 22.00 deep ?? Rekd Machine Problems, Solutions , Wireless DNC, serial port 10 02-25-2005 08:24 AM




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