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 > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-12-2008, 03:10 PM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road
078 alarm (number not found)

Hello every body:

Here is a small macro for a lathe to make grooves.
I get an alarm 078 number not found. May be is the N10 line.
Any advice.

Please go easy...I am a beginner

Thank you in advance.

Jorge



CNC Miyano Fanuc 18T


01225(MAIN PROGRAM)
T1111 (GROOVE .250 WIDTH)
G50S1500M3
G96S875M8
G65P9009B1.375S1.2Z.5C.175W.5T.250F.003
G28U0
G0Z2.5
M30







O9009 (GROOVE MACRO)
#100=#23 (GROOVE WIDTH)
#101=#20 (INSERT WIDTH)
IF[#20GT#23]GOTO99
IF[#20LT#23]GOTO10
IF[#20EQ#23]GOTO11
N10FUP[#23-#20]/[3-1]GOTO11
N11G0 X[#2 + 0.2] Z-#26
G01 X#19 F#9
G04 P500
G00 X[#2 + 0.2]
Z-[#26 + #3]
G01 X#2
X[#2 - 2 * #3] Z-#26
G00 X[#2 + 0.2]
Z-[#26 - #3]
G01 X#2
X[#2 - 2 * #3] Z-#26
G00 X[#2 + 0.2]
N99#3000=100 (INSERT TO BIG)
M99


B #2 1.375 stock dia.
C #3 .175 chamfer size
S #19 1.200 groove diameter
z #26 .500 start point of groove z COORDINATE
w #23 .500 groove width
T #20 .250 insert width

Last edited by jorgehrr; 06-13-2008 at 06:11 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 06-12-2008, 03:23 PM
 
Join Date: Mar 2006
Location: United States
Age: 31
Posts: 153
chrisryn is on a distinguished road

Manual says

078 A program number or a sequence number which was specified by adress P in the block which includes and M98,M99, M65 or G66 was not found. The sequence number specified by a GOTO statement was not found. Otherwise, a called program is being edited in background processing. Correct the program, or discontinue the background editing.
__________________
No matter how good you are, there is always someone better!!!
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 06-13-2008, 09:28 AM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road

Man I am way off.....

The trouble is the N10. I need more stuff in there to be able to make a groove bigger then the insert. I'm working on it.

George
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 06-14-2008, 09:27 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

Take the GOTO11 out of the N10 line. It is not needed because N11 is the next line in the program. I have also never seen code written like that before. What are you trying to set in that line. Your not setting anything there. It probably can't calculate. Should be something like #?=FUP[#23-#20]/[3-1]. You will also have to put your N99 alarm insert to big after your M99 otherwise when the program runs through you will read the N99 everytime before the M99.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 06-16-2008, 06:08 AM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road

Thank you for your comments.

You are absolute right.

* I corrected the M99

* FUP is my real problem, I'm trying to use this for when my groove is wider then the insert, In that case I will need more passes, but I know I'm way off,
someone at work suggested the FUP function to calculate how many passes the tool needs to make, obviously I do not know how to use it.

* I'm still working on it, for me it will be a very good tool, I have plenty of grooves in my parts.

Thanks again.

George
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-16-2008, 08:52 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

This is a easy function to use. This rounds up to the whole number.
#100=FUP[3.3]=4.(rounds up to the whole number)
#100=FIX[3.3]=3.(rounds down to the whole number)
#100=ROUND[3.4]=3.(typical rounding function less than 1/2 whole number)
#100=ROUND[3.5]=4.(typical rounding function greater than or equal 1/2 whole number)

I am trying to visualize what you are trying to do. I run mostly vertical turning lathes. Can you give me an idea of were you are putting the grooves and direction of your axis? I assume you are on a horizontal lathe.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 06-16-2008, 09:16 AM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road

Yes, horizontal lathes.

What I'm trying to do is make it easy for me when I need to program grooves.
Here is an example. I have one part with three grooves:

1st .840 diameter .100 wide
2nd .980 diameter .187 wide
3er 1.125 diameter .225 wide all with chamfers .035x45 and .025x45

Inserts is .087 wide.

As you can see I program the grooves step by step. (a lot of parts have .087 wide groove, that is why inserts are that size)

I need to write a loop for when the groove is wider then the insert, and I need to overlap between passes.

Again, thank you for your replay.

George
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 06-23-2008, 02:57 PM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road

Agree with Stevo. Only thing block 10 is doing is subtracting tool width from groove width and then dividing by 2. This does nothing for you. Also why would you use [3-1] instead of just using 2 if you did need to divide by 2?

As written, you are making a groove that is the same width as your insert. Does 'C' have radius compensation value figured into it? Or are you using an insert with no radii on the corners?

Edit: As an aside for when you do figure out how to make multiple passes with the groove insert, I would divide by the insert width minus twice the radii on the insert corners...as a minimum. I don't like leaving little metal rings in the groove to be picked out later.
Tweet this Post!Share on Facebook
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
Does anyone know of any software that can lay out a number of parts on a specified sh tomvaughan Commercial CNC Wood Routers 6 08-28-2008 10:29 PM
Question about model number. l u k e Haas Mills 6 02-23-2008 04:18 PM
How do i get my program number not theirs robertbair Fanuc 4 12-06-2007 12:13 PM
Number Counter CI_182 G-Code Programing 3 09-01-2007 04:41 PM
Dx-32 auto N number for you jtree83 Bridgeport and Hardinge Mills 4 09-26-2005 02:28 PM




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