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! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-30-2009, 09:26 AM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road
thread milling question

I am trying to run a very simple thread milling bit of code on the HAAS and I am getting a message that says unrecognized gcode when I attempt to run it . This is the same format that runs fine on my Milltronics and bridgeport and I am just curious if I need to configure the program thats generating the code slightly different to work with the HAAS controller , or if its something very simple I can just edit manualy .


%
O0630(3/4X10 THREAD AT X8.25 Y-3.00 1.1" depth)
G49 G40 G17 G80 G50 G90
M6 T40 (TOOL DIA. 0.5)
G20 (Inch)
M03 S3500
G64
G00 G43 H40 Z0.5
(Right hand ID Conv)
X8.05 Y-2.7125
G00 G42 P0.25 X8.3375 F30.
G00 Z0.05
G02 X8.625 Y-3.00 R0.2875
G02 X7.875 Y-3.00 R0.375 Z0.00
G02 X8.625 Y-3.00 R0.375 Z-0.05
G02 X7.875 Y-3.00 R0.375 Z-0.1
G02 X8.625 Y-3.00 R0.375 Z-0.15
G02 X7.875 Y-3.00 R0.375 Z-0.2
G02 X8.625 Y-3.00 R0.375 Z-0.25
G02 X7.875 Y-3.00 R0.375 Z-0.3
G02 X8.625 Y-3.00 R0.375 Z-0.35
G02 X7.875 Y-3.00 R0.375 Z-0.4
G02 X8.625 Y-3.00 R0.375 Z-0.45
G02 X7.875 Y-3.00 R0.375 Z-0.5
G02 X8.625 Y-3.00 R0.375 Z-0.55
G02 X7.875 Y-3.00 R0.375 Z-0.6
G02 X8.625 Y-3.00 R0.375 Z-0.65
G02 X7.875 Y-3.00 R0.375 Z-0.7
G02 X8.625 Y-3.00 R0.375 Z-0.75
G02 X7.875 Y-3.00 R0.375 Z-0.8
G02 X8.625 Y-3.00 R0.375 Z-0.85
G02 X7.875 Y-3.00 R0.375 Z-0.9
G02 X8.625 Y-3.00 R0.375 Z-0.95
G02 X7.875 Y-3.00 R0.375 Z-1.00
G02 X8.625 Y-3.00 R0.375 Z-1.05
G02 X8.3375 Y-3.00.2875 R0.2875
G00 G40 X8.25
G00 Z0.5
M5 M9
M30
%




If I should move this over to the gcode section please delete and I will post it over there but I figured since it runs fine on my other mills and not the HAAS that maybe someone in this section can easily spot what I have wrong. Thanks Rich
Reply With Quote

  #2   Ban this user!
Old 03-30-2009, 09:47 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

I think this is it: G00 G42 P0.25 X8.3375 F30.

On the Haas your Tool Comp command is a D number: G42 D40 in this case and you will have 0.5 entered on line 40 in the tool diameter table (if you are using diameter measure)

Incidentally you can roll all your G02's into one line by using incremental on a Haas and use I and J not R. Start off with the tool inline with the center point on the X axis and +0.375 away on the Y axis:

G91 G02 I0. J-.375 Z-.10 L11
__________________
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 03-30-2009, 10:30 AM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road

I changed the g42 from" G42 P0.25" to "G42 D40" and made it past that line and I am now getting an error message that reads Radius in G02 or G03
Reply With Quote

  #4   Ban this user!
Old 03-30-2009, 11:11 AM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road

Geof could I impose on you to write that as a complete simple program , I tend to pick things up rapidly from example .
Reply With Quote

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

Originally Posted by panaceabea View Post
Geof could I impose on you to write that as a complete simple program , I tend to pick things up rapidly from example .
Give me an hour or so; I have to go get Lattes for me and my two financial officers (Wife and Daughter). Some people get priority.

Incidentally I think your R error is because you are doing 180 degrees and Haas wants it as R-0.375.

Back soon.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-30-2009, 12:52 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road
Macro for single point thread cutting

If you have Macro's enabled I have a macro to do single point threading that I can post here. I have ran this on our Simulator and the DRO's seem to be right.

%
O1243 (SINGLE POINT THREADING MACRO)
N30 (WRITTEN 03-30-2009 11:29:02)
N40 (RETURNED 03-30-2009 14:29:09)
N50 #101= 1 ( SINGLE POINT THEAD CUTTER )
N60 G17 G54 G90
N70 G40 G49 G80
N80 G53 G00 Z0.
N90 G53 G00 X-20. Y0.
( TOOL #1 IS A SINGLE POINT THEAD CUTTER )
N110 G53 G00 Z0. ( RESTART TOOL #1 HERE )
N120 G53 G00 X-20. Y0.
N130 T#101 M06
N140 S3500 M03
N150 G54 G00 G90 X0. Y0.
N160 G43 Z3. H#101 D#101 M08
( START SINGLE POINT THREAD )
N180 #124= 8.25 ( X CENTER )
N190 #125= -3 ( Y CENTER )
N200 #126= -1.05 ( Z BOTTOM OF THREAD )
N210 #118= 0.1 ( RETRACT PLANE IN Z AXIS )
N220 #107= 1 ( THREAD MAJOR DIAMETER )
N230 #120= 1 ( TOOL NUMBER )
N240 #117= 0.1 ( THREAD PITCH )
N250 #119= 0.025 ( ROUGH CUT DEPTH PER SIDE )
N260 #103= 2 ( NUMBER OF ROUGH CUTS )
N270 #121= 0.005 ( FINISH CUT DEPTH PER SIDE )
N280 #109= 30 ( CUTTING FEEDRATE )
N290 ( END OF INPUTS )
N300 #129= ABS[ #118 - #126 ]
N310 #127= #[ 2400 + #120 ] ( TOOL RADIUS )
N320 #128= #107 / 2 ( THREAD RADIUS )
N330 #131= ROUND[ #129 / #117 ] + 1 ( NUMBER OF REVOLUTIONS )
N340 #133= #103 ( COUNTER )
N350 IF [ #121 GT 0 ] GOTO370
N360 IF [ #133 EQ 1 ] GOTO500
N370 #108= [ [ #103 * #119 ] + #121 ] ( SET INITIAL PASS )
N380 G90 G00 X#124 Y#125
N390 Z#118
N400 WHILE [ #133 GT 0 ] DO1
N410 #132= [ #128 - #127 - #108 ] ( ADJUST RADIUS FOR EACH PASS )
N420 G01 Z#126 F50. ( FEED TO BOTTOM )
N430 X [ #124 + #132 ] F [ #109 * 5 ]
N440 G91 G03 X0. Y0. Z#117 I - #132 J0. F#109 L#131
N450 G90 G01 X#124 Y#125 F [ #109 * 3 ]
N460 Z#118 F75.
N470 #108= #108 - #119
N480 #133= #133 - 1
N490 END1
N500 ( START FINISH CUT HERE )
N510 #132= #128 - #127 ( ADJUST RADIUS FOR FINISH PASS )
N520 G01 Z#126 F50. ( FEED TO BOTTOM )
N530 X [ #124 + #132 ] F [ #109 * 0.5 ]
N540 G91 G03 X0. Y0. Z#117 I - #132 J0. F#109 L#131
N550 G90 G01 X#124 Y#125 F [ #109 * 3 ]
N560 Z#118 F75.
N570 G00 Z3.
N580 G53 G00 Z0. M09
(UNLOAD HERE)
N600 G53 G00 X-20. Y0.
N610 M30 (END OF MAIN PROGRAM)
%

Last edited by JWK42; 03-30-2009 at 02:39 PM. Reason: Added Macro
Reply With Quote

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

I'm back!!!

Before starting I have a question: Why are you using G42? You are going around the outside using a G02 so surely it should be G41?

I copied your program and have put in extra empty lines either side of my changes.

Normallly I like to work with my work zero at the center point for the circular moves and when the work zero is someplace else I create a local (secondary) work zero using G52.

I renumbered the program and when I get back to my workshop I will run it in Graphics to make sure there are no problems.

O00000(3/4X10 THREAD AT X8.25 Y-3.00 1.1" depth)
G49 G40 G17 G80 G50 G90
M6 T40 (TOOL DIA. 0.5)
G20 (Inch)
M03 S3500
G64

G52 X8.25 Y-3.00 (This creates a secondary work zero at your thread centerline)

G43 H40

G00X0.0 Y1.5 Z1.0 (Move into position using the G52 work zero)

G00 G41 D40 X0.0 Y0.375 Z0.05 F30.

G91 G02 I0.0 J-.375 Z-0.1 L11 (Cut thread)
G90 G01 X0.5 Y0.375 (Move away tangentially)
G00 Z1.0 (Clear Z height)

G00 G40 X0.0 Y1.0 (Cancel tool comp)

G52 X0.0 Y0.0 (Cancel secondary work zero)

G53 G00 Z0.0 (Move Z to tool change height to get it out of the way)

M5 M9
M30
%


Here it is with all the unnecessary stuff removed and compacted up a bit.

O00000(3/4X10 THREAD AT X8.25 Y-3.00 1.1" depth)
G20 G49 G40 G17 G80 G50 G64 G90
M6 T40 (TOOL DIA. 0.5)
M03 S3500
G52 X8.25 Y-3.00 (Secondary work zero)
G43 H40
G00X0.0 Y1.5 Z1.0
G00 G41 D40 X0.0 Y0.375 Z0.05 F30.
G91 G02 I0.0 J-.375 Z-0.1 L11 (Cut thread)
G90 G01 X0.5 Y0.375 (Move away tangentially)
G00 Z1.0 (Clear Z height)
G00 G40 X0.0 Y1.0 (Cancel tool comp)
G52 X0.0 Y0.0 (Cancel secondary work zero)
G53 G00 Z0.0 (Move Z to tool change height to get it out of the way)
M5 M9
M30
%
__________________
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 03-30-2009, 01:01 PM
WallyL7's Avatar  
Join Date: Dec 2008
Location: USA
Posts: 488
WallyL7 is on a distinguished road

Here's a quickie haas threadmill program. It will arc into the threads, and arc to finish. .150 arc lead in/out.


O0000 ( 3/4-10 THREAD )
( DIA. - .5 )
G0 G90 G40 G17 G80
T1 M6
G54 X8.25 Y-3. S12000 M3
G43 H0 Z.25
Z.1
G1 Z-1.1 F100.
Y-3.225
G3 X8.625 Y-3. Z-1.075 I.12 J.225
Z-.975 I-.375
Z-.875 I-.375
Z-.775 I-.375
Z-.675 I-.375
Z-.575 I-.375
Z-.475 I-.375
Z-.375 I-.375
Z-.275 I-.375
Z-.175 I-.375
Z-.075 I-.375
X8.25 Y-3.375 Z0. I-.375
X8.475 Y-3. Z.025 J.255
G1 X8.25
G0 Z.1
Z.25 M9
M5
G91 G28 Z0.
G28 Y0.
M30
__________________
Tim
Reply With Quote

  #9   Ban this user!
Old 03-30-2009, 01:21 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by Geof View Post
I'm back!!!

Before starting I have a question: Why are you using G42? You are going around the outside using a G02 so surely it should be G41?...
My mistake!!!

You are doing an internal thread using G02 and G42; I use G41 and G03 for internal and G41 and G02 for external and when I saw G02 my brain said "external".

Here it is for internal.

O00000(3/4X10 THREAD AT X8.25 Y-3.00 1.1" depth)
G20 G49 G40 G17 G80 G50 G64 G90
M6 T40 (TOOL DIA. 0.5)
M03 S3500
G52 X8.25 Y-3.00 (Secondary work zero)
G43 H40
G00X0.0 Y0.0 Z1.0
Z-1.1
G01 G41 D40 X0.0 Y-0.25 F30.
G03 I0.0 J0.3125 X0.0 Y0.375 Z-1.05
G91 G03 I0.0 J-0.375 Z0.1 L11 (Cut thread)
G00 Z1.0 (Clear Z height)
G00 G40 X0.0 Y0.0 (Cancel tool comp)
G52 X0.0 Y0.0 (Cancel secondary work zero)
G53 G00 Z0.0 (Move Z to tool change height to get it out of the way)
M5 M9
M30
%

Again I will test this on my machine.

It is similar to WallyL7's in that it arcs into the cut but it uses tool comp.

I also corrected a typo in my other post on the G41 line.

I hope I have not left any in here.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #10   Ban this user!
Old 03-30-2009, 01:51 PM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road

Originally Posted by JWK42 View Post
If you have Macro's enabled I have a macro to do single point threading that I can post here.

Please do , I am learning alot from this thread .
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-30-2009, 02:08 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

I was a naughty boy and did have typos/errors.

These do run but they have a different tool number. Also of course because of my misinterpretation the external thread is not the correct size for 3/4".


Incidentally if you put M05 M09 on a single line Haas will give you an error message 'Multiple Codes'.

EXTERNAL
%
O00000 (3/4X10 THREAD AT X8.25 Y-3.00 1.1" depth)
G49 G40 G17 G80 G50 G90
M06 T1 (TOOL DIA. 0.5)
G20 (Inch)
M03 S3500
G64
G52 X8.25 Y-3. (This creates a secondary work zero at your thread centerline)
G43 H01
G00 X0. Y1.5 Z1. (Move into position using the G52 work zero)
G00 G41 D01 X0. Y0.375 Z0.05 F30.
G91 G02 I0. J-0.375 Z-0.1 L11 (Cut thread)
G90 G01 X0.5 Y0.375 (Move away tangentially)
G00 Z1. (Clear Z height)
G00 G40 X0. Y1. (Cancel tool comp)
G52 X0. Y0. (Cancel secondary work zero)
G53 G00 Z0. (Move Z to tool change height to get it out of the way)
M05
M09
M30
%

INTERNAL
%
O00001 (3/4X10 THREAD AT X8.25 Y-3.00 1.1" depth)
G20 G49 G40 G17 G80 G50 G64 G90
M06 T1 (TOOL DIA. 0.5)
M03 S3500
G52 X8.25 Y-3. (Secondary work zero)
G43 H01
G00 X0. Y0. Z1.
Z-1.1
G01 G41 D01 X0. Y-0.25 F30.
G03 I0. J0.3125 X0. Y0.375 Z-1.05
G91 G03 I0. J-0.375 Z0.1 L11 (Cut thread)
G90 G00 Z1. (Clear Z height)
G00 G40 X0. Y0. (Cancel tool comp)
G52 X0. Y0. (Cancel secondary work zero)
G53 G00 Z0. (Move Z to tool change height to get it out of the way)
M05
M09
M30
%

Now i should get back to my fixture building.

Good job I don't have a boss to hover over me.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #12   Ban this user!
Old 03-30-2009, 02:11 PM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road

Geof I am getting the same error message "undefined gcode" with your file as my original one , is there something in settings I might need to turn on?
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
Newbie- Thread milling shake n bake Mazak, Mitsubishi, Mazatrol 2 01-09-2009 04:04 AM
Lathe question: Thread milling vs. single pointing.... PoiToi General Metal Working Machines 0 02-21-2008 07:24 PM
640M Thread Milling question Rcky123 Mazak, Mitsubishi, Mazatrol 5 06-25-2007 09:07 PM
0M-Thread milling? mikul Fanuc 1 12-05-2006 11:56 PM
Thread Milling 3/8-18 NPT shawn G-Code Programing 13 08-26-2006 08:24 AM




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