Call Updated Sub Program


Results 1 to 5 of 5

Thread: Call Updated Sub Program

  1. #1
    Member
    Join Date
    May 2018
    Location
    United States
    Posts
    78
    Downloads
    0
    Uploads
    0

    Cool Call Updated Sub Program

    Hello All,
    I wondering how can we update the data or memory of the control (OKUMA 700). Let say my main program is:
    Comments...
    N1....
    N2 CALL O0001
    ....
    M01
    ...
    N10 CALL O0001
    ...
    ...
    And my sub is: (.SSB)
    O0001
    G01 X=1.25 Z=12.
    RTS
    At the block N2 the main program call sub 0001 and execute it then M01 will stop the machine. So the question is if I update the sub 0001 with new X and Y (I can do that in my PC) and reload the sub without reload the main (PROGRAM SELECT) and continue the main program to N10. But the X and Y value still not change. And if I reload the main (PROGRAM SELECT) then the sub will be updated to new value.
    Is there any way to delete the memory to clear out X and Y value without reloading the main program so that I can continue to run block N10 with the new value?

    Similar Threads:


  2. #2
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    2953
    Downloads
    0
    Uploads
    0

    Cool Re: Call Updated Sub Program

    hy nodo, if you wish, please be a little more specific, and explain what you wish to achieve ... you have explained the method, but you did not explained the goal, and i am afraid that the method that you wish to apply is not the best for your goal, simply because the method does not seems to be common

    ... you have used a linear type of code, and changed it by editing & reloading the file + praying&hoping to work
    ... you should use a parametric type of code, changing the way it behaves by using arguments inside your main program, so to avoid the need to edit & reload the file / kindly

    Code:
    [ main program ]
        ...
        CALL ONODO V1 = 1.25 V2 = 12 V3 = 10/10
        M = V3
        ...
        CALL ONODO V1 = 12.5 V2 = 21 V3 = 0001
        M = V3
    M = 01 + 1
    
    [ soubroutine ]
    (
        - you may keep the soubroutine also inside the *.min file
        - is not critical to use a different file, like *.ssb eq
    )
    ONODO(CHAU)
        G = V3 X + V1 Z + V2
    RTS


    Last edited by deadlykitten; 02-14-2020 at 04:26 PM.
    ... chip happens


  3. #3
    Member OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    1145
    Downloads
    0
    Uploads
    0

    Default Re: Call Updated Sub Program

    SSB is system sub and loads at power up. SUB is user sub and loads upon CALL statement.

    You must choose wisely...

    Experience is what you get just after you needed it.


  4. #4
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    2953
    Downloads
    0
    Uploads
    0

    Default Re: Call Updated Sub Program

    hy mr wizard, i was teached to use ssb, and i can tell that on osp300, they update only during program select

    even more, if i delete the program after it was selected, it will still run, but it will fail if i will try to re-select it

    i believe that having a soubroutine updated only during the call statement, is a trick to manage available memory, thus somehow similar to using pselect, allowing to load into the buffer only a slice of the cake i believe that having a soubroutine loaded only during the call statament leads to downtime, and for this reason i believe that it was an advantage for machines with limited memory, but i see no reason to use it on osp300

    however, you made me curios, and i will look futher more into ssb*s and sub*s / kindly

    ... chip happens


  5. #5
    Member OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    1145
    Downloads
    0
    Uploads
    0

    Default Re: Call Updated Sub Program

    The OSP 300 is running on Windows but the OSP 700 is not so the way they handle SSB files is different. Program select vs power up.

    Best regards,

    Experience is what you get just after you needed it.


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Call Updated Sub Program

Call Updated Sub Program

Call Updated Sub Program