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 03-26-2008, 09:51 PM
 
Join Date: Jun 2006
Location: USA
Posts: 10
bdphillips03 is on a distinguished road
G71 - Fanuc 6T - Not steadily (de)increasing in X

Thought this may be better suited in this forum:

Trying to run a G71 canned cycle and keep getting the above alarm. This is probably simple but I just don't get it. Thanks for the help. If this should be in another forum please let me know where. Brian

:0005
G28U0W0
N0001
G00T0101
G50X3.500Z3.00
G00X1.6Z0.05
G97S900M04
G71P1000Q2000U0W0D1500F0.003
N1000G00X1.55
G01Z0.0
G01X1.1876Z-0.5
G01X1.25Z-0.642
G03X1.3664Z-0.942R0.5147
G03X1.0822Z-2.0604R4.6712
G02X1.1251Z-3.007R3.8931
G03X0.875Z-3.142R0.1254
N2000G01X0.975
G00Z0.05
G00X1.5Z3.0T0100M09
G28U0W0
M05
M30
%
Reply With Quote

  #2   Ban this user!
Old 03-26-2008, 10:36 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

I have not looked at your code in detail but I think what you are getting would be called a "non-monotonous" X motion on a Haas machine. What it means is that one of your lines has the X reversing direction.

G71 and G72 have what is called type 1 and type 2 motion (on a Haas at least) and with type 1 you are only allowed to go in the negative direction.

Look for a move that is trying to make the X go positive, i.e. less negative.
__________________
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-27-2008, 07:21 AM
 
Join Date: Mar 2007
Location: usa
Posts: 10
mike cncmachine is on a distinguished road

line n10000 should be your smallest x move
Reply With Quote

  #4   Ban this user!
Old 03-27-2008, 04:58 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

It looks to me as you're doing an ID roughing op, right?

The X values increase and decrease in the profile definition, so you need to run a "Type II" roughing cycle, which requires BOTH an X and Z move in the 1st block of the finish shape definition (N1000)

I also tweaked your start and end points (the tool was gouging at the bottom of the profile.

Try this:

%
O0005
G28U0W0
N0001
G00T0101
G50X3.500Z3.00
G00X0.85Z0.05 (START POINT CHANGED)
G97S900M04
G71P1000Q2000U0W0D1500F0.003
N1000G00X1.55Z0.05 (BOTH X AND Z HERE)
G01Z0.0
G01X1.1876Z-0.5
G01X1.25Z-0.642
G03X1.3664Z-0.942R0.5147
G03X1.0822Z-2.0604R4.6712
G02X1.1251Z-3.007R3.8931
G03X0.875Z-3.142R0.1254
N2000G01X0.85 (END POINT CHANGED)
G00Z0.05
G00X1.5Z3.0T0100M09
G28U0W0
M05
M30
%
Attached Thumbnails
Click image for larger version

Name:	G71 Error.jpg‎
Views:	109
Size:	20.0 KB
ID:	56479  
Reply With Quote

  #5   Ban this user!
Old 03-27-2008, 11:35 PM
 
Join Date: Jun 2006
Location: USA
Posts: 10
bdphillips03 is on a distinguished road

Thanks for the fix. Found out by trying to run it that I can't use type II cycles with this lathe. When I tried to run the new code. Does this mean I will have to use I,K,X,Z ; I,K,U,W commands to turn the radi?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-28-2008, 08:32 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Originally Posted by bdphillips03 View Post
Thanks for the fix. Found out by trying to run it that I can't use type II cycles with this lathe. When I tried to run the new code. Does this mean I will have to use I,K,X,Z ; I,K,U,W commands to turn the radi?
How about a few G71's to get rid of most of the material.
And then program the full path, put it in a WHILE loop with a G52 and step it into the part. It will work just like a G73 but no complaints about nonmonotonic (sp?) motion.

Code:
O0005
G28U0W0
N0001
G00T0101
G50X3.500Z3.00
G00X0.85Z0.05 (START POINT CHANGED)
G97S900M04

(PUT IN ROUGHING G71 CYCLES)

(CHANGE THESE AS NEEDED)
#100=0.002(X FINISH)
#101=0.500(X ROUGH)
#102=0.050(STEP SIZE)

#104=[-#101-#100](OFFSET)
WHILE[#101GT0.0]DO1
N1000G0G52X[#104]
G00X1.55Z0.05 (BOTH X AND Z HERE)
G01Z0.0
G01X1.1876Z-0.5
G01X1.25Z-0.642
G03X1.3664Z-0.942R0.5147
G03X1.0822Z-2.0604R4.6712
G02X1.1251Z-3.007R3.8931
G03X0.875Z-3.142R0.1254
G01X0.85 (END POINT CHANGED)
N2000G0Z0.1
#101=#101-#102
#104=[-#101-#100]
END1

(LAST ROUGH PASS)
#104=-#100
G70P1000Q2000

(FINISH PASS)
#104=0.000
G70P1000Q2000

(SPRING PASSES IF NEEDED)
G70P1000Q2000
G70P1000Q2000

G00X1.5Z3.0T0100M09
G28U0W0
M05
M30
Attached Thumbnails
Click image for larger version

Name:	Lathe1.jpg‎
Views:	64
Size:	12.7 KB
ID:	56507  

Last edited by Andre' B; 03-28-2008 at 08:51 AM. Reason: Cleaned up the code.
Reply With Quote

  #7   Ban this user!
Old 03-28-2008, 04:10 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

He doesn't have the Type II canned cycles option. I'd be real surprised if he has User Macros...
Reply With Quote

  #8   Ban this user!
Old 03-28-2008, 05:28 PM
 
Join Date: Jun 2006
Location: USA
Posts: 10
bdphillips03 is on a distinguished road

Yep, checked my book when I got home. The lathe doesn't support G52. Here is the list of what it will do. I really appreciate the help you all are giving me!! I have attached a dxf of the part (profile) I am making. My orginal code leaves out the two small vertical lines and the small horizontal line. Then the long horizontal line is connected to the first radius. Do you all think I should just break the G71 cylces down into individual radi? Thanks again!! Brian

The following "G" codes are supported:

G00 Rapid traverse mode
G01 Feed rate mode
G02 Circular interpolation clockwise
G03 Circular interpolation counterclockwise
G04 Timed pause in program
G20 Inch mode
G21 Millimeter mode
G22 Software stroke limit on
G23 Software stroke limit off
G28 Return to home position in called axis
G29 Return from reference point
G32 Plain threading cycle
G40 Tool nose compensation cancel
G41 Tool nose compensation left
G42 Tool nose compensation right
G50 Set 0,0 position and maximum spindle speed
G70 Canned cycle, Finishing cycle
G71 Canned cycle, OD roughing cycle
G72 Canned cycle, Face roughing cycle
G73 Canned cycle, Profiling cycle
G74 Canned cycle, Face grooving cycle
G75 Canned cycle, OD grooving cycle
G76 Canned cycle, Thread cutting cycle
G90 Cutting cycle A
G92 Thread cutting cycle
G94 Cutting cycle B
G96 Constant surface speed mode, G97 cancel
G97 Constant RPM mode, G96 cancel
G98 Feed spec. in inches per minute, G99 cancel
G99 Feed spec. in inches per revolution, G98 cancel

The following auxiliary codes are supported:

D Depth of cut, etc., in canned cycles, other uses
E Lead specification in long format (optional)
F Feed rate specification
I X direction radius offset in circular interpolation
K Z direction radius offset in circular interpolation
L Repeating factor
N Line numbering
P Subroutine call out and canned cycle usage
Q Canned cycle usage
R Radius designation in circular interpolation
S Spindle speed specification, surface speed spec.
T Tool and tool length offset compensation (optional)
U Incremental movement specification, part diameter
W Incremental movement specification, length of part
X Absolute movement specification, diameter of part
Z Absolute movement specification, length of part
Attached Files
File Type: dxf BARREL01mod.dxf‎ (60.4 KB, 101 views)
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
Increasing memory in Fanuc OT robertbair Fanuc 3 05-22-2008 08:45 AM
Fanuc 6T - Not steadily (de)increasing in X bdphillips03 Fanuc 3 03-27-2008 05:36 PM
Increasing Memory in Fanuc 18? jdocmm Fanuc 12 06-06-2007 11:36 PM
Increasing CNC precision hani_a Linear and Rotary Motion 9 01-06-2007 07:53 PM
Increasing torque bunalmis Stepper Motors and Drives 1 07-20-2005 01:27 PM




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