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-17-2004, 11:31 PM
 
Join Date: May 2004
Location: United States
Posts: 4
mudwhump is on a distinguished road
Problem cutting arc with lathe.

I'm having a problem cutting a simple arc on a lathe (HF 9X20
converted to CNC). First some info. Running Mach2 version 4 on a
1Ghz computer. I use this same set up on my mill with no problems. I have some switches on the step driver (Xylotex) so I can switch between mill motors, and lathe motors, and also disable the Y axis. I wrote a simple program to cut a ball end on the end of a piece of .500" stock.

G01 X0 Z0 F5
G02 X0.5 Z-0.25 I0. K-0.25 F5

There seems to be a conflict with the fact that the machine is in
dia. mode. When this program is run, the tool makes a Z positive
move from Z0 and then swings around to attempt to cut the arc. If I change the Z-0.25 to Z-0.50 and the K to K-0.50 it cuts a .25"
radius the way I would expect it to with the first program. Is there something I'm missing here?
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 05-21-2004, 06:51 PM
M@T M@T is offline
 
Join Date: Oct 2003
Location: England
Posts: 38
M@T is on a distinguished road

Is there something I'm missing here?
Yeah, a Fanuc control system

Seriously though, I dont think the problem is being in diameter mode coz radii values are the same in both modes I think.
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 05-21-2004, 07:52 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

One possibility that might be worth checking is your choice of disabled axis. Most retrofit cnc lathes will use a mill's X and Y motors, but transposes the names to Z and X respectively. I am not saying this is the case here, but perhaps there is special logic written in your cnc that expects the "Y axis" to be the lathe X axis, and this might be the only axis that can handle the diameter logic correctly? Just a guess.
__________________
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)
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 05-22-2004, 09:32 AM
M@T M@T is offline
 
Join Date: Oct 2003
Location: England
Posts: 38
M@T is on a distinguished road

And to put a ball end on wouldnt you be using a G03 ??
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 05-22-2004, 02:46 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 269
imserv is on a distinguished road

Have you called out the Z-X arc plane, G18 for a lathe arc?

Fred Smith - IMService
http://www.cadcamcadcam.com
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-22-2004, 07:09 PM
 
Join Date: May 2004
Location: United States
Posts: 4
mudwhump is on a distinguished road

Thanks for the inputs. This problem has got me banging my head on my desk. I wish I could afford a Fanuc control, and a better machine to put it on for that matter. As for the Z and Y axis being transposed, I don't think this is the case. I'm using Mach2 turn. When you set up your motors you tell it the step and dir pins from the parallel connection. I have done this and disabled the Y axis. The X and Z axis are behaving well in every respect except in arc movements. Mach2 turn is in G18. This is set in a screen called state where you set the active plane (X Z in this case). Mach2 turn also has an option where you can set arc movements in absolute or incremental. I have tried both of these with the same results. I tried posting this question in the Mach1 Mach2 message group on Yahoo, but got no answers at all. I was curious if anyone else has seen this problem using the Mach2 controller software.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 05-22-2004, 07:48 PM
 
Join Date: Jun 2003
Posts: 1,984
turmite is on a distinguished road

mudwhump I use Mach2 but have never used the lathe. Are you saying you are using the mill program as your lathe program? Don't get mad cause sometimes it is the simple things. Just so you know I understand simple! Have you done configs for both programs?

Mike

mudwhump?? you from the south?
__________________
No greater love can a man have than this, that he give his life for a friend.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 05-22-2004, 08:27 PM
 
Join Date: May 2004
Location: United States
Posts: 4
mudwhump is on a distinguished road

turmite,

I'm using Mach2 turn which is the lathe program. Each program (mill and lathe) have their own config files. I'm using Mach2 mill to run my mill with no problems whatsoever. It seems to me that the mill program is supported much more, mainly because there doesn't seem to be alot of people out there who have converted their lathes.

I'm from southern Cal now living in northern Cal.

Thanks
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 05-22-2004, 08:57 PM
 
Join Date: Jun 2003
Posts: 1,984
turmite is on a distinguished road

I figured you were using turn but I just wanted to encourage you to look for something simple. I had a problem early on with my router that I have Mach2 on and low and behold it was a simple little matter of me changing my z upper limit bracket and had not looked for any kind of interference. I found it.

Souther Cal huh, I knew you had to be form some part of the "south"!

Mike
__________________
No greater love can a man have than this, that he give his life for a friend.
Tweet this Post!Share on Facebook
Reply With Quote

  #10  
Old 05-23-2004, 01:19 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Does Mach2 Turn make the proper response to normal X diameter commands? A movement from X0 to X.5 should be 1/4 inch on the cross slide.

It is possible to "fool" even mill software by fudging the scaling factor on the X axis, for the purpose of obtaining linear diametral movements. However, this trick will not work with arc movements, because the Z amount is never scaled, whereas the X is. Therefore, the arc center will never be correct unless you command all arcs with radial values. In real cnc's, "U" is a radial movement command in the X axis.

So you need to "tell the truth" in your controller setup about how many steps it takes to move a radial inch.

You might play around with your code and see if you can make it work, knowing what I have told you. If you are using a cadcam program to write programs, you can often switch off the option for diameter output. All X moves must be radial amounts for this experiment.

If you determine that this is the problem, then send in a bug report to Mach2. I am sure it is a problem that is easily fixed.
__________________
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)

Last edited by HuFlungDung; 05-23-2004 at 02:18 PM.
Tweet this Post!Share on Facebook
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having trouble cutting aluminum sheet fastturbovet General Metalwork Discussion 40 06-14-2005 11:33 PM
using vmc as a lathe ddwinn General CNC (Mill and Lathe) Control Software (NC) 7 04-25-2005 08:48 AM
OneCNC XR Series Lathe CAD/CAM Released: OneCNC Product Announcements & Manufacturer News 0 03-07-2005 05:20 PM
CNC Lathe Cutting Small Threads jbhill Machine Problems, Solutions , Wireless DNC, serial port 5 02-19-2005 09:53 AM
seeking thread cutting cncmini lathe july_favre General Metal Working Machines 0 03-08-2004 04:19 PM




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