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 05-30-2007, 09:29 AM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 493
Robin Hewitt is on a distinguished road
This is tortuous

Still trying to figure out how to interpret these G codes from G-Simple.

In the picture are 3 consecutive G03 arcs, the yellow lines show the tool path.

If I read it right...

N1229 spirals down in to the round bearing cutout at the bottom giving a smooth entry to the cut.
(His animation doesn't show the z shift so the lines don't join up).
N1230 finishes the face.
N1231 is a smooth exit back to center.

Without the EIA definition for RS247D g codes, this suggests that x,y and z stay the same if omitted, while I### overrides a previous R###.

I'll have to rewrite my arc cutting routine to include a shift in z. I'm nearly there but it ain't easy
Attached Thumbnails
Click image for larger version

Name:	bug.jpg‎
Views:	93
Size:	128.5 KB
ID:	38183  
Reply With Quote

  #2  
Old 05-30-2007, 10:17 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

Looks like:
1228 - plunges down to Z-17.5
1229 - ramps down while doing a 1/2 circle to Z-25.4 from the center of the hole
1230 - does complete circle.
1231 - half circle back to center of hole
1232 - retract tool to Z 10
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3  
Old 05-30-2007, 10:38 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Robin Hewitt View Post
this suggests that x,y and z stay the same if omitted, while I### overrides a previous R###.
Yes, correct.

No idea why he's mixing R arcs with IJ arcs, although it appears that he's using IJ to do full circles. I prefer to use IJ only.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #4   Ban this user!
Old 05-30-2007, 01:12 PM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 493
Robin Hewitt is on a distinguished road

Originally Posted by ger21 View Post
Yes, correct.
Code re-written

G-Simple looks to be okay. The only bit I found really annoying was that the materials a tool can cut are defined by name, eg: carbon steel, but the material you are cutting is defined by number, eg: ST-14 which means zip nada to me. It would be nice if I could substitute EN numbers or just escape having to match tool to material altogether and set my own feed rates, but at this price I can't complain.

Couple more days work and I should have it cutting metal.

Thanks for the help, I was thinking his I### indicated a 360 degree cut, rather than when x, y (and possibly z) stay the same. Seems to be working now, I've put in a squeaker that will go off if it ever finds a J###.

Sure is easier to locate the arc center with that I###
Reply With Quote

  #5   Ban this user!
Old 05-30-2007, 02:32 PM
 
Join Date: Feb 2007
Location: Greece
Posts: 41
S.Kontogiannis is on a distinguished road

A note about GSimple and materials:

There is a file in GSimple called material.dat. It is an ascii (plain text) file. You can edit it with notepad or any other text editor. This is the file that assosiates Material Names with the Material Gropus/Subgroups. For example the line about CK45 reads:

CK45 1.3

indicating that CK45 belongs to group/subgroup 1.3

You can edit this file, and make it as you wish. For example you could just write:

Group_1.1 1.1
Group_1.2 1.2 etc

The only material you should not delete is ST37-2 (this is the default material).

By the way, Groups and Subgroups are alse not fixed. They are defined in the file amg.dat (also a plain text file). You can change them too, if you like.
Reply With Quote

Sponsored Links
  #6  
Old 05-30-2007, 07:18 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Robin Hewitt View Post
Thanks for the help, I was thinking his I### indicated a 360 degree cut, rather than when x, y (and possibly z) stay the same. Seems to be working now, I've put in a squeaker that will go off if it ever finds a J###.

Sure is easier to locate the arc center with that I###
You need the J as well, unless it hasn't changed from the previous move, which was the case in your example.

I = the X coordinate of the center
J = the Y coordinate of the center

They can be either absolute postions, or relative to the tool position at the start of the arc, which is what you're example used I believe.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #7   Ban this user!
Old 05-30-2007, 10:47 PM
fizzissist's Avatar  
Join Date: Apr 2006
Location: USA
Posts: 2,364
fizzissist is on a distinguished road

Don't know if this will help or just slow things down...and I don't know if the difference between the RS247D and RS274N standards is program/computer/controller problem for your system....but here is a couple of links anyway!

http://www.isd.mel.nist.gov/personne...4NGC_3TOC.html

http://www.linuxcnc.org/handbook/gcode/g-code.html

Me? I prefer using I and J, since I know (at least on my controllers) that since they're incremental from the start point, I can easily find the center, or know where the center is supposed to be.
Reply With Quote

  #8   Ban this user!
Old 05-31-2007, 03:12 AM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 493
Robin Hewitt is on a distinguished road

Originally Posted by S.Kontogiannis View Post
A note about GSimple
Thanks for that and thanks for the software

I'll do the materials later, today I'm writing the tool locator...

Question: I want to convert the g-codes to robin format and tack in the original shape from the dxf (makes for more interesting graphics). Can I replace the CopyTo program with my own?

I tried...

TRANSFER "c:\Program Files\Gsimple\CopyTo a g.cnc"

and got an error...

Usage: CopyTo <drive> <file>

In reply to Ger21...

Can't do J unless it throws one up so I know which way to leap

Obviously I still have a lot to learn. Think I'll start by cutting MDF rather than metal for the testing.

best regards

Robin
Reply With Quote

  #9   Ban this user!
Old 05-31-2007, 10:31 AM
 
Join Date: Feb 2007
Location: Greece
Posts: 41
S.Kontogiannis is on a distinguished road
GSimple transfer program

Question: I want to convert the g-codes to robin format and tack in the original shape from the dxf (makes for more interesting graphics). Can I replace the CopyTo program with my own?

Answer: Yes, you can. Just replace the CopyTo.exe reference in the configuration file with a reference to your program. For example, lets say you make a program which transfers the code via RS232 to the milling machine and the program is called MyTransfer.exe. The program must be able to get the filename to be transfered as argument.

From the dos prompt you would type

c:> MyTransfer g.cnc

and MyTransfer would transfer the file g.cnc to the milling machine

The line

TRANSFER "c:\MyTransfer"

in the configuration file will do just that. Whenever you press the transfer button ot will call MyTransfer.exe with argument the gcode file.
Reply With Quote

  #10   Ban this user!
Old 06-02-2007, 07:39 PM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 493
Robin Hewitt is on a distinguished road

Hi SK

I nearly tried it out today, sadly the PC next to the mill overdosing on oil, swarf and soot turned it's toes up.

I was given a PC recovered from a skip but it didn't have the speed. All the movements were there and it did the straight lines okay, but couldn't hack 1024x768 graphics and cut curves at the same time. The steppers became very jittery and unhappy when driving 2 axes.

I'll disable the part that draws the cutter and try again tomorrow

best regards

Robin
Reply With Quote

Sponsored Links
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 08:22 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