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 03-27-2009, 12:29 PM
 
Join Date: Jan 2009
Location: USA
Posts: 7
vtecyoyo1a is on a distinguished road
stepping into part help..

First off I'm using a Haas EC1600...I'm machining these simple parts..(just plan forming them). And I'm using the program and at the end I'm having to wait for the machine to stop then adjust the tool offset .25 inches each time (4 times total per part). Anyone able to help me make the machine step into the part on it's own?? I know there's a block of code that will do this I just don't have it...any help is welcome..and thanks!
Reply With Quote

  #2   Ban this user!
Old 03-27-2009, 12:55 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Are you turning or milling? What kind of control are you using? I would use a variable to keep adjusting the diameter/offset 4 times to work its way in.

If you were turning a part to say 10" in diameter and you were starting out at 11" adjusting in .25" everytime until you reach 10" (4 times).

#1=1.
WHILE[#1GE0]DO1
G0X[10.+#1]Z.1
G1Z-2.
G0X12.
Z.1
#1=#1-.25
END1
M30

Stevo
Reply With Quote

  #3   Ban this user!
Old 03-27-2009, 01:05 PM
 
Join Date: Jan 2009
Location: USA
Posts: 7
vtecyoyo1a is on a distinguished road

I'm milling .....and I'm taking .25 inches of material off on each pass...and need it to go a total of 4 passes on each part...using the same planform...thanks for the reply
Reply With Quote

  #4   Ban this user!
Old 03-27-2009, 02:01 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

What type of control are you using? Can you use macro programming?

What exactly are you doing to the part? Are you just running a mill across the face .25” deep each pass or is the material being removed in the X,Y direction?

If you are milling on a face removing in the Z axis .25” each pass the same program will work with a few changes to movements and axis. Z0 is top of part and you want to remove 1” with .25” passes.

#1=0
WHILE[#1LT1]DO1
#1=#1+.25
G0X0Y0Z.1
Z-#1
G1X5.
G0Z.1
END1
M30

Stevo
Reply With Quote

  #5   Ban this user!
Old 03-27-2009, 02:29 PM
 
Join Date: Jan 2009
Location: USA
Posts: 7
vtecyoyo1a is on a distinguished road

I'm using a haas controller..and I'm taking material off of the out side of a part in the x and y directions...and I need to adjust the z depth 4 times to finish the part
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-27-2009, 02:43 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Ok I am not sure what else you need. Does this make sense to you? Do you need more explanation on how the program works? The first Z right before your machine code will be Z-.25” it will run your code then move to your starting position then drop to Z-.5” and it will run your code again. This will continue .25” increments until it reaches Z-1.”

Z0 is top of part

T()M6
G0G90G80--safe start lines
#1=0
WHILE[#1LT1]DO1
#1=#1+.25
G0G90X()Y()Z()--place your numbers to position tool
Z-#1
G1…----your machine code for your part profile goes here.

G0Z.1
END1
M30

Stevo
Reply With Quote

  #7   Ban this user!
Old 03-27-2009, 03:07 PM
 
Join Date: Jan 2009
Location: USA
Posts: 7
vtecyoyo1a is on a distinguished road

Steveo sorry man..a couple things I'm un clear about..if you have AIM or yahoo messenger I can be reached at vtecyoyo1a on aim....and vtec_the_shredi on yahoo...if you have time to explain it in real time.(sorry I'm posting this from in front of my machine on a cellphone)..if not no big deal I'll catch you around another time
Reply With Quote

  #8   Ban this user!
Old 03-27-2009, 03:21 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Thats no problem. Sorry I don't messanger or Aim. I am just about to leave for the day but will be back in tomorrow morning and Sunday. I usually check in at night from home so if you get around a computer ask all the questions you need I will try to answer when I catch them.

Stevo
Reply With Quote

  #9   Ban this user!
Old 03-28-2009, 09:50 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Put your XY contour in a sub program and call the sub as many times as you need. This sample should mill a 2 x 4 rectangle. If you specify the D (CRC #) outside the sub, you can use the same sub with different tools.

T01 M06
G54 X-0.5 Y-0.5 S5000 M03
G43 Z0.1 H01 M08
G01 Z-0.25 F20. D1
M97 P101
Z-0.5
M97 P101
Z-0.75
M97 P101
Z-1.0
M97 P101
G00 Z5. M09
M30
N101 G01 G41 X0 F10.
Y2.0
X4.0
Y0
X-0.5
G40 Y-0.5
M99
Reply With Quote

  #10   Ban this user!
Old 03-28-2009, 10:04 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by vtecyoyo1a View Post
... And I'm using the program and at the end I'm having to wait for the machine to stop then adjust the tool offset .25 inches each time (4 times total per part). Anyone able to help me make the machine step into the part on it's own?? I know there's a block of code that will do this I just don't have it...any help is welcome..and thanks!
You do not need anything complicated.

Put the facing program in a subroutine and do an incremental step before each call to the subroutine. Here is an outline for program that starts facing near one corner of the part and increments down to take four 0.25" cuts for a total removal of 1":

O00000
All the normal safety stuff and comments, starting spindle etc.
G43H01 (Set tool offset)
G54 G00 X0. Y0. Z1. (move to your starting position with a bit of Z clearance)
Z0. (move Z to top of stock)
G91 G01 Z-0.25 F20. M97 P1000 L4 (increment Z and go to subroutine)
G53 G00 Z0. (retract Z)
G28 (home)
M30
----
N1000
G90 (set absolute positioning)
This is the facing sequence
M99

This sequence simply increments Z four times and calls the subroutine each time.

I just noticed dcoupar's program; the only real difference between his and mine is that I use the incremental Z and the L count on the subroutine call.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-28-2009, 01:50 PM
 
Join Date: Jan 2009
Location: USA
Posts: 7
vtecyoyo1a is on a distinguished road

Thank you all for the replies it helps to know people care enough to stop and help, many thanks to you all

Here's the program that I am using to profile these parts:
%
O00601
N1 GOO G17 G40 G49 G80;
N2 G00 G49 G53 Z0;
N3 T10 MO6;
N4 G00 G90 G54 X6.5 Y-2.1246 A0.;
N5 S874 M03;
N6 G00 G43 H10 Z1. M88;
N7 G01 Z0. F50.;
N8 G01 G42 D10 X6.0772 F20.;
N9 G02 X4.0772 I-1. J0.;
N10 G03 X0.1985 Y4.5937 I-8.2452 J-0.2814;
N11 G03 X-0.1985 I-0.1985 J-0.3181;
N12 G03 X-4.0772 Y-2.1246 I4.3665 J-6.9997 F20.;
N13 G03 X-3.8787 Y-2.4683 I0.3749 J-0.0128 F20.;
N14 G03 X3.8787 I3.8787 J7.2813 F20.;
N15 G03 X4.0772 Y-2.1246 I-0.1763 J0.331 F20.;
N16 G02 X6.0772 I1. J0. F20.;
N17 G40 X6.5;
N18 G00 Z6. M89;
N19 M30;
%
This program is cutting into the parts at a width of .430" and each pass is .250"...into steel. Aggressive is an understatement. Today I put the wrong offset into the TLO and tried to take a .750" deep pass. By all the wincing and or giggling you all just did...I don't have to tell you a scraped the part, tool needed some clean up but its still alive (people, it was glowing red when I hit the stop button).
Which is why I want to run this program without having to tell the machine the cutter is .250" shorter on each pass. I figure the less input from me, the better things will run..
Now that you all can see the program where would the sub-routine stuff fit in. and if you could explain each block of info you are adding, I don't just want the "how" I want the "why" so I can take this lesson on to other parts.
Thanks again, John
Reply With Quote

  #12   Ban this user!
Old 03-28-2009, 03:49 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

This should do it. Run it in Graphics and/or with your Tool Offset raised a couple of inches above the part.

Refer to my other post for explanations.

What size is your cutter? F20. seems a bit aggresive for only 874 rpm.


%
O00601
N1 GOO G17 G40 G49 G80;
N2 G00 G49 G53 Z0;
N3 T10 MO6;
N4 G00 G90 G54 X6.5 Y-2.1246 A0.;
N5 S874 M03;
N6 G00 G43 H10 Z1. M88;
N7 G00 Z0.;
N8 G91 G01 Z-0.25 F50. M97 P1000 L4
N9 G00 Z6. M89;
N10 M30;
(------)
N1000 G90 G01 G42 D10 X6.0772 F20.;
N1001 G02 X4.0772 I-1. J0.;
N1002 G03 X0.1985 Y4.5937 I-8.2452 J-0.2814;
N1003 G03 X-0.1985 I-0.1985 J-0.3181;
N1004 G03 X-4.0772 Y-2.1246 I4.3665 J-6.9997 F20.;
N1005 G03 X-3.8787 Y-2.4683 I0.3749 J-0.0128 F20.;
N1006 G03 X3.8787 I3.8787 J7.2813 F20.;
N1007 G03 X4.0772 Y-2.1246 I-0.1763 J0.331 F20.;
N1008 G02 X6.0772 I1. J0. F20.;
N1009 G40 X6.5;
N1010 M99
%
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.

Last edited by Geof; 03-28-2009 at 03:50 PM. Reason: Added G90 at beginning of subroutine.
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
1/8, 1/4, or 1/2 stepping?? vonkal Stepper Motors and Drives 11 09-16-2006 05:37 PM
Where to buy stepping motor birdofcnc Stepper Motors and Drives 9 01-12-2006 05:21 PM
help with micro stepping chrisw765 Xylotex 1 03-05-2005 06:26 AM
Help On Stepping Motors sdigeso DIY-CNC Router Table Machines 1 04-07-2004 03:51 PM
Stepping problem Too dakenskys Carken Products (Deskam, DeskCNC etc) 4 07-12-2003 04:05 PM




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