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 09-24-2007, 09:12 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
Still new to G Code

Hi All,

I am trying a simple (I think) side mill cut along the x axis. No change in Y. I have entered the program below. What happens is that I get a change in Y, like cutting at an angel. Can’t seem to figure out what I am doing wrong. Any ideas would sure help this rank beginner, wet behind the ears, complete novice. This is my first trying to use cutter comp (a 5/8” end mill and I added the GEOM D in the offset page)

Machine- Sharp 2412 mini VMC Controller-Fanuc Oi

T1M6;
G0 G90 G54 X3.05 Y1.5 S4000 M3;
G43 H1 Z.1 M8 ;
G01 Z-1.6 F50;
G42 D01 F15
X-2.425
G28 G91 Z0
M30:

The end mill at the end point is 5/8” in the negative at the end point of the cut. Makes quite a nice angle should I ever need one! 

Thanks all
Larry
Reply With Quote

  #2   Ban this user!
Old 09-24-2007, 09:19 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by Larry Myers View Post
...
T1M6;
G0 G90 G54 X3.05 Y1.5 S4000 M3;
G43 H1 Z.1 M8 ;
G01 Z-1.6 F50;
G42 D01 F15
X-2.425
G28 G91 Z0
M30:

Thanks all
Larry
What you have here is the controller applying the tool compensation as it does the move from X3.05 to X-2.425.

In the line with your tool compensation command G42 you have not given any motion comand so the motion needed to set the compensated position is applied to the next motion command.

Write a program where you come to a start point clear of the workpiece. Then give the tool compensation command with a move that is larger than you tool radius but still puts the tool clear of the start of the cut; this can still be a G00 move.

Now you have compensation set and can move into your cut with a G01 and make your straight cut. Then move clear, lift Z clear and give the G40 with a small move to cancel compensation
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #3   Ban this user!
Old 09-24-2007, 09:40 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
Still New to G Code

Hi Geof
Thanks

>>Write a program where you come to a start point clear of the workpiece. Then give the tool compensation command with a move that is larger than you tool radius but still puts the tool clear of the start of the cut; this can still be a G00 move.<<

Actually the X position is indeed clear of the part by just over the diameter of the tool. So Maybe something like this?

T1M6;
G0 G90 G54 G42 D01 X3.05 Y1.5 S4000 M3;
G43 H1 Z.1 ;
G01 Z-1.6 F50;
X-2.425
G28 G91 Z0
M30:

Thanks again
Larry
Reply With Quote

  #4   Ban this user!
Old 09-24-2007, 09:59 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

You still have not separated things out as far as I can see. Where are you actually cutting from and to? For simplicity when learning the code I found it best to be a bit laborious, something like this when described in words:


Choose the tool
Set tool length compensation
Star the spindle
Move with a rapid somewhere close but not to close to the start of the cut keep Z still well above
Move a little bit closer and at the same time set Tool Compensation; this can still be a rapid
Now make a feed move to the start of the cut and the correct Z depth
Feed along the cut to the end
Now move a little bit away from the end still feeding and lift Z clear
Now cancel Tool Compensation with a short rapid move
End program, tool change, whatever

Does your machine have a graphics simulator so you can step through these moves on a screen. This often helps.

It is perfectly legitimate to combine some of the command lines I have written separately above. You start doing this once you are comfortable that you know what is going where.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #5   Ban this user!
Old 09-24-2007, 10:29 PM
 
Join Date: Jun 2005
Location: us
Posts: 210
timlkallam is on a distinguished road

Try this Larry
T1M6
N1 G0 G90 G40 S4000 M3 X3.5 Y2
N2 G43 H1 Z.1
N3 G1Z-1.6 F50
N4 G42 D1 X3.05 Y1.5
N5 X-2.425
N6 G40 Y2
N7 G28 G91 Z0
M30

Line 1 place cutter half the rad. or more ahead of the start point.
Line 3 z should be at depth before cutter comp. is activated
Line 4 activate cutter comp to start point
Line 6 Very improtant after cut is done cutter comp MUST be cut off with movement.
Tim
__________________
Tim
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-24-2007, 10:37 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
Still new to G Code

Thanks again Tim and thank you Geof. I'll try this first thing in the morning and see how it works.

Tim, from what you have suggested, if I want to continue on around this work piece, can I contine with out restating the G42?

Thanks
Larry
Reply With Quote

  #7   Ban this user!
Old 09-24-2007, 11:01 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by Larry Myers View Post
.. can I contine with out restating the G42?

Thanks
Larry
Yes, and it did not register that you had G42...this gives you conventional milling, climb milling is much better, this is G41.

You can continue all the way around the perimeter of a part without changing the tool compensation but you have to make sure you do not reverse direction. Tool compensation puts the center of the tool either to the right G42 or left G41 of the cut line. When you reverse direction that means the tool has to move to the other side of the cut line for the right or left to still be correct. Obviously this means the tool has to pass through the work to get there. Most machines will alarm if you try this.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #8   Ban this user!
Old 09-25-2007, 12:19 AM
 
Join Date: Jun 2005
Location: us
Posts: 210
timlkallam is on a distinguished road

http://www.shoptalkmag.com/index.cfm...rs=0&artid=155
__________________
Tim
Reply With Quote

  #9   Ban this user!
Old 09-27-2007, 06:51 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
Still new to G Code

Tim,
I sent you a message off line.
larry
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
Wierd NC Code and G-Code Tazzer General CAM Discussion 10 01-09-2012 01:07 PM
To hand Code? or to CAD Code? automizer Polls 81 11-26-2011 09:30 PM
learning g code or cad-cam code output? slow_rider G-Code Programing 3 02-27-2010 08:48 PM
G-code for beginners - want to learn G-code FPV_GTp G-Code Programing 7 11-17-2008 11:25 PM
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM




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