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 11-07-2006, 11:47 PM
Konstantin's Avatar  
Join Date: Feb 2004
Location: Mexico
Posts: 465
Konstantin is on a distinguished road
Trying to interpolate X and A axis.

Hello everybody.
I have been playing with my 4 axis router and was able to route an octagonal stick. Now I want to cut the octagonal stick helix“ed 0.125 turns or 45 deg.
My stock piece of wood is a cylinder 10.5 mm dia, 20mm long.
I have tried something like

X0 Y0 A0
G02 X20 A45 R5.25

And X and A was moving but Y was moving as well.

Is G02/03 appropriate for the job I intend to cut?

My A axis in on X.
Thanks for any advice.
Konstantin.
Reply With Quote

  #2   Ban this user!
Old 11-08-2006, 08:19 AM
 
Join Date: Jun 2006
Location: USA
Age: 46
Posts: 478
ajl6549 is on a distinguished road

Try using G1 instead of G2. Use the appropriate feed and start/stop points on X and A axis
__________________
A.J.L.
Reply With Quote

  #3  
Old 11-08-2006, 08:30 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

What kind of controller (software) are you using?

What mode (G90 absolute, or G91 incremental) are you running your program in?

I would think you want to index the A axis all by itself with a command on a line by itself:
G00 A45.

G02/G03 is likely confusing the controller as it is not possible to coordinate a circular interpolation move between X and A. By default, XY is the default plane (G17) for circular interpolation in most controllers, unless you change it deliberately with a G18 or a G19 which, I would think, is not your intention in this case.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(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 11-08-2006, 08:47 AM
Konstantin's Avatar  
Join Date: Feb 2004
Location: Mexico
Posts: 465
Konstantin is on a distinguished road

Yes, linear interpolation seems the right choice. I am using Mach3.
One thing is unclear to me, if I go from X0Y0A0 and G01X20A45 will the X and A stop moving at the end point? Is there any chance that one axis will finish sooner than the other?

Also, is it possible to use incremental G91 mode only on one of the axis? For example I want to use incremental on A axis only while going absolute coordinates on XYZ.
Konstantin.

Last edited by Konstantin; 11-08-2006 at 09:38 AM.
Reply With Quote

  #5  
Old 11-08-2006, 09:02 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,660
Switcher is on a distinguished road

I'm thinking something like this:

______________________________________________________________________________________________________

%
(Code to send to start of workpiece)
G91
G01 X20 A360 F10

(code to bring X-axis back to zero/start position, rotate A-axis another 45deg. repeat above code, 3 times)
(Send Home)
M30
%
______________________________________________________________________________________________________














.
Reply With Quote

Sponsored Links
  #6  
Old 11-08-2006, 09:07 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,660
Switcher is on a distinguished road

The X & A axis should stop at the same time.
If they are on the same line.


.
Reply With Quote

  #7   Ban this user!
Old 11-08-2006, 09:40 AM
 
Join Date: Jun 2006
Location: USA
Age: 46
Posts: 478
ajl6549 is on a distinguished road

Originally Posted by Konstantin View Post
Yes, linear interpolation seems the right choice. I am using Mach3.
One thing is unclear to me, if I go from X0Y0A0 and G01X20A45 will the X and A stop moving at the end point? Is there any chance that one axis will finish sooner than the other?
The axis will/should stop at the same time (at A20 A45). Try running it with the tool above the work to avoid scraping the work piece
__________________
A.J.L.
Reply With Quote

  #8   Ban this user!
Old 11-08-2006, 11:09 AM
Konstantin's Avatar  
Join Date: Feb 2004
Location: Mexico
Posts: 465
Konstantin is on a distinguished road

Thanks for the help.
I wrote a little program to do it and ran it and here is the result.
I wanted to go with incremental positioning for the A axis while keeping XYZ in abs (don't know if its at all possible or practical), but decided to go absolute and later will experiment with incremental.

Code:
;Cutting an octagon rotated 45 degrees



;Position at the workpiece with safe hight
G1X0Y0Z1A0
M3
F160



;---------------------------XY iteration #1  0 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A45 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A0  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A45 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A0  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A45 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 


;---------------------------XY iteration #2  45 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A90 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A45  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A90 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A45  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A90 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 

;---------------------------XY iteration #3  90 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A135 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A90  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A135 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A90  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A135 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 

;---------------------------XY iteration #4  135 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A180 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A135  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A180 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A135  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A180 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 

;---------------------------XY iteration #5  180 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A225 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A180  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A225 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A180  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A225 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 

;---------------------------XY iteration #6  225 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A270 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A225  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A270 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A225  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A270 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 

;---------------------------XY iteration #7  270 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A315 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A270  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A315 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A270  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A315 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 

;---------------------------XY iteration #8  315 deg
G1 Z-0.35 ;plunge
G1 X0 Y-1.45
G1 X29 A360 ;first pass
G0 Z1        ;save Z

G0 X0 Y0 A315  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A360 ;second pass
G0 Z1        ;save Z

G0 X0 Y1.45 A315  ;next point 
G1 Z-0.35 ;plunge
G1 X29 A360 ;third pass
G0 Z1        ;save Z
G0 X0 Y-1.45 ;Return to the workpiece start
;-------------------------END 


G0 Z1
G0 X0 Y0 
M5
Attached Thumbnails
Click image for larger version

Name:	Octagon 45 button.JPG‎
Views:	68
Size:	73.6 KB
ID:	25346  
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 08: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