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! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-22-2008, 06:51 PM
 
Join Date: May 2005
Location: Australia
Age: 40
Posts: 17
Dazza is on a distinguished road
g-code inch to mm ????

Hi guys,

I've just got my first very basic mill set up and I'm struggling with the basics but making progress, I'm really keen on trying to mill a 3-D image, I found a few great 3-D g-code files that some generous members have posted, but I'm finding that they are either too large for my mill or they are in inches.

Is there a simple way to convert g-code inches to mm.

Any help is greatly appreciated,

Darren.
Reply With Quote

  #2   Ban this user!
Old 06-22-2008, 07:09 PM
rando's Avatar  
Join Date: May 2008
Location: usa
Posts: 147
rando is on a distinguished road

change g90 to g91 or vice versa...Ithink
Reply With Quote

  #3   Ban this user!
Old 06-22-2008, 07:19 PM
jalessi's Avatar  
Join Date: Feb 2007
Location: U.S.A.
Posts: 3,155
jalessi is on a distinguished road
Talking G code converter

http://tinyurl.com/3omytt
Reply With Quote

  #4   Ban this user!
Old 06-22-2008, 10:30 PM
 
Join Date: May 2005
Location: Australia
Age: 40
Posts: 17
Dazza is on a distinguished road
Thumbs up

Hi, rando, ,jalessi and thank you for your reply,

rando, I was thinking that maybe the G90 G91 had something to do with it, I guess this is my beginning of learning g-code.

,jalessi, your a champion, exactly what I needed and it also resizes as well, I just milled out a small 3-D image of a horse's head, turned out better than I expected.

Thanks again I appreciate the help.

Darren.
Reply With Quote

  #5   Ban this user!
Old 06-22-2008, 10:37 PM
jalessi's Avatar  
Join Date: Feb 2007
Location: U.S.A.
Posts: 3,155
jalessi is on a distinguished road
Thumbs up Cant take the credit

Darren,

Happy to be able to point you in the right direction however I cant take the credit.

The software was provided by Graham Waterworth, he is a administrator on the
Mach2/3/4 Forum

Welcome to the Zone and have a most awesome day!

Jeff Alessi
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-22-2008, 10:58 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,040
Kiwi is on a distinguished road

G90 = Absolute: G91 = Increment

Could try G51 = Scale
G51 Ix Jy Kz P25.4 (x y z scaling center)
G50 to cancel

Check before machining.
Reply With Quote

  #7   Ban this user!
Old 06-23-2008, 07:30 AM
 
Join Date: Mar 2006
Location: United States
Age: 32
Posts: 153
chrisryn is on a distinguished road

convert all you measurments to mm by hand, and then put G21 in your code and remove any G20's.


G20= Inch mode
G21=Metric mode
__________________
No matter how good you are, there is always someone better!!!
Reply With Quote

  #8   Ban this user!
Old 06-23-2008, 09:01 AM
 
Join Date: May 2008
Location: USA
Posts: 16
Vega Bill is on a distinguished road

Hi all,

Vega DATA-View has independant axis scaling and a fully functional demo is available
at www.vegacnc.com Look on the downloads tab for DATA-View demo

Enjoy!
Reply With Quote

  #9   Ban this user!
Old 09-16-2008, 02:18 PM
 
Join Date: Mar 2008
Location: USA
Posts: 2
caos4130 is on a distinguished road

Originally Posted by Kiwi View Post
G90 = Absolute: G91 = Increment

Could try G51 = Scale
G51 Ix Jy Kz P25.4 (x y z scaling center)
G50 to cancel

Check before machining.
how you use this to put the locations,for ex G0 x4.5 y.750 z-2.5?
Reply With Quote

  #10   Ban this user!
Old 09-17-2008, 09:29 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

G90 and G91 are absolute and incremental moves and have nothing to do with inch or metric. G20 and G21 are for switching from inch to metric. Some machines use G70 and G71.

If you do not understand the conversions and how they work the link that Jalessi has posted works good.

Chrisryn is correct with what you have to do if you are doing it by hand.

When you program a G21 your machine it switches to metric. This will do work cordinates, variables, tooloffsets. This will not change your programs. If your program reads G0X20. in G21 mode it will move 21mm in G20 mode it will move 20". That is why you have to recalculate ALL of your numbers in your programs. If you want 20" and you switch to G21(metric) then you must change the 20" to 508. G0X508.

I highly suggest to adopt 1 style of programming inch or metric and stay with that. I prefer metric. Your style should depend on your drawing style. That way there are no conversions that need to be done.

Stevo
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-17-2008, 10:58 AM
 
Join Date: Sep 2008
Location: Singapore
Posts: 2
matchbc is on a distinguished road

Try use CImco V5, It can mutiple or divide the value you want (25.4) for X, Y , Z Coordinates accordingly for your Program.
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
steps per inch Chris Tucker Linear and Rotary Motion 12 08-14-2008 07:50 AM
cnc cut 1 inch alum? Todd W General Metalwork Discussion 4 04-29-2008 07:40 AM
Converting a inch g code program to metric joseavina76 G-Code Programing 3 12-19-2007 09:26 PM
I don't know if they got the mm to inch mixed up..... spunky1974 General Metal Working Machines 3 11-23-2006 09:04 AM
turns per inch vs threads per inch pminmo DIY-CNC Router Table Machines 12 08-18-2004 09:27 AM




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