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 > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-03-2008, 01:32 PM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road
Need help understanding a program Fanuc 6t on a Mazak lathe

I am trying to write a post for a Mazak Lathe with a Fanuc 6t controller. I do not have much experiance with CNC lathes(mostly all mill). Here is the example program:

%
:0001
( PLAN#9020 OP#20 )
N002 G20
N004 G50 X-50000 Z225000
N006 G00 T0101
N008 G97 S0100 M41
N010 M03
N012 G00 X12.098 Z6.
N014 Z4.134 M08
N016 G50 S0175
N018 G96 S0100
N020 G99
N040 G01 X12.8086 F.006
N050 G02 X12.8666 Z4.1621 I0. K.029
N060 G01 X12.8834 Z4.434
N070 G00X12.0834
N080 X12.298 Z4.234
N090 G01 Z3.672
N100 G00 X11.498 M09
N110 Z6.
N200 G97 S0100
N202 G00 X-50000 Z225000
N204 G00 T0100
N206 M01
N208 G50 X-50000 Z225000
N210 G00T0101
N212 G97S0100M41
N214 M03
N216 G00 X8.878 Z6.
N218 Z.589 M08
N220G50S0175
N222G96S0100
N230G01X9.504F.006
N240G00X9.004Z.689
N250X9.078
N260G01Z-.031
N270G00X8.878M09
N280Z6.
N300G97S0100
N302G00X-50000Z225000
N304G00T0100
N306M01
N308G50X-50000Z225000
N310G00T0202
N312G97S0100M41
N314M03
N316G00X11.91Z6.
N318Z3.678M08
N320G50S0175
N322G96S0100
N324G01X12.8498F.004
N330X12.8194Z3.5648
N340X12.7696Z3.4478
N350X12.7052Z3.3301
N360X12.5446Z3.0832
N370X12.4828Z2.9899
N380G03X12.4048Z2.9414I-.0674K.0143
N390G01X12.3066Z2.9192
N400X12.1494Z2.6972
N410X12.0728Z2.5976
N420G03X11.6202Z2.1219I-4.0267K1.624
N430X10.5136Z1.4405I-2.57K1.5216
N440G01X10.3584Z1.3688
N450G02X9.5335Z.8261I2.0677K-1.9995
N460G01X9.4362Z.7362
N470X9.4056Z.7057
N480X9.3838Z.683
N490 G00 X8.7838 M09
N500 Z6.
N600 G97 S0100
N602 G00 X-50000 Z225000
N604 G00 T0200
N606 M30
%

-First off anybody have the M and G code list for this controller/lathe?

-Second whats the deal with N004,N202 and so on i see that in every program and through out this one?

-3, whats line N006 T0101? is that tool one?

I am sure I will have more question but this is the basics.

thanks
Reply With Quote

  #2   Ban this user!
Old 09-03-2008, 02:03 PM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

No list of G and M codes for the 6T here.

N006 ? An "Nword is just a line number, and depending on the age of the machine, may not be required, but then it may.

T0101 - Tool position 1, offset #1

Any specific questions about the codes listed in this program?
Reply With Quote

  #3   Ban this user!
Old 09-03-2008, 02:20 PM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road

I meant what N006 line means? the X-50000 Z225000
Reply With Quote

  #4   Ban this user!
Old 09-04-2008, 02:51 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

N004 G50 X-50000 Z225000 - zero preset command.

Usually the distance from the part zero to the tool tip (when X and Z are home). Note that there's a matching G00 X-50000 Z225000 at the end of each tool. My guess is these were generic numbers that got edited (in pairs) each time the job was run.

The operator would touch each tool off the OD, add the X machine position to the the diameter of the part and record that value, touch off the face, record the Z machine position, then edit the G50 and matching G00 block to the new numbers.
Reply With Quote

  #5   Ban this user!
Old 09-04-2008, 07:46 AM
 
Join Date: Jan 2007
Location: india
Posts: 17
vipansam is on a distinguished road

yes i have got G code list for 6T but M codes are machine manufactuers special expect some M codes like M3 (sp. cw), M4( sp. ccw), M1(op. stop), M0(op. stop w/o condition), m2(prog. stop), M30(prog. stop), m8(coolant start), m9(coolant stop) .
2. In N4 this is coordinate setting for offsets.
3. T0101 is tool no. 1 with its offset no 1 .
vipan katyal
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-04-2008, 10:58 AM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road

Originally Posted by vipansam View Post
yes i have got G code list for 6T but M codes are machine manufactuers special expect some M codes like M3 (sp. cw), M4( sp. ccw), M1(op. stop), M0(op. stop w/o condition), m2(prog. stop), M30(prog. stop), m8(coolant start), m9(coolant stop) .
2. In N4 this is coordinate setting for offsets.
3. T0101 is tool no. 1 with its offset no 1 .
vipan katyal

Vipan,
Is it possible to attach that here or list them here?

Its a Mazak lathe if you have the M codes by chance?

thanks!
Reply With Quote

  #7   Ban this user!
Old 09-05-2008, 02:04 PM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

Fanuc 6T G-codes:

G00 Positioning (rapid traverse)
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW
G04 Dwell
G10 Offset value setting
G20 Inch data input
G21 Metric data input
G22 Stored stroke limit ON
G23 Stored stroke limit OFF
G27 Reference point return check
G28 Return to reference point
G29 Return from reference point
G30 Return to 2nd reference point
G31 Skip cutting
G32 Thread cutting
G34 Variable lead thread cutting
G36 Automatic tool compensation X
G37 Automatic tool compensation Z
G40 Tool nose radius compensation cancel
G41 Tool nose radius compensation left
G42 Tool nose radius compensation right
G50 Programming of absolute zero point (G50 X---- Y---- Z----)
(also used for Maximum spindle speed setting (G50 S----)
G65 User macro simple caling
G66 User macro modal calling
G67 User macro modal call cancellation
G68 Mirror image for double turrets ON
G69 Mirror image for double turrets OFF
G70 Finishing cycle
G71 Stock removal in turning
G72 Stock removal in facing
G73 Pattern repeating
G74 Peck drilling in Z axis
G75 Grooving in X axis
G76 Thread cutting cycle
G90 Cutting cycle A
G92 Thread cutting cycle
G94 Cutting cycle B
G96 Constant surface speed control
G97 Constant surface speed control cancel
G98 Per minute feed
G99 Per revolution feed


Standard EIA M-codes (your machine tool builder may not use some of these)

M00 Program Stop
M01 Optional (Planned) Stop
M02 End of Program
M03 Spindle CW
M04 Spindle CCW
M05 Spindle OFF
M06 Tool Change
M07 Coolant No. 2 ON
M08 Coolant No. 1 ON
M09 Coolant OFF
M10 Clamp
M11 Unclamp
M12 Unassigned
M13 Spindle CW & Coolant ON
M14 Spindle CCW & Coolant ON
M15 Motion +
M16 Motion -
M17 Unassigned
M18 Unassigned
M19 Oriented Spindle Stop
M20-29 Permanently Unassigned
M30 End of Tape
M31 Interlock Bypass
M32-35 Unassigned
M36-39 Permanently Unassigned
M40-45 Gear Changes if Used, Otherwise Unassigned
M46-47 Unassigned
M48 Cancel M49
M49 Bypass Override
M50-89 Unassigned
M90-99 Reserved for User
Reply With Quote

  #8   Ban this user!
Old 09-05-2008, 10:52 PM
 
Join Date: Jan 2007
Location: MI. USA
Posts: 203
CarbideBob is on a distinguished road

Interesting programming method.
Mixed decimal and least increment (no decimal point) programming. I hate it when people do this. Some controllers force it for certain instructions though.

G50 is just like G92 for a mill. Have you used G92 on mill?
On a lathe you call up the tool and offset at the same time.
T0101 is like T01 H01 D01 on a mill.
T0100 is tool number one with no offsets. Note that they call this before returning to home.
Bob
__________________
You can always spot the pioneers -- They're the ones with the arrows in their backs.
Reply With Quote

  #9   Ban this user!
Old 09-08-2008, 01:20 PM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road

Thanks for all the help guys. The other programmer isnt to good and isnt willing to help so I am stuck to figure it out on my own.

Let me make sure I understand this, Line N004 G50 x-50000 z225000 is the zero point of the program. This would be -5.0Inches in X and z is 22.5inches(radius??). T
Then on line N202 it is rapiding back to the zero point set at line N004?
Can I just use decimal instead of mixing incremental and decimal?

Thanks again!
Reply With Quote

  #10   Ban this user!
Old 09-09-2008, 11:47 AM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by mgb1974 View Post
Can I just use decimal instead of mixing incremental and decimal?!
I would think so, but am not positive. Try it on the first tool. See if it works. Keep rapid feedrate down and check distance to go. Hand on feedhold. I started on old Warner & Swaseys. No decimals were allowed.

Newer machines allow you to program either way. At least ours do tho I don't understand why anyone would want to. Much easier for everyone to understand with the decimal.

EDIT: What does your manual say about the G50 block?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-09-2008, 07:51 PM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

The Fanuc 6T can take decimal point formatted numbers or "trailing zero" numbers with no decimal points. It won't matter at all. Just remember that when you are in INCH mode (G20), you must put 4 digits after the "imaginary" decimal point. When you are in METRIC mode (G21), you only put 3 digits after the imaginary decimal.

1.0000 or 1.0 or 1. or 10000 = 1 inch (in G20)
1.000 or 1.0 or 1. or 1000 = 1 mm (in G21)
Reply With Quote

  #12   Ban this user!
Old 10-07-2008, 10:20 AM
 
Join Date: Feb 2008
Location: usa
Posts: 88
mgb1974 is on a distinguished road

What is the point of these lines? Is it just a tool change? Dont get why he is turning off constant surface speed and then going to referance point then calling out a referance point again and turning Constant surface speed off again.

Can this be simplified?


N300 G97 S0100
N302 G00 X-50000 Z225000
N304 G00 T0100
N306 M01
N308 G50 X-50000 Z225000
N310 G00 T0202
N312 G97 S0100 M41
N314 M03

Last edited by mgb1974; 10-07-2008 at 10:42 AM.
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
Using GOTO in a mazak program CAMCRASH G-Code Programing 8 03-16-2012 05:31 AM
Need Help!- Sample EIA program for Mazak lathe extanker59 Mazak, Mitsubishi, Mazatrol 5 10-24-2011 08:16 PM
Need Help!- MAZAK Program transfer MJMark Mazak, Mitsubishi, Mazatrol 3 08-27-2008 09:04 AM
Mazak M2 Sample program EIA zabba Mazak, Mitsubishi, Mazatrol 13 05-01-2008 06:23 AM
LATHE G28 Help Understanding!!!! 1ctoolfool Haas Mills 13 10-24-2007 04:34 AM




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