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 05-20-2009, 07:26 PM
 
Join Date: Sep 2008
Location: Great Britain
Posts: 32
cossiegaz is on a distinguished road
Additional information after M30 code?

What do i need to alter to allow my Fanuc Oi-MC controller to read in additional lines of programme after the M30 code?
The reason i ask is that i would like to add a renishaw probing cycle after the M30 in the programme so we can just search down to it and probe the tools straight away then have this cycle ignored when running the main programme due to it being after the M30, this will save us a hell of a lot of time on set-ups as we would no longer have to write out a probing cycle every time we set up a job.
Currently, when reading a programme into its directory the machine will stop reading when it sees an M30, is this due to the way the Fanuc controller is set up? i.e a parameter setting? Or is it to do with the set up of the system that sends the programme to the machine? We use a "Seiki" system if that means anything to anyone.

I know i could add it into the main programme and use block skip but some of our programmes already use block skip for other reasons and i dont really want to have to create seperate probing programmes either, would be far simpler to just keep it all in one programme, i have operated other machines that will read information after the M30 code.
Reply With Quote

  #2   Ban this user!
Old 05-20-2009, 09:44 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Never tried reading beyond M30 on a O control but there are many controls that can read past M30. Not sure on the O control but many do have a parameter that can shut off the I/O at the M30/M2... even M99. On most, you can switch this to a timer shut off value for when the control stops seeing a data flow. It can also be on the DNC side. Many DNC systems have similar parameters for turning off the I/O.

"probe the tools" ... so I take it this a tool setter? Why not just have a generic program that stays in the machine to set tools with instead of being in the part program? A relatively simple macro could accomodate to any tool count depending on the set up. Or just keep the probing program seperate of the part program and bring it in the machine like its a sub program. The operator just simply runs the program by itself then switches to the part program for the operation.

If you have macros then you could do this by a counter. Have a variable control whether or not the probing routine gets run. Once the probe cycle runs, it sets a number. When the control gets there, it simple looks at the variable then "GOTO" to a block number to skip the probing routine or sub call.
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #3   Ban this user!
Old 05-20-2009, 11:31 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

I believe Parameter 3201 bit 6 is what you're looking for. Try setting it to 1.
Reply With Quote

  #4   Ban this user!
Old 05-21-2009, 06:38 AM
 
Join Date: Sep 2008
Location: Great Britain
Posts: 32
cossiegaz is on a distinguished road

There is a generic program that stays in the machine but it has to be hand edited each time we set a job to suit whatever tools we are using, this takes up valuable machining time. And to have a seperate programme would mean having to get the programming department to create a seperate file in the DNC for every different part that we manufacture and as we make so many different parts they quite simply cannot be bothered to go through and do this.
Having the cycle after the M30 is definitely the easiest way as it is just a case of me editing the cycle on the end of the programme and returning it to the DNC.

dcoupar, thanks for the information, how easy is it to alter this parameter, i have very limited experience of parameter alteration having only seen other people do it a few times before
Reply With Quote

  #5   Ban this user!
Old 05-21-2009, 08:01 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

In MDI, go to OFFSET/SETTING, then [SETING], then cursor to PARAMETER WRITE = and key in 1 then INPUT. You'll get an alarm... ignore it.

Press SYSTEM, then [PARAM], then key in 3201 and [NO. SRH]

Parameter bits are numbered left to right: 7 6 5 4 3 2 1 0

Cursor right to bit 6. Key in 1 and INPUT.

Go back to OFFSET/SETTING and set PARAMETER WRITE = 0. RESET the alarm and try to load your program.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-21-2009, 12:22 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Cossiegaz,
So what you are saying is you don't have a standard way of touching off a tool? You setup your tools around a specific part? Why would you have to edit the tool touch off program?

A tool lenght is a tool length. If you put a tool in the machine and touch it off you should never have to offset it again unless it is crashed or worn. If you probe every tool in your machine all you would have to do is specify the part height in the program and run. If you put a different part on, the tool length should remain the same. An 6" long spot drill is 6" long no matter if your part is 1" tall or 100" tall.

Stevo
Reply With Quote

  #7   Ban this user!
Old 05-21-2009, 01:34 PM
 
Join Date: Aug 2007
Location: USA
Posts: 339
Boots is on a distinguished road

Have you thought about ending your part program with an M00 ? This is a dwell till you hit cycle start again. Write your edits and end with an M30. go back to the M00 and hit cycle start 2 times. There ya go.....on yer way.
Reply With Quote

  #8   Ban this user!
Old 05-21-2009, 03:00 PM
 
Join Date: Nov 2006
Location: UK
Posts: 121
ChattaMan is on a distinguished road
GOTO

You could always use a goto statement.....

O0001
M6T1
.....
your prog
.....
G53Z0Y0
GOTO999
N1
your probing prog
N999 M30

Search for N1 to do probing
Running machining prog will "skip" probing prog.
Reply With Quote

  #9   Ban this user!
Old 05-21-2009, 06:46 PM
 
Join Date: Sep 2008
Location: Great Britain
Posts: 32
cossiegaz is on a distinguished road

Thanks dcoupar, i shall try this when i am back at work.

stevo1, What i am saying is that we have a tool probing cycle that stays in the machine all the time, when setting up a job we would go through and edit this cycle to suit the tools in the job being set so if tool 1 was an 80mm square corner facemill without cutter compensation we would edit the probing cycle to offset the tool by 40mm and probe the length then after running and completing that job we would then set up the next job - a completely different part which would be using completely different tools so tool 1 could now be a 20mm endmill using cutter compensation so we would have to edit the probing cycle to offset the tool by 10mm to probe the length and then to move over and go down the side of the probe to measure the diameter of the tool, i want to have a probing cycle in the main programme after the M30 to suit the tools in that programme so as not to have to write one out every time that particular job is set up.

Boots, we did try this but the problem with this was that you would either have to re-set to the beginning of the programme once you reached the M00 at the end or alter it to an M30 which is what i think you are suggesting, this worked fine until it came to having to return the programme to the DNC if any edits had been made to the main programme, operators were forgetting to change the M30 back to M00 before returning the programme and the probing cycle was then lost as it would not return to the DNC because it was after an M30.

ChattaMan, I am not familiar with using GOTO commands, am i right in thinking that you are saying everything between the lines "GOTO999" and "N999M30" will be ignored? If this is the case and if i have no luck with the advice dcoupar has given me then your suggestion sounds like something that may be a good option.

Thanks for all the replies.
Reply With Quote

  #10   Ban this user!
Old 05-21-2009, 07:58 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by cossiegaz View Post
ChattaMan, I am not familiar with using GOTO commands, am i right in thinking that you are saying everything between the lines "GOTO999" and "N999M30" will be ignored?
That is exactly what it means. When the control reads a GOTO statement, it jumps to the block in the GOTO statement ignoring everything in between. Very useful in your case. You wouldn't have to mess with setting any parameters either.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-22-2009, 02:43 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,555
Superman is on a distinguished road
Buy me a Beer?

Why not leave your probing in the correct spot in the program, and insert a Block Skip at the front of the codes used in probing

block skip ON when running a program will miss any probing

or

use a "JUMP" or "GOTO" with a block skip
eg
Code:
/N1 GOTO N999
N2 M00
.... (probing)
M01
()
N999
T1 M6
... ( your program)
...
M30
Block skip ON = do probing, then do program ( miss reading line #N1 )
block skip OFF = do program only

2nd version may be best, as a default, when machine is fired up in the mornings, all switches are OFF, and the probe won't be called out accidently.
Reply With Quote

  #12   Ban this user!
Old 05-22-2009, 06:13 AM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

Remember that M99 does the same thing as GOTO in the main program.

In other words
In a main program

M99P3 == GOTO3
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
Additional Pseudo Axis mackeym General Metal Working Machines 2 08-14-2008 05:21 PM
Adding Additional Plugins to Mach3 GBBR2233 Tormach PCNC 3 02-11-2008 08:07 AM
Mach & Additional IOs aus-newb Mach Lathe 19 12-18-2006 10:07 AM
additional windows and menus hydrospin01 Haas Mills 3 11-02-2006 07:52 PM
Additional forum HuFlungDung General Metal Working Machines 6 03-03-2003 07:52 PM




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