Okuma MA-50HB with OSP-E100 CONTROL
Hi all,
The question I have is regarding running a program from memory.
I tried running a program with subprograms and I keep getting ERROR 5212 Subprogram name 1 'CALL 6601'
O6601 is the subprogram filename and is registered as such in the library as O6601.SUB
I have tried running this program in "A-Mtd" and "B-Mtd" and get the same problem.If I try running a different program without subs it is ok.
Any thoughts?
Thanks
Dave
Re: Okuma MA-50HB with OSP-E100 CONTROL
hy, try to use the subroutine without registering it as a library file; it should work, and if it does, my advice is to leave it like that
do you really wish to use the soubroutine as a library file ? if yes, then try to place the lib file in a folder <>md1 ( or whatever folder <> system device ); if this fails, then you will have no benefit by using *.lib; in such a case, register it as a msb
both msb and lib are autoloaded at power up; do you really wish to load a program from memory, or you just wish to use the soubroutine ? kindly :)
ps : If i may, what is 6601 doing ?
Re: Okuma MA-50HB with OSP-E100 CONTROL
When you select main program you must select sub program too.
file *.LIB is auto load when power on not file *.sub.
1 Attachment(s)
Re: Okuma MA-50HB with OSP-E100 CONTROL
Quote:
Originally Posted by
Turning_Guy
Ok sounds promising. Can you explain how I select the subprogram(s)? I have 4 or 5 I want to work with. I can't find anything in the manual other than how to select the main program and the interactive help menu is not any more helpful.
Do I need to change .sub to .lib for subs?
Thanks
You see attach file.
1 Attachment(s)
Re: Okuma MA-50HB with OSP-E100 CONTROL
1 Attachment(s)
Re: Okuma MA-50HB with OSP-E100 CONTROL
Re: Okuma MA-50HB with OSP-E100 CONTROL
do you see my attach file?
Re: Okuma MA-50HB with OSP-E100 CONTROL
Quote:
Originally Posted by
Turning_Guy
You are sorry for? Is it that you don't have any further info?
No worries.
no problem.
Re: Okuma MA-50HB with OSP-E100 CONTROL
I didn't understand why I attached the file 3 times, I saw that the file was attached, but a few minutes later it was automatically deleted.
Re: Okuma MA-50HB with OSP-E100 CONTROL
Your file name should not start with O but your sub program CALL should.
MAIN.MIN
Code
CALL O123
M2
SUBPRGM.SUB
O123
Code
RTS
2 Attachment(s)
Re: Okuma MA-50HB with OSP-E100 CONTROL
The forum is very strange. I cannot attach files and cannot view all posts in the thread so I copy them for you.
To execute a part program in the automatic operation mode, the program to be executed must be
selected.
All programs stored in memory have file names. The required main program is selected from the
stored part programs, then the subprograms called by this main program are selected and the programs are stored in the operation memory of the NC.
To select a part program, follow the procedure below:
(1) Select [F1] (MAIN PRG_OPER) from the function menu.
(2) Select [F1] (PROGRAM SELECT) from the pop-up function menu.
The MAIN PROGRAM SELECT pop-up window is displayed.
Fig.5-
(3) Designate the desired main program file in the main program file list.
The list can be scrolled using the page keys or the up/down cursor keys.
To change the display pattern of the list, select [F2] (FILE NAME) or [F3] (SORT) from the popup
function menu.
The respective changes to the list contents are as follows.
• FILE NAME: The file name pattern for list display is changed.
• SORT: The order of file names is changed on the basis of the file names, size or date.
(4) From the subprogram file list, designate the subprogram file called in the main program. Use
the left/right cursor keys to select the input area.
If not designating a subprogram file, specify “NOT SELECT”.
(5) Input the main program name in the program name input area.
(6) Select the running method, program size, whether subprogram/branch is included, whether
auto scale is used for animation, and whether the material is drawn in animation.
The RUNNING METHOD, PROGRAM SIZE, and SUB PROGRAM/BRANCH selection buttons
allow you to set the required parameters by a method other than the usual parameter setting
method as shown below. For details, refer to the table on the next page.
Running method Program size Sub program/branch
Method A = Normal - (Not selectable)
Method B = Large Included
Method S = Large Not included
(7) With the AUTO SCALE (ANIM) button, select whether the animation drawing range is automatically
adjusted to the material size (EFFECT) or not (INEFFECT) when the NC reads the material
data to be animated.
With the MATERIAL DRAW (ANIM) button, select whether the material is automatically drawn
(EFFECT) or not (INEFFECT) on the animation screen when a program is selected and the animation
material data is read.
The table below shows the relationship between the running method and the program size.
Attachment 434740
Attachment 434742
Re: Okuma MA-50HB with OSP-E100 CONTROL
hy, at 1st i thought that you have a register problem, but, after reading the reply from mr wizard, i believe that there is a syntax error : inside your code replace "CALL 6601" with "CALL O6601"; i believe that this code is inside a *.min file
Quote:
O6601 is the subprogram filename and is registered as such in the library as O6601.SUB
is not a must to have the soubroutine inside a *.sub file; you may also keep it inside a ssb / min file ... just saying
Quote:
I have tried running this program in "A-Mtd" and "B-Mtd" and get the same problem.
those A & B selection methods are for other things ... kindly :)
ps : most filenames that i use for ssb files, begin with "o" or "res", depending if the soubroutine is designed for machining, or as a general resource; i don't use e100