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 04-13-2010, 12:46 PM
 
Join Date: Aug 2009
Location: USA
Posts: 60
galaxyman7 is on a distinguished road
Problems with exporting gcode

Hey, I have Mastercam X, and I have tried to export gcode and open it with Mach3. However, when I open the gcode up in Mach 3, and I zero the tool, the program thinks the zero is very far away from the zero I have in Master Cam. I am using the basic 3 axis machine type in master cam. How do I get the zero on Mach3 to be the same zero as Master Cam?
I have a feeling it is mixing up the machine's zero and the zero for the workpiece, but I do not know how to change that.
Reply With Quote

  #2  
Old 04-13-2010, 04:42 PM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road

Its probably your work offset. Does this control use G54 & G55 type offsets? Whats in the NC program you created? What is that offset set to in your machine?

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

  #3   Ban this user!
Old 04-13-2010, 04:52 PM
 
Join Date: Dec 2009
Location: Sweden
Posts: 75
Limpan is on a distinguished road

Hi, if the coordinates in your G-code correspond to your workpiece zero in Mastercam then something must be wrong in the Mach3 work setup. Does your Mach3 display the machine coords or the workpiece coords? I think there is a button in Mach3 to switch between those two display options.
Limpan
Reply With Quote

  #4   Ban this user!
Old 04-13-2010, 08:23 PM
 
Join Date: May 2007
Location: USA
Posts: 303
foxsquirrel is on a distinguished road

did you check to see that your T plane is the same as the gview and Cplane are at the same location. And if you changed your T plane after posting you will have to delete the toolpaths and start over again, for some reason X3 does not update anything like it should and you will have the old t plane origin.
Reply With Quote

  #5   Ban this user!
Old 04-13-2010, 09:56 PM
 
Join Date: Aug 2009
Location: USA
Posts: 60
galaxyman7 is on a distinguished road

Limpan, Mach 3 has the machine coordinates button off, so it isn't that. Plus even if I turn the computer on with the tool at one position, Mach3 doesn't recognize that as zero. It thinks zero is way outside my machine limits.

Fox, how do I check the position of the T plane and C plane? I did set the WCS origin to the middle of the workpiece.

By the way, it is a 3 axis milling machine, and it does not have a home position. This happens with any NC code I export from Master Cam X.

To Mike, the work offset is 0 for everything. The problem is with the NC code.

I have attached some test gcode that is messed up, and the same gcode that I fixed manually. There is a portion in there that moves the origin for some reason.

This is the piece I took out.
I think it has to do with the slashes not being recognized in Mach3 as comments. But why would Master Cam put that in?


/ N104 G91 G28 Z0.
/ N106 G28 X0. Y0.
/ N108 G92 X10. Y10. Z10.
Attached Files
File Type: txt TEST1.txt‎ (631 Bytes, 34 views)
File Type: txt TEST-FIXED.txt‎ (574 Bytes, 26 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-14-2010, 07:46 AM
 
Join Date: May 2007
Location: USA
Posts: 303
foxsquirrel is on a distinguished road

Originally Posted by galaxyman7 View Post
Limpan, Mach 3 has the machine coordinates button off, so it isn't that. Plus even if I turn the computer on with the tool at one position, Mach3 doesn't recognize that as zero. It thinks zero is way outside my machine limits.

Fox, how do I check the position of the T plane and C plane? I did set the WCS origin to the middle of the workpiece.

By the way, it is a 3 axis milling machine, and it does not have a home position. This happens with any NC code I export from Master Cam X.

To Mike, the work offset is 0 for everything. The problem is with the NC code.

I have attached some test gcode that is messed up, and the same gcode that I fixed manually. There is a portion in there that moves the origin for some reason.

This is the piece I took out.
I think it has to do with the slashes not being recognized in Mach3 as comments. But why would Master Cam put that in?


/ N104 G91 G28 Z0.
/ N106 G28 X0. Y0.
/ N108 G92 X10. Y10. Z10.
On the bottom bar click on gview or tplane or cplane, I believe tplane is hidden by default and you will have to turn it on ( I don't remember where) open it up and it will state the location. You can also hit F9 and the cross hairs will pop up showing the origins. Be aware that if you do change one of them MCAM does not update the locations all the time so you might have to do it a couple of times.
Reply With Quote

  #7   Ban this user!
Old 04-14-2010, 01:37 PM
 
Join Date: Dec 2009
Location: Sweden
Posts: 75
Limpan is on a distinguished road

Hi galaxyman, I think the best in Mach3 is to use work offsets G54-G59, you can change in your control definition in Mastercam so the postprocessor generates G54 instead of G92. G92 was used many years ago when the Fanuc controls were still not equipped with the local work offsets G54-G59. The function was to translate your zero point from machine zero to workpiece zero and then you could translate again to your next workpiece if you had one. I think that Mach3 cannot handle G92 translations. If you want I can post a screenshot to show where to change in the control definition.
Limpan
Reply With Quote

  #8   Ban this user!
Old 04-15-2010, 07:19 PM
 
Join Date: Aug 2009
Location: USA
Posts: 60
galaxyman7 is on a distinguished road

Sure, that would be great. I don't know why it would be set to G92 on default.

If that doesn't work I will try fox's idea and change the T plane coordinates.
However I would rather have it automatically work rather than have to change it every time.

Thank you very much guys
Reply With Quote

  #9   Ban this user!
Old 04-15-2010, 09:28 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

to set G54/G55 instead of G92


on top toolbar select the
- "Settings" pull-down, then
- "Machine Definition Manager" - opens a dialog box
now select "Edit the Control Definition " - this opens your machines' control settings of all future jobs that you do and where you post it and what extension blah blah blah

in the L/hand window, select "Misc Int/Real values",
in the R/hand window, the #1 setting is for Work Co-ordinates----- set this value to 2 to get G54/G55 outputs

now back out accepting the new settings for them to stick

The other bit about G28 and the block skips is actually a post edit, but do 1 step at a time
Reply With Quote

  #10   Ban this user!
Old 04-24-2010, 05:21 PM
 
Join Date: Aug 2009
Location: USA
Posts: 60
galaxyman7 is on a distinguished road

Still not working. I set the home position to 0, 0, 0 on the "Edit Axis combinations" button. It still offsets the zero.

Last edited by galaxyman7; 04-24-2010 at 06:01 PM.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-24-2010, 06:04 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

Mastecam ---you programmed Z-0.1
NC output---you got Z-0.1
no issue here

the issue lays in your machine
-you need to diagnose further, MDI in a G0Z0, Z-1., Z1., have the tool go to the point form the + and - directions, if the differences between the programmed and actual points are common , it's not major, it may just be a zeroing out problem on the readout, and better resolved with "masters" in the machine forum

You changed your posting ?? I'm now confused
"home position to 0, 0, 0" is where you would normally program your part and set the machine to, The G54/55 line is where on the machine you want the part machined around.This is the part origin point co-ordinates from the machines datum point, and may have to be edited manually. We use a point reference, where that point is adjusted by a work offset page---no editing of the code needed

Last edited by Superman; 04-24-2010 at 06:19 PM.
Reply With Quote

  #12   Ban this user!
Old 04-24-2010, 08:52 PM
 
Join Date: Aug 2009
Location: USA
Posts: 60
galaxyman7 is on a distinguished road

the reason i changed the post is because i found out why it goes down .094. It was in metric units, and it cant get to exactly .1 because of the accuracy of the machine. Anyways, here is the gcode. How do i cchange to G54 instead of G92? I tried changing it in the control definition under misc values, but it still outputs g92 code.
%
O0000
(PROGRAM NAME - TEST )
(DATE=DD-MM-YY - 24-04-10 TIME=HH:MM - 18:44 )
N100 G20
N102 G0 G17 G40 G49 G80 G90
/ N104 G91 G28 Z0.
/ N106 G28 X0. Y0.
/ N108 G92 X10. Y10. Z10.
( 1/16 FLAT ENDMILL TOOL - 230 DIA. OFF. - 0 LEN. - 0 DIA. - .0625 )
N110 T230 M6
N112 G0 G90 X.9688 Y0. A0. S8556 M3
N114 G43 H0 Z.25
N116 Z.1
N118 G1 Z-.1 F6.16
N120 G3 X-.9688 R.9688
N122 X.9688 R.9688
N124 G1 Z0.
N126 G0 Z.25
N128 M5
N130 G91 G28 Z0.
N132 G28 X0. Y0. A0.
N134 M30
%
Reply With Quote

Reply

Tags
master cam x mach 3




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
gcode error problems dek Machinist Feedback 3 03-13-2010 10:37 AM
Need Help!- Help with exporting to dxf CJdave Solidworks 4 04-20-2009 10:22 AM
Need Help!- Problems exporting Corel text files as DXF CustomConcepts Printing, Scanners, Vinyl cutting and Plotters 3 10-21-2008 01:24 PM
SketchUp exporting as DXF then ACE to Gcode IQChallenged G-Code Programing 14 09-18-2007 12:47 PM
Radius problems when generating gcode from bobcad for mach3... ? scyan BobCad-Cam 7 12-14-2006 12:33 PM




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