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 03-12-2009, 10:26 AM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road
G19 with I J K questions

Trying to test out a machine to figure out whats going on with it. Wont machine a radius around a half circle. Machine goes crazy.

When it gets to line N202 the machine says G02 error and when it gets to line N214 says G03 error

Do these lines of code look correct??

(ARC XZ I J K G02)
N198 G01 X0.0 Y-1.0 Z0.0 F6.5
N202 G19 G02 X0 Y1.0 I-1.0 J0.0
N206 G00 X0.0 Y0.0 M00

(ARC XZ I J K G03)
N210 G01 X0 Y-1.0 Z0.0 F6.5
N214 G19 G03 X0.0 Y1.0 I-1.0 J0.0
N218 G00 X0.0 Y0.0 M00

Thanks
Reply With Quote

  #2   Ban this user!
Old 03-12-2009, 10:41 AM
 
Join Date: Jan 2009
Location: USA
Posts: 16
vwilmot is on a distinguished road

Are you using a Right Angle Head? If so, which direction is it pointed, left or right? May be as simple as making your G2's a G3 and G3's a G2.
Reply With Quote

  #3  
Old 03-12-2009, 10:56 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by mgb1974 View Post
Trying to test out a machine to figure out whats going on with it. Wont machine a radius around a half circle. Machine goes crazy.

When it gets to line N202 the machine says G02 error and when it gets to line N214 says G03 error

Do these lines of code look correct??

(ARC XZ I J K G02)
N198 G01 X0.0 Y-1.0 Z0.0 F6.5
N202 G19 G02 X0 Y1.0 I-1.0 J0.0
N206 G00 X0.0 Y0.0 M00

(ARC XZ I J K G03)
N210 G01 X0 Y-1.0 Z0.0 F6.5
N214 G19 G03 X0.0 Y1.0 I-1.0 J0.0
N218 G00 X0.0 Y0.0 M00

Thanks
If I remember correctly (it has been a while) but G18 and G19 Plane Designations are for Cutter Compensation Direction Designation. In other words you do not need to call them if your not using any Cutter Comp.

Program it straight like this. (LEFT SIDE 90 DEGREE HEAD)

G90G0X1.Y-1
G1Z-1.F30.
X.5F15.
Y-.5
Z-.5
Y-1.5
Z-1.
Y-1.
X1.

BTW: I do not believe that the Axis Designations Change when using G18/G19 so that is why your machine is going nuts.

It is a CNC not a CAD program so the Axis Designations will be applied to the Type of head your using.

__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
Reply With Quote

  #4   Ban this user!
Old 03-12-2009, 10:57 AM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

This is from my Maho manual, which supports all 3 systems.

G17
Circle end point X and Y
Tool Axis Z
Circle center I and J
Pitch of helix if needed K

G18
Circle end point X and Z
Tool Axis Y
Circle center I and K
Pitch of helix if needed J

G19
Circle end point Y and Z
Tool Axis X
Circle center J and K
Pitch of helix if needed I

It appears that you are using the wrong end point words as well as circle center words with your G19 system.

Edit--

I just ran the program below on our Haas Simulator and it shows the axis movements on the DRO.
I switched to G19 for the one line and then back to G17.
On a Haas control the I-J-K is "The distance and + / - direction from the start of the arc to the center of rotation" In this case you would use J1. since you start at Y-1. and the center is Y0. and K0 since you start at Z0. and the center as Z0. The I word would be used only if you were doing a helix move in X axis. When I ran this line N203 using G02 started at Y-1. Z0. and went up to Y0. and Z1. and back down to Y1. Z0. Line N214 using G03 started at Y-1. Z0. and went down to Y0. and Z-1. and back up to Y1. Z0.



%
O01000 (HAAS VF-3YT VERTICAL)
N30 G17 G54 G90
N50 T1 M06
N60 G90 G00 X0. Y-1.
N80 G01 Z0.125 F50. M08
(ARC XZ I J K G02)
(Should be ARC YZ J K G02)
N198 G01 X0. Y-1. Z0. F10.
N202 G19 G02 Y1. Z0. J1. K0. F10.
N206 G17 G00 X0. Y0. M00
(ARC XZ I J K G03)
(Should be ARC YZ J K G03)
N210 G01 X0 Y-1. Z0. F6.5
N214 G19 G03 Y1. Z0. J1. K0. F10.
N218 G17 G00 X0. Y0. M00
N90 G53 G00 Z0. M09
N100 G53 G00 X0. Y0. A0.
N140 M30 (END OF MAIN PROGRAM)
%

Last edited by JWK42; 03-12-2009 at 12:41 PM. Reason: Added example
Reply With Quote

  #5   Ban this user!
Old 03-12-2009, 11:13 AM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

Some machines don't allow arcs in anything but G17 (XY plane) The old Cincinatti 850SX was one of them.

ALL machines require a plane change for arcs in different planes! Cutter comp is not a factor in this case, although if you have to use comp in other planes, the WHOLE contour has to be prefaced by a plane change, before turning comp on.

Also, in both comp and circle generation, the geometry has to be visualized from the +X, +Y, +Z quadrant. In G19, the G02 arc will look clockwise from the right side of a VMC, and look counter-clockwise from the left side.

I, J and K are all arc center designations, I relates always to X, J relates to Y, and K relates to Z. So... an arc in the YZ plane (G19) is going to have a Y component, a Z, a J and K center point, or you could cheat by using an R instead.

Hope this helps!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-12-2009, 02:13 PM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road

thanks guys for all the help. I think I have it figured out now just have to try it on the machine.
Reply With Quote

  #7  
Old 03-12-2009, 02:22 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Don't forget to post your results.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
Reply With Quote

  #8   Ban this user!
Old 03-19-2009, 06:39 AM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road

That fixed the problem with the G19 thanks guys again!!!
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
CNC mill questions - thrust bearings, leadscrew mounting, general questions tonofsteel DIY-CNC Router Table Machines 8 02-03-2012 03:42 PM
Brass vs Aluminium Vs Steel, questions, questions and questions... alexccmeister General Metal Working Machines 25 08-15-2011 12:40 PM
LB-15 questions NJC Okuma 13 11-04-2008 08:52 PM
Some questions about the X2 (CNC) The Blight Benchtop Machines 0 02-22-2007 01:10 PM
Some CAD/CAM questions... new to CNC Cool625 General CAM Discussion 25 02-06-2006 08:19 AM




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