![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Okuma Discuss Okuma machines here. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
i cannot seem to get the main program to recognize a sub program. sub name Odrill1.ssb main program i have done call Odrill also tried modin Odrill i have tried the file extension on the .ssb to .sub i also tried this just in case. changed the file name to O1drill.ssb and O1drill.sub programing book mentioned a Q after calling in a sub for repeat which in the main program i tried call Odrill Q1 and also modin Odrill Q1 (1 meaning just once. perplexed, tim |
|
#2
| ||||
| ||||
| Your 1st problem is in the naming -1st character is letter O -max 4 characters after O ( do not use OO as it is a system reserved sub ) eg OABCD, OAB12, ORUFF, OFIN1 etc. best way is to have the sub placed after the M2/M30, as it will be in only 1 file to load into the control if you have seperate files and forget to overwrite 1 of them ...... main program using CALL .. CALL O1234 Q2 ( Q= # of repeats ) .. .. M30 () O1234 ( sub ) .. RTS % main program using MODIN .. MODIN O1234 Z-.1 Z-.2 Z-.3 MODOUT .. .. M30 () O1234 ( sub ) .. RTS % If calling sub within a sub, the sub being called must be defined after the 1 being run O1234 ( sub1 ) CALL O1235 .. RTS O1235 ( sub2 ) MODIN OSUB3 Q3 Z-.1 Z-.2 .. MODOUT RTS OSUB3 ( sub3 ) .. RTS % Last edited by Superman; 04-05-2009 at 07:15 PM. |
|
#4
| ||||
| ||||
| I'll disagree with this library comment, any machine functions that would be used on a daily basis could and should be utilised in a library file (ie. pallet change , special coolant functions, tool check / measure, warm-up and the like.) Using the library is part of "bubble memory", space has to be reserved for these subs, in doing so, limits the ( already limited ) remaning space for the main program. ( CAD programs quite often don't put out short code, especially on a surfacing operation ). Subs ( routines and/or programs ) They can at the users discretion, be incorporated at the end of one NC file ( load 1 file , you are guaranteed that it is a complete working program) or have 1 program that calls up seperate sub-programs ( if a previous program called up ORUFF , and you forget to overwrite this sub .....I'd hate to be near the machine, or to tell the boss I've just stuffed the spindle ) |
![]() |
| 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 |
| Need Help!- osp7000m mx60 hb coolant problems | sleter | Okuma | 6 | 12-22-2008 08:18 PM |
| A question for subprograms | Hatebreeder | Fanuc | 11 | 07-18-2008 12:08 AM |
| Subprograms, Okuma Lathe LT10 Osp-U100L ? | Kai_DK | Okuma | 6 | 12-03-2007 07:32 AM |
| DPRNT on OSP7000M/OSP700M? | marcwdci | Okuma | 2 | 11-26-2007 12:13 PM |
| M97 Internal Subprograms????? | CAMCRASH | G-Code Programing | 6 | 03-24-2005 01:10 PM |