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 11-01-2011, 05:34 AM
 
Join Date: Jan 2011
Location: UK
Posts: 8
mechanical_head is on a distinguished road
Retracting the cutter to machine Z zero at the end of program

Hi there

I am a beginner in CNC programming and was wondering if I could get some help with this problem.

We have a VF11 vertical milling machine with the following travel range:
Y = 1016 mm
X = 3048 mm
Z = 762 mm

and I want to know what I need to include in my program so that at the end, the tool will retract to the Z zero of the machine so I won't have to manually jog it up.

Also I need to know how to move the table so that the workpiece is positioned right in front the doors at the end.

Thanks
Reply With Quote

  #2   Ban this user!
Old 11-01-2011, 06:11 AM
 
Join Date: Sep 2011
Location: USA
Posts: 56
texaspyro is on a distinguished road

You probably want to use the G53 command along with G00. Plus toss in a couple of other gcodes for good programming practice

G53 G49 G90 G00 Z0 ; cancel tool length comp, return Z to home position
G53 X... Y... ; position table near door (fill in your desired X and Y posn)

G53 cancels any workpiece offsets, etc for the line it appears on and causes the machine to work in raw machine coordinates.
Reply With Quote

  #3   Ban this user!
Old 11-01-2011, 06:20 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

mechanical_head

Always move the Z first

In you case if you want to more to a set number & it is not Z zero then you would do this

G0Z---- & your number were you want it to move

If you want to go to Z zero
You just have to do a G28Z. Then another line for the Y & Y always move the Z first when you are starting to learn a new machine

If the Z axes does not clear the part before the X, Y move you will crash the tool into the part

There are other ways to do this as well, but this is simple

Moving the Table to in front of the door is to quite easy once the Z has done its move you can Just do a G0X---.Y---. This will put the table were ever you want it
__________________
Mactec54
Reply With Quote

  #4   Ban this user!
Old 11-01-2011, 06:30 AM
 
Join Date: Jan 2011
Location: UK
Posts: 8
mechanical_head is on a distinguished road

Originally Posted by mactec54 View Post
mechanical_head

Always move the Z first

In you case if yo want to more to a set number & it is not Z zero then you would do this

G0Z---- & your number were you want it to move

If you want to go to Z zero
You just have to do a G28Z. Then another line for the Y & Y always move the Z first when you are starting to learn a new machine

If the Z axes does not clear the part before the X, Y move you will crash the tool into the part

There are other ways to do this as well, but this is simple

Moving the Table to in front of the door is to quite easy once the Z has done its move you can Just do a G0X---.Y---. This will put the table were ever you want it
mactec54,

Thanks for your advice. I Could you please show me where in my program I would have to add that code in please? Here is programe Im using at the moment:
%
O0096(PART - )
N1 (NOTES - HOLE FACING DOOR - FINAL OP 30MM DRILL)
N2 T11 M06 (30MM DRILL, 118 INC)
N3 G90 G80 G40 G18 G57
N4 S400 M04
N5 G43 H11
N6 /
N7 G00 X0. Z81.8 Y-450.
N8 Y-437.
N9 G01 Y-372.487 F20.0
N10 G04 P1.
N11 G00 Y-437.
N12 G00 Y-450.
N13 M01
N14 M30
%


Thanks
Reply With Quote

  #5   Ban this user!
Old 11-01-2011, 09:12 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

mechanical_head

Try & struchure your Gcode like what is in the attachment, This is as simple as it gets
& is good for learning with, The attachment is not in metric just the Z move & the Y move are metric

You move the Z axes after the last feed move, the rest below that can be in any order, except for the M30 that should be at the bottom, if you stick to a pattern you can't go wrong
Attached Files
File Type: txt 2805.txt‎ (167 Bytes, 28 views)
__________________
Mactec54
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-01-2011, 10:11 AM
 
Join Date: Jan 2011
Location: UK
Posts: 8
mechanical_head is on a distinguished road

Originally Posted by mactec54 View Post
mechanical_head

Try & struchure your Gcode like what is in the attachment, This is as simple as it gets
& is good for learning with, The attachment is not in metric just the Z move & the Y move are metric

You move the Z axes after the last feed move, the rest below that can be in any order, except for the M30 that should be at the bottom, if you stick to a pattern you can't go wrong
mactec54

This may sound too much to ask but I am still unsure on hown to include the G codes you've got in your own programe, within mine so I would really really appreciate it if you could put them in the program I posted earlier so I could see how they work with my own program.

Thanks alot
Reply With Quote

  #7   Ban this user!
Old 11-01-2011, 10:50 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

mechanical_head

N6 /
N7 G00 X0. Z81.8 Y-450.
N8 Y-437.
N9 G01 Y-372.487 F20.0
N10G0Z200.
N11M9 Coolant off
N12M5 spindle off
N13G0Y450.
N14 M30
%

You don't have a Z move so I don't know what you are trying to do, If you need the G04 P1 (dwell) put it above the G0Z200. move
__________________
Mactec54
Reply With Quote

  #8   Ban this user!
Old 11-01-2011, 11:22 AM
 
Join Date: Jan 2011
Location: UK
Posts: 8
mechanical_head is on a distinguished road

Originally Posted by mactec54 View Post
mechanical_head

N6 /
N7 G00 X0. Z81.8 Y-450.
N8 Y-437.
N9 G01 Y-372.487 F20.0
N10G0Z200.
N11M9 Coolant off
N12M5 spindle off
N13G0Y450.
N14 M30
%

You don't have a Z move so I don't know what you are trying to do, If you need the G04 P1 (dwell) put it above the G0Z200. move
Sorry I should have mentioned that we're using a Right-angle head to drill parallel to the table along X axis and consequently all the Z motions are along X instead.

You mentioned using G28 in your earlier post so I was wondering how I would tackle this problem by using G28 instead.
Reply With Quote

  #9   Ban this user!
Old 11-01-2011, 01:13 PM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

I am having a bad day so you can take this for what you paid.

From your questions and comments you do not know G code and very probably do not know how to use single block. Single block is how you teach yourself what codes do what.

Especially when using things like 90° heads you should be able to, in single block and looking only at the screen tell someone standing next to you exactly what the machine will do the next time you push the green button.

If not it is not a question of IF but how long before you smash that very expensive milling head.

Haas provides good programming books, at least compared to other controls.
Find that book and read it cover to cover. Seems like no one wants to do that anymore.
Then take it and stand in front of the machine and "try things".
Reply With Quote

  #10   Ban this user!
Old 11-01-2011, 01:43 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

mechanical_head

Well that changes things a little, You don't need to have any Z moves only at the start to tool 0.0 Position
although you could have the Z go up after your your X & Y moves have finished just to give you clearance for changing your part

Which way are you cutting in the X or the Y, Don't even think about a G28 untill we figure out what you are doing
__________________
Mactec54
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-02-2011, 03:37 AM
 
Join Date: Jan 2011
Location: UK
Posts: 8
mechanical_head is on a distinguished road

Originally Posted by Andre' B View Post
I am having a bad day so you can take this for what you paid.

From your questions and comments you do not know G code and very probably do not know how to use single block. Single block is how you teach yourself what codes do what.

Especially when using things like 90° heads you should be able to, in single block and looking only at the screen tell someone standing next to you exactly what the machine will do the next time you push the green button.

If not it is not a question of IF but how long before you smash that very expensive milling head.

Haas provides good programming books, at least compared to other controls.
Find that book and read it cover to cover. Seems like no one wants to do that anymore.
Then take it and stand in front of the machine and "try things".
I don't manually program because I use CADCAM and that is why I'm not familiar with certain G codes. I know I should get my head around these G codes but I was looking for a quick solution to my problem for the time being.
Reply With Quote

  #12   Ban this user!
Old 11-02-2011, 03:40 AM
 
Join Date: Jan 2011
Location: UK
Posts: 8
mechanical_head is on a distinguished road

Originally Posted by mactec54 View Post
mechanical_head

Well that changes things a little, You don't need to have any Z moves only at the start to tool 0.0 Position
although you could have the Z go up after your your X & Y moves have finished just to give you clearance for changing your part

Which way are you cutting in the X or the Y, Don't even think about a G28 untill we figure out what you are doing
The cutter feeds in Y direction in first programe and in the next programe feeds in X direction.
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
G83 peck drilling not retracting? sail2steam G-Code Programing 5 01-02-2011 12:28 AM
Problem- Z axis not retracting Edwinrist Syil Products 8 11-18-2010 08:18 AM
Area Clears and retracting the Z mrcodewiz Dolphin CADCAM 4 12-21-2009 12:44 PM
How to program a chamfer cutter - M Plus brismit Mazak, Mitsubishi, Mazatrol 4 11-24-2008 09:16 AM
cutter radius compensation program? John3 General CNC (Mill and Lathe) Control Software (NC) 2 08-19-2007 08:09 AM




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