512,997 active members
3,086 visitors online
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Okuma MA-50HB with OSP-E100 CONTROL
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Sep 2011
    Posts
    22

    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

  2. #2
    Member
    Join Date
    Jun 2015
    Posts
    2894

    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 ?
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  3. #3
    Member
    Join Date
    Sep 2011
    Posts
    22
    Hi,

    Perhaps I'm not using the correct terminology as I'm still new to the machine. The program is in the machine memory but maybe not called a library file. Is there such a thing?

    I have several programs/subprograms for milling a profile, chamfering holes and different things that are repetitive.

    I am using pre-existing programs from another machine and modifying the code to suit the Okuma.

    I tried renaming to .ssb file and this didn't work.

    All the programs are in the "MD1" directory.

    Thanks

    (Also forgot to mention this is a Horizontal mill where we are doing the same thing on 2 ends of a part)
    Last edited by Turning_Guy; 01-13-2020 at 01:38 PM. Reason: Added info about parts machined,added program directory info

  4. #4
    Registered
    Join Date
    Apr 2006
    Posts
    38

    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.

  5. #5
    Member
    Join Date
    Sep 2011
    Posts
    22
    Quote Originally Posted by tuanpq View Post
    When you select main program you must select sub program too.
    file *.LIB is auto load when power on not file *.sub.
    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
    Last edited by Turning_Guy; 01-13-2020 at 04:50 PM. Reason: add question

  6. #6
    Registered
    Join Date
    Apr 2006
    Posts
    38

    Re: Okuma MA-50HB with OSP-E100 CONTROL

    Quote Originally Posted by Turning_Guy View Post
    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.

  7. #7
    Member
    Join Date
    Sep 2011
    Posts
    22
    Quote Originally Posted by tuanpq View Post
    You see attach file.
    Hi,

    Does this mean you have attached a file? If so I can't see it.
    Please advise.

    Thanks

  8. #8
    Registered
    Join Date
    Apr 2006
    Posts
    38

    Re: Okuma MA-50HB with OSP-E100 CONTROL

    I am sorry

  9. #9
    Member
    Join Date
    Sep 2011
    Posts
    22
    Quote Originally Posted by tuanpq View Post
    I am sorry
    You are sorry for? Is it that you don't have any further info?

    No worries.

  10. #10
    Registered
    Join Date
    Apr 2006
    Posts
    38

    Re: Okuma MA-50HB with OSP-E100 CONTROL


  11. #11
    Registered
    Join Date
    Apr 2006
    Posts
    38

    Re: Okuma MA-50HB with OSP-E100 CONTROL

    do you see my attach file?

  12. #12
    Registered
    Join Date
    Apr 2006
    Posts
    38

    Re: Okuma MA-50HB with OSP-E100 CONTROL

    Quote Originally Posted by Turning_Guy View Post
    You are sorry for? Is it that you don't have any further info?

    No worries.
    no problem.

  13. #13
    Registered
    Join Date
    Apr 2006
    Posts
    38

    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.

  14. #14
    Member
    Join Date
    Sep 2011
    Posts
    22
    Quote Originally Posted by tuanpq View Post
    do you see my attach file?
    I see the file now but I am no able to open it. Thanks anyways

  15. #15
    Registered
    Join Date
    Apr 2009
    Posts
    1136

    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
    Experience is what you get just after you needed it.

  16. #16
    Member
    Join Date
    Sep 2011
    Posts
    22
    Hi all,

    Does anyone out there have any further input/insight on this programming issue?

    I would appreciate any help I can get.

    Thanks

  17. #17
    Member
    Join Date
    Sep 2011
    Posts
    22
    Quote Originally Posted by OkumaWiz View Post
    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
    Thanks OkumaWiz. I'll try this when the machine is back online.

    Cheers!

  18. #18
    Registered
    Join Date
    Apr 2006
    Posts
    38

    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

  19. #19
    Member
    Join Date
    Jun 2015
    Posts
    2894

    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

    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

    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

  20. #20
    Member
    Join Date
    Sep 2011
    Posts
    22
    Hi all,

    Thanks for your help. I have a lot of info to sort now and will try these thing once to machine is back online a it's still down for service.

    I hope I have no troubles like the last few days with following this thread. I've filed a ticket with industry forum as I've been not able to view all posts for the last few days.

    I'll let you know what happens when the machine is back up and I can try these options

    Cheers

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •