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 01-25-2006, 11:16 PM
 
Join Date: Jan 2006
Location: USA
Posts: 2
Socalsurferx is on a distinguished road
Help!! Problem With Z coordinates in G code

Hello-
Our small company just recently purchased a new Haas TM-2 mill. We are all fairly new to the CNC machining area and need some help. We are trying to mill out a female die pattern out of a block of PVC Plastic that will then be cast into a different metal. The pattern is basically an open ended channel with some curve and shape to it. We designed the part in Solidworks and saved it as an IGS file and opened it in Mastercam X. No problems there, made the tool path and sent it to the post processor. One issue we had at first was the H and the T values didnt match up. Dont know how to change this in the program so I did it manually. The biggest problem is that we clamped the plastic down,went through the proper set-up procedures on the machine and start the machine and it wants to cut 6 inches or so above where it should be. I looked at the G code after and sure enough the line after the G54 line says Z6.018 which is the height of our stock in the program. the z should be clost to 0 or something i believe then slowly become more negative. the stock was not set up in Mastercam, the whole thing was drawn in Solidworks. Any ideas?
Reply With Quote

  #2   Ban this user!
Old 01-26-2006, 07:49 AM
 
Join Date: Sep 2003
Location: Kansas City
Posts: 24
SteveD is on a distinguished road

Sounds like your part is not oriented right in MC. I too take files from solidworks (designer draws) to MC (V8 however). I find when I convert the file to MC the part is all out of wack & I have to re-orient it, my designer can't seem to figure out how to orient it right so when I convert it is where it needs to be. Check where you origin is in MC the part could be 6" above that causing it to right the code there.
__________________
SteveD.
Reply With Quote

  #3   Ban this user!
Old 01-27-2006, 10:07 PM
 
Join Date: May 2005
Location: usa
Posts: 92
mishikwest is on a distinguished road

Welcome to the wonderful world of mastercam.

first, what version of mastercam?

There is a parameter in the Haas control to alarm if H & T don't match. For learning the machine and mastercam, I'd recommend keeping that alarm on. H & T values either come from the tool or are assigned sequentially. Take a look at your job setup and see if "get values" from tool is checked. Then go and see what your tool def. is. Adjust either accordingly.

Sounds like your origin is not where you think it may be. Hit ALT+F9 and see where the blue crosshairs align. That is where your g54 should be set on the machine.

Yes when outputting from solidworks the planes get switched around..front in solidworks becomes top in mastercam, (at least if I recall correctly). If I have access to solidworks at the time (or can convince the part designer); create a new coordinate system and save the part as a parasolid and output that "new" coordinate system. When you open the part in MC, it will be oriented correctly. If you don't (or can't) go back into SW, you will need to either create a new view in MC, or translate your part to the top view. See how far that gets you, and come back if you need more help.

edit: Also sounds like your tool offest also could be off too.? In relation to the top of the part or the top of the table.
Reply With Quote

  #4   Ban this user!
Old 01-29-2006, 09:55 AM
dmealer's Avatar  
Join Date: Oct 2004
Location: USA
Posts: 116
dmealer is on a distinguished road

Hello,
A few tips on the solidworks issue. I am constantly making parts in SW and importing them into MC with no alignment problems. First, when you design your part, notice the triad in the lower left corner of SW. Orient your part with the triad as you would in MC.
Never mind which plane it's on. Usually I just design it, the move it where I want using the insert, feature, move, copy command.
Also, in SW, make sure the origin is where you want to call X,Y,Z zero in mc.
The origin is not the same as the triad. When you start a sketch, you will see the origin in the middle of the screen. Once again, I usually just design my part and move it to the proper relationship to the origin after I'm done.
It takes a little practice, but once you get the hang of it, when you import your part to MC, it will be exactly where you want it from the git go, and only takes a min or 2 to acomplish.

Hope this helps!!!!
Reply With Quote

  #5   Ban this user!
Old 01-29-2006, 10:54 AM
Cammotion's Avatar  
Join Date: Nov 2004
Location: USA
Posts: 166
Cammotion is on a distinguished road

Originally Posted by dmealer
Hello,
A few tips on the solidworks issue. I am constantly making parts in SW and importing them into MC with no alignment problems. First, when you design your part, notice the triad in the lower left corner of SW. Orient your part with the triad as you would in MC.
Never mind which plane it's on. Usually I just design it, the move it where I want using the insert, feature, move, copy command.
Also, in SW, make sure the origin is where you want to call X,Y,Z zero in mc.
The origin is not the same as the triad. When you start a sketch, you will see the origin in the middle of the screen. Once again, I usually just design my part and move it to the proper relationship to the origin after I'm done.
It takes a little practice, but once you get the hang of it, when you import your part to MC, it will be exactly where you want it from the git go, and only takes a min or 2 to acomplish.

Hope this helps!!!!
dmealer,

Not to hijack this thread, but I wonder why the triad Z axis is aligned with the front construction plane in Solidworks, and if there's a way to change that. You'd think that it would be aligned with the top construction plane.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-29-2006, 05:23 PM
 
Join Date: May 2005
Location: usa
Posts: 92
mishikwest is on a distinguished road

The caveat is when bringing in parts from assemblies you'd have to save a copy of your part, re-orient, and then bring into mc.

I'd bet in an upcomming release of MCdirect you'd be able to output a coordinate system. It supports more and more features with each release.
Reply With Quote

  #7  
Old 01-29-2006, 10:33 PM
cadcam's Avatar
Community Director
 
Join Date: Apr 2003
Location: United States
Posts: 2,721
cadcam is on a distinguished road

mishikwest which version of MC and Solid works are you working with?
I will be able to tell if you have the latest.And I can Check with CNC if they plan on implamenting the output a coordinate system. I use the WCS in MC to take care of how the part sits as with all types of files from Say Catia ,UG or SW they new put them were I want.
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Cadcam
Mastercam Instructor , Programming Consultant and ME (Manufacturing Eng)
Reply With Quote

  #8   Ban this user!
Old 01-29-2006, 11:24 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by mishikwest
There is a parameter in the Haas control to alarm if H & T don't match. For learning the machine and mastercam, I'd recommend keeping that alarm on.
On Haas VF series it is Setting 15: H &T Code Agreement; On or Off
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





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