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 01-14-2011, 12:52 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road
drilling canned cycles on a lathe for G-code system A

I am preparing a write-up on these. Since my machine does not have live tooling, I cannot experiment on the machine for analyzing how the cycles behave. I have to depend on Fanuc manual only which is often not very clear. So, I have a few basic questions:

1. M51 is given to be for C-axis index mode ON. Is the number 51 always same on all the machines or do we specify a desired number in some parameter?

2. With M50 (C-axis index mode OFF), M03 would start the main spindle, and with M51, it would start the live spindle. Correct?

3. M31 (for C-axis clamp) must necessarily be used with these cycles, even in repeated calls in subsequent blocks. Correct?

4. The manual gives this syntax (apparently for G-code system A, since U, H and W are there) :
G83 X(U)_ C(H)_ Z(W)_ R_ Q_ P_ F_ K_ M_;
It further explains that
Z_ is the distance from R-point to the bottom of the hole,
R_ is the distance from the initial level to R-point level.
Is it correct, with reference to G-code system A?
If yes, what would be the effect of W_?
I believe, the given ststements are correct in system B and C, with G91.
Please clarify.
Thanks in advance.
Reply With Quote

  #2   Ban this user!
Old 01-15-2011, 01:11 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

No answer yet.
I am stuck.
Somebody please spare five minutes for me.
Reply With Quote

  #3   Ban this user!
Old 01-15-2011, 09:54 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Hey Sinha,

1. M-codes like M51 are typically MTB dependant. Your typical M3, M1, M8 things of this sort are usually typically across most machines. The M51 will probably be the same if it is the same MTB. I have an M51 on one of my machines which is thru the spindle coolant on #4. Not sure what it is though.

2. I am not sure. I ass u me that if you are using index modes you are trying to mill which then you are indexing the spindle and not running it at a constent. So I would think that if you want to index the main spindle you have to use M51--rotate---then M50

3. Not always. I do not clamp my spindle when I am doing light work like bolt circle drilling. If I have to do some heavy milling then I will clamp the spindle. I can not speak to this 100% because I have only been using this on a few machines recently and on MY machines it is not needed to clamp the spindle all the time. It would suck if I had to because some of the parts I drill have 150+ holes on a BC and if I had to clamp and unlcamp at every rotation it would triple my machining time.

4. Not 100% as I don't use system A. I would think there should be no difference in relation to the X,C,Z,R etc. The Z to W I think would be incremental in W. If you were to look at it in the standard it would be Z is the distance from your work zero to the bottom of the hole, not R plane to bottom. R is the distance from work zero. So R.1 would be .1" above work zero.

As you know Sinha I have been wrong many times before so take my post with a grain of salt.

Good luck,
Stevo
Reply With Quote

  #4   Ban this user!
Old 01-15-2011, 11:40 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Thanks Stevo for reply. My comments:
Originally Posted by stevo1 View Post
Hey Sinha,

1. M-codes like M51 are typically MTB dependant. Your typical M3, M1, M8 things of this sort are usually typically across most machines. The M51 will probably be the same if it is the same MTB. I have an M51 on one of my machines which is thru the spindle coolant on #4. Not sure what it is though.

The operator's manual does mention that there is a parameter for spindle clamp M-code (M31 here), but it is silent on M code for spindle-indexing mode (M51/M50 here). So, I thought M51/M50 might be a standard codes like M00, M01 ...
But, it must be parameter dependent which operator's manual does not mention. It must be there in parameter manual.


2. I am not sure. I ass u me that if you are using index modes you are trying to mill which then you are indexing the spindle and not running it at a constent. So I would think that if you want to index the main spindle you have to use M51--rotate---then M50

On your machine, how do you ensure that M03 starts the spindle of live tool, and not the main spindle? You must be commanding some M code such as M51.

3. Not always. I do not clamp my spindle when I am doing light work like bolt circle drilling. If I have to do some heavy milling then I will clamp the spindle. I can not speak to this 100% because I have only been using this on a few machines recently and on MY machines it is not needed to clamp the spindle all the time. It would suck if I had to because some of the parts I drill have 150+ holes on a BC and if I had to clamp and unlcamp at every rotation it would triple my machining time.

I see.

4. Not 100% as I don't use system A. I would think there should be no difference in relation to the X,C,Z,R etc. The Z to W I think would be incremental in W. If you were to look at it in the standard it would be Z is the distance from your work zero to the bottom of the hole, not R plane to bottom. R is the distance from work zero. So R.1 would be .1" above work zero.

I believe there is a mistake in the manual which treats both R and Z as incremental values, always. In fact, in system A, R should always be an absolute value. Z would be measured from origin, and W from R-point. This is what I believe, but I need confirmation.

As you know Sinha I have been wrong many times before so take my post with a grain of salt.

Good luck,
Stevo
Reply With Quote

  #5   Ban this user!
Old 01-15-2011, 11:47 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Will Angelw please join us.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-15-2011, 04:50 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by sinha_nsit View Post

1. M51 is given to be for C-axis index mode ON. Is the number 51 always same on all the machines or do we specify a desired number in some parameter?

2. With M50 (C-axis index mode OFF), M03 would start the main spindle, and with M51, it would start the live spindle. Correct?

3. M31 (for C-axis clamp) must necessarily be used with these cycles, even in repeated calls in subsequent blocks. Correct?

4. The manual gives this syntax (apparently for G-code system A, since U, H and W are there) :
G83 X(U)_ C(H)_ Z(W)_ R_ Q_ P_ F_ K_ M_;
It further explains that
Z_ is the distance from R-point to the bottom of the hole,
R_ is the distance from the initial level to R-point level.
Is it correct, with reference to G-code system A?
If yes, what would be the effect of W_?
I believe, the given ststements are correct in system B and C, with G91.
Please clarify.
Thanks in advance.
Hi Sinha,

1. M51 is given to be for C-axis index mode ON. Is the number 51 always same on all the machines or do we specify a desired number in some parameter?

These M code can be set by parameter.

2. With M50 (C-axis index mode OFF), M03 would start the main spindle, and with M51, it would start the live spindle. Correct?

No. I've seen plenty of machines that use M13 to start the live tooling spindle and I've seen machines that use M03 in the way that you describe. This M code is OEM specific.

3. M31 (for C-axis clamp) must necessarily be used with these cycles, even in repeated calls in subsequent blocks. Correct?

No, not unless the PMC program was written in a way that insisted on the main spindle being clamped when drill type cycles were commanded. Generally, this is not the case. I've seen plenty of machines where drilling cycles can be called with the C axis not clamped.

4. The manual gives this syntax (apparently for G-code system A, since U, H and W are there) :
G83 X(U)_ C(H)_ Z(W)_ R_ Q_ P_ F_ K_ M_;

I believe, the given ststements are correct in system B and C, with G91.


i. Correct for the G91 in B and C
ii. In system A, Z is an absolute value, W is an incremental distance from R
ii. In system A, R is an absolute position

Regards,

Bill
Reply With Quote

  #7   Ban this user!
Old 01-15-2011, 11:30 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Thanks a lot Angelw.
You are not only knowledgeable, but helpful also.
Thanks again.
Reply With Quote

  #8   Ban this user!
Old 01-16-2011, 12:56 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

According to the 0i-TC Operator's Manual, R is always incremental in the Series 16/18/160/180 format, but switchable by parameter 5102 bit 6 in the FS10/11 tape format.
Attached Thumbnails
Click image for larger version

Name:	F0i-TC R in Canned Cycle.jpg‎
Views:	30
Size:	112.0 KB
ID:	124013  
Reply With Quote

  #9   Ban this user!
Old 01-16-2011, 04:30 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Following is cut from the 5102 parameter listing of an 18 series manual from a new machine I installed last Thursday.

RAB The R command for the drilling canned cycle in the Series 15 format is:
0 : Regarded as an incremental command
1 : Regarded as:
An absolute command in the case of G code system A
An absolute command in the case of G code system B or C when the
G90 mode is specified.
An incremental command in the case of G code system B or C when
the G91 mode is specified.
RDI The R command for the drilling canned cycle in the Series 15 format:
0 : Is regarded as the specification of a radius
1 : Follows the specification of a diameter/radius for the drilling axis

Although I didn't actually look at this parameter setting on the machine, the R was regarded as an absolute value in the first program that was run. Clearly, this control must use Series 15 format. Of all the machines having late series controls I've installed, all have regarded the R as absolute, so perhaps this parameter is set to 1 as a default.

Regards,

Bill
Reply With Quote

  #10   Ban this user!
Old 01-16-2011, 04:43 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Thanks Decoupar for additional information.
Incidently, the term "tape format" has always confused me.
How is it related to "control version"?
The current versions are 0i, 0i Mate, 30i/31i/32i, and Power Mate i.
Is it so that we select a particular tape format for these controls?
How many tape formats are available and which one is commonly used? I can see two: 10/11 tape format and 16/18/160/180 tape format.
I guess, these refer to the programming styles for the older control versions 10/11 and 16/18/160/180 respectively.

My 0i Mate TC allows L_ repetition count up tp 9999 (as well as 7-digit specification of P_) in M98. This indicates 10/11 format. And I use two-block G71 (I have not tried one-block G71). This is not as per 10/11 format. Confused.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-22-2011, 12:25 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

It so turns out that many things are parameter dependent, and nothing can be said with certainty. So, I have written the following, which is a part of my notes. If you have patience, please read it once, and point out mistakes/ambiguity, if any.

Hole position data
The location of the axis of the hole can be specified in both absolute and incremental coordinate systems. In front drilling, (X, C) are absolute coordinates, and (U, H) are corresponding incremental coordinates. In side drilling, (Z, C) and (W, H) are, respectively, absolute and incremental coordinates. The incremental coordinates are measured from the position of the tool at the time of calling the canned cycle. In front drilling, X/U are diameter values, if diameter programming is being used. In G-code system B and C, G90/G91 with X, C, and Z are used for absolute/incremental coordinates.

Position of the bottom of the hole
Z and X are absolute coordinates of the bottom of the hole, in front drilling and side drilling, respectively. The corresponding incremental coordinates are W and U, which are measured from the R-point level, and are always negative. In side drilling, X/U are diameter values, if diameter programming is being used. Therefore, for example, if the distance between the R-point and the bottom of the hole is 10 mm, U-20 (G91 X-20 in G-code system B and C) would need to be specified, in diameter programming.

Position of R-point
In G-code system B and C, depending on certain parameter settings, R would either always be incremental distance from the initial level (irrespective of G90/G91), or it can be either absolute coordinate or incremental distance from the initial level (depending on G90 and G91, respectively). In system A, which we are following, this is again parameter dependent; it can be either absolute coordinate or incremental distance from the initial level. Since parameter settings are going to vary on different machines, the best way would be to execute a program on the machine, in a safe working zone, to find out whether R is absolute or incremental. Another way would be to set the parameter 5102#6 to 0, which would force R to always be the incremental distance from initial level, in all the three G-code systems. The incremental distance would always be negative in this case.

Another issue regarding its value, in side drilling (in front drilling, it is always the actual distance), is that whether it would be a diameter value (in diameter programming) or a radius value (even in diameter programming), depending on parameters. Therefore, either conduct an experiment on the machine to find out what it is, or set parameter 5102#7 to 0 which would always force it to be a radius value.

Peck length
This is specified in multiples of least input increment, without a decimal point. Thus, in millimeter mode, micron (0.001 mm) is used, and in inch mode, thou, which is thousandth part of an inch (i.e., 0.0001 inch), is used. For example, for a peck length of 5 mm, Q5000 is programmed in millimeter mode. In inch mode, if 0.2 inch peck length is desired, Q2000 is programmed. If Q is not commanded, the entire hole is made in a single peck, converting the peck drilling cycle into a simple drilling cycle.

Dwell at the bottom of the hole
If needed, e.g., for a better-machined bottom, a dwell can be specified in milliseconds without a decimal point.

Feedrate
It can be specified either in feed/minute or feed/revolution, depending on selection of feedrate mode (G98/G99, respectively, in G-code system A). The two feedrate forms are related as
Feed in mm/min = Feed in mm/rev x RPM

Repeat count
Repeating a cycle in absolute coordinate mode (X, Z, and/or C) is meaningless since the specified drilling operation would be carried out at the same place repeatedly. However, in incremental coordinate mode (U, W, and/or H), a desired number of equi-spaced holes can be very conveniently made just by a single command.

The repeat count is specified in K_, as a one-shot (non-modal) data, effective only in the block where it is commanded. Up to 9999 repeats can be specified. For a single execution, specify K1, or do not specify K at all. K0 is same as K1, if parameter 5102#4 is set to 0. When 5102#4 is set to 1, the specified modal drilling data is just stored without drilling being performed.

M codes for C-axis clamp/unclamp
After orienting the main spindle at the specified angle, it is necessary to hold it rigidly (as if in a vice) for drilling holes in the workpiece. In other words, the C-axis must be clamped. This is done through an M code, specified in parameter 5110, which applies a mechanical brake on the spindle. For example, if 31 (the usual choice) is stored in parameter 5110, M31 would clamp the spindle. The next number automatically becomes the code for spindle unclamp. Thus, in this example, M32 would release the brake. Of course, spindle unclamp at R-point, during final retraction, is a built-in feature of these cycles, obviating the need for explicitly commanding M32. In fact, this is the reason why M31 is needed in every subsequent block of these cycles (for making holes at other locations). Note that, for light machining applications, mechanical clamping of the spindle is not needed. In fact, M31 should not be commanded unless it is absolutely necessary, since it increases the cycle time.

Final retraction after hole machining
There is some difference in the way these cycles are commanded/behave in different G-code systems. The description here refers to system A. System-B and system-C cycles are similar to canned cycles on milling machines, with provision for selection between R-point retraction and initial level retraction with G99 and G98, respectively. In system A, the final retraction is always up to the initial level.

Cancellation of canned cycles
Apart from the cancellation code G80, which is the usual and recommended method, these cycles can also be cancelled by commanding a G code belonging to group 1 (G00, G01, G02 and G03).
Reply With Quote

  #12   Ban this user!
Old 03-21-2011, 07:06 PM
 
Join Date: Mar 2011
Location: usa
Posts: 3
rnmmhunter is on a distinguished road
G83 for the first time

I tried to use G83 for the first time today on a Fanuc controller 21i-TA on a Daewoo Lynx 210L lathe.I got it to work with this line G83 Z-2.5 Q1000 R.500 F.006
Q=.100 peck
R.500 1/2 inch infront of the part to let coolant in between pecks

The only problem with doing it this way is it starts drilling .500 infront of the part.Is there anyway to get it to start drilling at Z0?
Thanks Rich
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- Need help understanding lathe canned cycles chubby hubby G-Code Programing 7 10-29-2010 12:32 PM
need help with Canned cycles on a fanuc lathe firekoe G-Code Programing 1 12-25-2009 08:40 AM
lathe canned cycles camtd GibbsCAM 1 04-06-2009 07:07 PM
T-word in lathe canned cycles sinha_nsit Fanuc 2 11-21-2008 10:33 PM
canned lathe cycles PETE1968 Mastercam 3 05-27-2007 06:44 AM




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