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 07-27-2011, 06:14 PM
 
Join Date: Dec 2010
Location: United States
Posts: 24
Japazo is on a distinguished road
What am I missing here?

Hey everyone,

I just took a job as an engineer with one of my responsibilities being the programming of a CNC Mill using CAMWorks and Solidworks. I have been trying to get the correct post processor for CAMWorks from our supplier, but so far I have no solution from them.

Controller: GE Fanuc 0i-MC
Machine: Mag-Fadal VMC 4020-FX

In the meantime, I have a simple part that needs to be machined but is on hold because I'm too new to this to be able to simply write the code myself. I have some code which is very close to what I need, but I still can't get it exactly right. Here is what I've got so far,

Code:
% 
O0007
G40 G90 G17 G80 G49 
G49 G40 
T11 M06 (3/8 4 FLUTE COA EM) 
G40 G90 G80 G49 
G0 G56
G0 X-.4 Y0 M3 S1000
G00 G43 H11 Z.50 M8
G0 G56
G01 Z-.75 F4.
G0 G41 D11 X-.4 
G02 I.3025 J0
G0 X-.4 
G01 Z-1.375 
G02 I.3025 J0
G0 X-.4 
G01 Z-1.9999
G02 I.3025 J0
G1 G40 D11 X-.5 Y0.0 
G0 Z0.25
M5 
M9 
G0 G91 G28 Z0 
G90 M2
%
What I am trying to accomplish is to simply interpolate around the outside of a square peg and mill it down into a round one (don't worry about the potential problems with that). The peg is 0.25" x 0.25" x 2.0" long. I am milling it in three steps from top to bottom.

The machine does everything correct except it doesn't seem to be centered on the part like it should be. I'm not totally sure if it starts out centered or not, but it definitely ends up off of center (by visual inspection). Am I accidentally offsetting the tool by using 'G0 X-.4' and the machine is not returning afterward? Any ideas on what is wrong here would be great. If you need more information I'll be happy to provide it.

Thanks,
Andy

Also: If anyone knows where I can find the correct CAMWorks post processor for my controller and machine, I would really appreciate it. I'm tired of receiving the wrong ones from my supplier!
Reply With Quote

  #2   Ban this user!
Old 07-27-2011, 08:34 PM
 
Join Date: Oct 2010
Location: US
Age: 99
Posts: 58
annoying is on a distinguished road

Well, the X-.4 and then the I.3025 is stabbing me in the eye. Not sure what diameter you are trying to cut down to, but I was guessing that maybe the I.3025 included the tool radius and the radius you are cutting??.?.? Assuming you part is centered at 0,0, the obvious problem is that you are calling the X- quadrant of the circle to be -.4, then shooting at a radius of .3025, which is making that circle center -.0975 of 0

And then, if the I.3025 is a combination of arc radius and tool radius... don't. Or don't use tool comp (G41).

So, assuming you were trying to cut a .115" radius... You could try something like this


%
O0007
G40 G90 G17 G80 G49
T11 M06 (3/8 4 FLUTE COA EM)
G56
D11 G43 H11
G0 X-.315 Y0 M3 S1000
G0 Z.50 M8
G1 Z-.75 F4
G41 G1 X-.115 F4 (approach, comp on)
G2 I.115 (cut CW circle)
G40 G1 X-.315 (release, comp off)
G1 Z-1.375 F4
G41 G1 X-.115 F4
G2 I.115
G40 G1 X-.315
G1 Z-1.9999 F4
G41 G1 X-.115 F4
G2 I.115
G40 G1 X-.315
G0 Z0.25
M5
M9
G0 G91 G28 Z0
G90 M2
%



That could work, but will leave marks at approach, release. I prefer to roll in, roll out


%
O0007
G40 G90 G17 G80 G49
T11 M06 (3/8 4 FLUTE COA EM)
G56
D11 G43 H11
G0 X-.315 Y0 M3 S1000
G0 Z.50 M8
G1 Z-.75 F4
G41 G1 Y-.2 F4
G3 X-.115 Y0 J.2
G2 I.115
G3 X-.515 I-.2
G1 Z-1.375
G3X-.115 I.2
G2 I.115
G3 X-.515 I-.2
G1 Z-1.9999
G3X-.115 I.2
G2 I.115
G3 X-.315 Y.2 I-.2
G40 G1 Y0
G0 Z0.25
M5
M9
G0 G91 G28 Z0
G90 M2
%

No promises though. Can't say I've used that control. And, can't say that it wont be hell trying to cut that. Also, got rid of some of the extra fubar in there
Reply With Quote

  #3   Ban this user!
Old 07-28-2011, 04:11 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

There are several mistakes.
To start with, write programs without radius compensation. In many cases, it is possible to take into account the cutter radius without using G41 or G42. After gaining some experience, try G41/G42. Take care of lead-in/lead-out distances.
Reply With Quote

  #4   Ban this user!
Old 07-29-2011, 06:23 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by Japazo View Post
Hey everyone,

%
O0007
G40 G90 G17 G80 G49
G49 G40
T11 M06 (3/8 4 FLUTE COA EM)
G40 G90 G80 G49
G0 G56
G0 X-.4 Y0 M3 S1000
G00 G43 H11 Z.50 M8
G0 G56
G01 Z-.75 F4.
G0 G41 D11 X-.4
G02 I.3025 J0
G0 X-.4
G01 Z-1.375
G02 I.3025 J0
G0 X-.4
G01 Z-1.9999
G02 I.3025 J0
G1 G40 D11 X-.5 Y0.0
G0 Z0.25
M5
M9
G0 G91 G28 Z0
G90 M2
%

Thanks,
Andy
Hi Andy,

As Sinha has said, you have made several mistakes, but the question that begs to be answered is where X0 Y0 is set on the workpiece.

Irrespective of whether cutter radius comp is used or not, starting at X-0.4 Y0.0 followed by G02 I.3025 J0 will result in a circular path with a center coordinate of X-0.0975 Y0.0. If the X0 Y0 of the workpiece is supposed to be the centre of the square, then this is the reason for the out of center result.

The I and J in the G02 block describes where the center of the radius being cut is relative to the current cutter location. As the I and J are incremental values, the absolute value in X of the circle center is -0.4 + 0.3025 = X-0.0975

Regards,

Bill

Last edited by angelw; 07-29-2011 at 06:39 PM.
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
What am I missing? CNC_Monkey G-Code Programing 19 06-10-2011 05:16 PM
Need Help!- all missing istotel Fanuc 2 01-21-2010 03:17 AM
Missing .DLL??? CyborgCNC Surfcam 6 05-25-2007 12:41 PM
Am i missing anything here? phantomcow2 General Electronics Discussion 7 08-11-2005 10:36 PM
Not sure what i'm missing? Gnome Gecko Drives 3 03-27-2005 06:55 AM




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