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! > CAM Software > OneCNC


OneCNC Discuss OneCNC software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-15-2004, 08:50 PM
 
Join Date: Aug 2004
Posts: 20
corpse is on a distinguished road
problem with a simple pocket

I'm learning how to use some stuff in OneCNC 2000 pro, and some simple pocketing is causing me great grief. I'm drawing a circle in a circle, 2" dia and .5" dia, both centered at x2y2.

I create the pocket, plunge only with climb milling, .375" end mill, 0 offsets (as my My T Mill cnc software for my sherline mill doesnt support it)...
rapid Z plane .15, plunge clearance .11 (still not sure what this is for anyways), material z = 0, final z depth = .5". roughing not enabled, .2 step over 0" leave for finish.

When it creates the code, it seems to create some pretty crazy stuff.. the toolpath appears to be ok in onecnc, but the code is not jiving in the tiniest bit with my My T Mill s/w, when I read the code as normal is seems to be creating a crummy toolpath.. Below is the code is creates..

Code:
N10 X1.3125 Y2. Z0.15 
N20 Z0.11 
N30 G01 Z-0.5 F6
N40 G02 X2.6875 Y2. I0.6875 J0. F12
N50 G01 X2.8875 
N60 X3.0875 
N70 G02 X0.9125 Y2. I-1.0875 J0. 
N80 X3.0875 Y2. I1.0875 J0. 
N90 G01 X2.8875 
N100 G02 X1.1125 Y2. I-0.8875 J0. 
N110 X2.8875 Y2. I0.8875 J0. 
N120 G01 X2.6875 
N130 G02 X1.3125 Y2. I-0.6875 J0. 
N140 G01 Z0.11 F6
N150 G00 Z0.15 
N160 X3.8125 
N170 Z0.11 
N180 G01 Z-0.5 
N190 X3.6125 F12
N200 X3.4125 
N210 G03 X0.5875 Y2. I-1.4125 J0. 
N220 X3.4125 Y2. I1.4125 J0. 
N230 G01 X3.6125 
N240 G03 X0.3875 Y2. I-1.6125 J0. 
N250 X3.6125 Y2. I1.6125 J0. 
N260 G01 X3.8125 
N270 G03 X0.1875 Y2. I-1.8125 J0. 
N280 X3.8125 Y2. I1.8125 J0. 
N290 G01 Z0.11 F6
N300 G00 Z0.15
edit:
oh yeah, in my nc post output settings...
I'm using absolute coordinate with Incremental I J for G2/G3 circular, full circular movement. My MY T Mill software uses the Incremental I J codes, as per an example from them:
Example
G2 X-1.535 Y0.469 I0.500 J0.000
Description
Move in a clockwise arc from the current position to location (-1.535, 0.469) using a center point located 0.5 units in the X direction from the current position.
But the problem with the above OneCNC code (the first big code snippet), is that it doesn't seem to properly factor in the starting positioin when doing the circular motion, so its result is creating mostly half circles.

Last edited by corpse; 11-15-2004 at 09:05 PM.
Reply With Quote

  #2  
Old 11-15-2004, 09:24 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

If you don't define your coordinate system in your gcode program, your control may not be interpreting it correctly. You should always tell the cnc whether you are working in G90 (absolute mode) or G91 incremental mode. This should be near or at the beginning of your program.

Most cnc's will have a default if this distinction is not defined, and the default may be to the last used mode (because these two gcodes are modal or permanent in effect until power off), or else, the control may default to either G90 or G91 when powered up.
__________________
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

  #3   Ban this user!
Old 11-15-2004, 09:28 PM
 
Join Date: Apr 2003
Location: usa
Posts: 242
kdoney is on a distinguished road

Not much help here. It looks good in Mach2.
Kevin
Reply With Quote

  #4   Ban this user!
Old 11-15-2004, 09:36 PM
 
Join Date: Aug 2004
Posts: 20
corpse is on a distinguished road

its definitely in absolute mode for basic xyz coordinates, and the ij coordinates are relative.

What I noticed is wrong with the onecnc code, which is why I'm posting here, is that in this code:
Code:
N10 X1.3125 Y2. Z0.15 
N20 Z0.11 
N30 G01 Z-0.5 F6
N40 G02 X2.6875 Y2. I0.6875 J0.
In onecnc, this is supposed to make a circle, but instead it starts at the 9 oclock position (x2y2 is the center of the circle), and finishes the circle at 3 oclock (moving clockwise) The onecnc code seems like it should be doing:
Code:
N40 G02 X1.3125 Y2. I0.6875 J0.
And this creates a complete circle.

And based on the reading I've done with the g-codes, onecnc's code seems to be outputting wrong.. please explain..

In OneCNC, I'm using the default.cfg file.. The g-codes I have to use are shown on this page http://www.acumotion.com/gcode.shtml, this is the controller setup I'm using for my sherline mill.
Reply With Quote

  #5  
Old 11-15-2004, 09:48 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Where is the G90 or G91 defined in your program? Its not only the settings in the post that have to be correct to match your controller, but your controller also has to read a G90. If it is in incremental mode, you'll get a series of non-concentric half-circles.

In some instances, the cnc controllers cannot perform complete circles properly. In this case, you should set up your onecnc post to output 1/4 arcs maximum per movement. This will take 4 lines to move around a complete circle, but will eliminate all chance of ambiguity.

Did you know also that you can get a free update to OneCNC 2003? You should contact OneCNC for the link.

Note: I backplotted your code and it is okay, so it is most likely the lack of reading a G90 instruction that has your controller off track.
__________________
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

Sponsored Links
  #6   Ban this user!
Old 11-16-2004, 06:55 AM
 
Join Date: Aug 2004
Posts: 20
corpse is on a distinguished road

My stuff defaults to G90, so that is why I didn't have it in my code. I put it in the first line and it made no difference. When I put on G91, then it draws the circles like a chain-link, so that just confirms G90 is default.

And like I mentioned, the circle commands works if the starting point is on the same xy point as reference in the circle.. the onecnc code is placing the xy of the circle (xy to draw the circle to) at 180* of the starting point. If I change the code to simply make the xy of the circle command be equal to the current xy, it works fine and draws a complete circle.
Reply With Quote

  #7  
Old 11-16-2004, 09:15 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I drew your pocket (which is centered at X1.75 Y2. ) and generated the following code with quarter circle maximum arc output:
N10 G00 X1.3125 Y2. Z0.15
N20 G00 Z0.11
N30 G01 Z-0.5 F6
N40 G02 X1.75 Y2.4375 I0.4375 J0. F12
N50 G02 X2.1875 Y2. I0. J-0.4375
N60 G02 X1.75 Y1.5625 I-0.4375 J0.
N70 G02 X1.3125 Y2. I0. J0.4375
N80 G00 Z0.15
N90 G00 X2.5625
N100 G00 Z0.11
N110 G01 Z-0.5 F6
N120 G03 X1.75 Y2.8125 I-0.8125 J0. F12
N130 G03 X0.9375 Y2. I0. J-0.8125
N140 G03 X1.75 Y1.1875 I0.8125 J0.
N150 G03 X2.5625 Y2. I0. J0.8125
N160 G00 Z0.15

So, from looking at the jumble in your code sample, I would say that your drawing must have at least one duplicate entity. This causes the tool to jump around as it attempts to machine every visible entity. Try checking your drawing, to make sure it is free of duplicate entities.
__________________
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

  #8   Ban this user!
Old 11-16-2004, 02:49 PM
OneCNC's Avatar  
Join Date: Mar 2003
Location: United States
Posts: 70
OneCNC is on a distinguished road
Perfect Pocket in Mill Professional

I have created two screen shots that displays your posted toolpaths on your PC based controller software. The problem is the post settings, it has nothng to do with G90 or G91. The issue is your controller requires an active G Code on everyline. This can be changed by unselecting G-Codes as Modal in NCSetup > General Settings:

Provided Sample:
N50 G01 X2.8875
N60 X3.0875
N70 G02 X0.9125 Y2. I-1.0875 J0.
N80 X3.0875 Y2. I1.0875 J0.

Should be:
N50 G01 X2.8875
N60 G01 X3.0875
N70 G02 X0.9125 Y2. I-1.0875 J0.
N80 G02 X3.0875 Y2. I1.0875 J0.

There is a Free Update to 2003 Mill Professional for all 2000 Series users: Please contact us for that update at (877) 626-1262

The image below is what appears on your controller screen based on your posted G code, the lower image is with the code edited to reflect Non Modal G -Codes:

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

  #9   Ban this user!
Old 11-16-2004, 07:55 PM
 
Join Date: Aug 2004
Posts: 20
corpse is on a distinguished road

Thanks a bunch onecnc - that was the fix..

I'll let my buddy know about the updates, hopefully he'll get it updated soon - I'm learning on his machine until I can figure out how to use all this stuff

huflungdung - thanks a million for your time on this, very appreciated!
Reply With Quote

  #10   Ban this user!
Old 12-01-2004, 12:50 AM
 
Join Date: Oct 2004
Location: usa
Posts: 107
Kmed is on a distinguished road

I know my machine will not do arcs above 359.9999xxxx degrees. In my post (not one cnc) I have a setting for arcs less than 180 and have to have this enabled. Now some machines use absolute positions with incremental IJ positions, some are incremental-incremental, and still others are absolute-absolute. I am not familiar wiht your control but this may be the problem. I dont know about all controls, but I have never seen one that required a G91 for incremental arcs. as Hu suggested, (normally embedded in the PLC). But I guess it could be a problem as he mentioned at the beginning of the program you do not have a G90, as some machine plcs ar notorious for leaving modal commands active even if the program is changed and they are not reset. (I know my Bostomatic does this when executing a new program. I dont have a G00 available so I have to use a G01 with a feedrate. This took some time to correct in the post without having to tag each line with a feed rate. which just eats up program space).... Let us know how it turns out.

should have read every ones response first whoops.. lol.
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
Okuma LC-20 Threading problem Gunner Machine Problems, Solutions , Wireless DNC, serial port 13 12-13-2011 10:11 PM
Beginner Troubleshooting and Building Considerations coherent FAQ of CNC Machine building 3 11-10-2011 01:27 PM
CNC gantry Machine shows problem Alex S.A Machine Problems, Solutions , Wireless DNC, serial port 15 04-25-2005 03:02 PM
servomotor problem Alex S.A Servo Motors and Drives 16 12-24-2004 01:08 PM
Fadal VMC4020A axis problem cwww Machine Problems, Solutions , Wireless DNC, serial port 16 12-01-2003 11:07 PM




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