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 06-11-2009, 01:37 PM
 
Join Date: Sep 2005
Location: US
Posts: 26
MMTechi is on a distinguished road
program exit sub routine

I post my programs to multiple size mills. I would like to use a common sub routine call that "moves to a operator select location at the machine" .

What I currently do is move to a suitable location for part change or clearance and capture it in my offsets page under G110. The common sub routine call at the end of the programs will use that as it part change location without the operator having to edit the program or manually inputting some locational values . This works pretty well unless I do a program mid start. It doesn't reread the part/program WPC at the top of the program, so it proceeds milling at some odd location based around G110. Is there an easy way to send tool to a temporary random location and still have it retain the main program work coordinate, I don't only use G54 when posting programs.

Can anyone tell me a better method of doing this? I have a Haas mill by the way.

Thanks in advance.
Robert Flores

%
O777
G54 G17 G90

N7
G90 G40 G80
T7 D7 M6
(T7 .257 DIA F DR)
/M8
G90 G0 X0. Y1.65
G43 H7 G0 Z0.3
S978 F2.4
M3

G73 X0. Y1.65 Z-0.3 Q0.09 K0.09 R0.1 P0.03 F2.4 G99 (MAY RETURN TO -R PLANE)
G80
G0 Z-0.3
G73 X0. Y0. Z-0.863 Q0.09 K0.09 R-0.463 P0.03 F2.4 G99 (MAY RETURN TO -R PLANE)
X0.0743 Y-0.8493
G80
G0 Z0.3


N100
M98 P89995 (EXIT SUB PROG -EDIT AT MACHINE)
(/M9 )(COOLANT OFF)
(M5 )(SPINDLE OFF)
(G91 G0 Z3.0)
(G91 G0 X0. Y0.0 )(EDIT AS NEEDED)
(G110 G90 G40 G80 G0 X0. Y0. Z0.0)(ABS CANCEL ALL)
M1
T7 M6
M30
%
Reply With Quote

  #2   Ban this user!
Old 06-11-2009, 02:46 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Too bad Haas didn't see fit to include Fanuc-style G30 (second, third and fouth reference position) function. Do you have Macros enabled?

Have you tried mid-starting with the Program Restart (setting #36) turned on? It will pick up the WCS.
Reply With Quote

  #3   Ban this user!
Old 06-11-2009, 04:03 PM
 
Join Date: Sep 2005
Location: US
Posts: 26
MMTechi is on a distinguished road

I see in the Haas manual a G53 is a non-modal coordinate selection though I don't see a way to capture a random location and designate it as the place to got to for part clearance. I do not have macros enabled. Yes I know about setting #36 but i am trying to figure a way to not have it on. I don't quite remember something about it that slowed things down.
Reply With Quote

  #4   Ban this user!
Old 06-11-2009, 04:51 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

I believe Program Restart only slows down the search for the sequence number.

I may be nuts, but I thought I had read in an early Haas manual that you could use variables in place of numbers even if you didn't have Macros enabled. Can you enter a number into #501 in the Macro Variables screen? If so, can you MDI in a command like G00 X-#501?

Don't everybody yell at me at once...
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
G70 exit commands with a -u. rapidtraverse Haas Lathes 35 01-13-2008 09:34 PM
Entry exit arc leaving bump SIG Fanuc 24 12-21-2007 05:57 AM
How to exit large assembly mode? interflexo Solidworks 3 09-25-2006 03:21 AM
3D surface sub-routine lazza G-Code Programing 2 08-30-2005 08:58 AM
Extending toolpath entry and exit points? microdot GibbsCAM 0 08-25-2004 03:06 PM




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