![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| I've programed Fanuc controls for a while now and I was asked a question the other day by a new guy that ran Okuma's before. He asked me if Fanuc's could run "subs" that are attached to the bottom of the main program like Okuma's can. One reason I ask is we were running a program using a standard sub and the control would hesitate when switching between the main program and sub. When we run a sub that repeats (M98 P1000 L20) it also hesitates. I think the hesitation is because the control can't read fast enough to make a reasonably smooth motion but that is just my guess. I was thinking that if the control would allow a sub in the main it would not hesitate as much. Thanks Steve |
|
#2
| ||||
| ||||
| You can use M99 Pnnnn in a program to "jump" to a sequence number in the same program. If your control has the Custom Macro option, you could add a counter and an IF statement to exit the branch when the counter reaches 21. I'm not sure how much faster this would be, however. |
|
#3
| ||||
| ||||
| I never tried, but theres parameters that set non-bufferred m codes- might try (carefully) with setting to 98 (and 99 for the return) and trying it. any non motion block in a fanuc results in in-position check- I think though if defined as not bufferred, might just buffer the next line(needs to be a motion block to prevent stops). I'll have to try it when I get a chance too ![]() Tim |
|
#6
| |||
| |||
|
That is true. I actually verified it with a stop watch some time back. The reason perhaps is, GOTO has to search all the sequence numbers, whereas WHILE_DO_ loop is fixed. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spell check it out!!! I just noticed CNCzone now has spell check! | HayTay | CNCzone Club House | 3 | 01-19-2007 07:59 AM |
| Check Out ! | vijaychd | General CAM Discussion | 0 | 05-31-2005 12:24 PM |
| Check out !! | vijaychd | Product Announcements & Manufacturer News | 0 | 05-31-2005 11:14 AM |
| Check this DRO | Konstantin | General Electronics Discussion | 0 | 05-02-2004 11:41 AM |