585,933 active members*
3,881 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Okuma fixture offset macro needed?
Results 1 to 16 of 16
  1. #1
    Join Date
    Oct 2004
    Posts
    48

    Okuma fixture offset macro needed?

    Hi Guys

    I am creating a macro to offset the coordinate system based on a table rotation. The machine is a MA-60 horizontal machining centre with a OSP-U100M controller on it, it has a 4th axis table that rotates around Y.
    We have a Doosan machine with a fanuc 31i that we have created a Dynamic offset function on and it works so well we want to do the same on our Okumas.
    What we have done is setup a macro that you call as follows:

    G123 D1 R90 (D=coordinate offset number, R=table rotation)

    This will take the current work offset (any number between 1-47) and rotate about the true centre of table by the value specified as "R". The macro uses trig to work out where the new datum X0, Y0 is relative to the old one and then moves the datum by that amount so you only need to setup one coordinate system no matter how many offsets you are using on the job and all the programmed values can stay in absolute mode!

    Does anyone use a similar system that can help as I am not as familiar with the Okuma variable address!

  2. #2
    Join Date
    Dec 2008
    Posts
    3109
    Okuma has already a "Fixture Offset Function" that is accessed thru a call statement

    ie
    Code:
    [For C/A axes]
    CALL OO88 (PX=___) (PY=___) (PZ=___) PC=___ PA=___ PH=___ (PP=___)
    PX, PY, PZ: Parallel travel from the reference work coordinate
    system (PH) when A = 0, C = 0
    Default: 0
    PA, PC: Rotational travel from the reference work coordinate
    system (PH) when A = 0, C = 0
    Not omissible
    PH: Reference work coordinate system No. Not omissible
    PP: Offset coordinate system number (zero point which
    is always rewritten)
    Default: currently selected
    coordinate system
    I've attached our manual for a 5-axis E100M control to look at
    Attached Files Attached Files

  3. #3
    Join Date
    Jun 2008
    Posts
    372
    Okuma Also has this for a horizontal. If your machine has IMAP it is in the control

    CALL OG367 PB= PH= PHW=

    There is also an Okuma *.SSB file to do this. Your local Okuma tech will have it

  4. #4
    Join Date
    Mar 2009
    Posts
    1982
    it looks very complicated and strange at the beginning. Let me guess. You want to repeat the same program at several different coordinates?
    So You have a lot (20 or more) user defined zero points.
    The command G15 H3 is selection of zero point 3 and so on.
    These zero points also can be defined in part program by variables:
    VZOFZ, VZOFY and so on

  5. #5
    Join Date
    Oct 2004
    Posts
    48
    Hi guys

    Thanks superman and budgie for your reply's, I am looking into how they will work on our machine.

    Algirdas, the idea of the offset function is not so much to repeat the same operation (as in multiple parts at different datums) but more for one job that has lots of different angles. If you use the standard setup, every time you rotate the "B" axis (table) you have to setup a new datum to machine the new bit of the same part and you then have to try and tie it up to the original datum. The dynamic offset function allows you to set one datum and then every time you rotate the table, the control works out where the original datum is now. It makes setting up jobs so much quicker and less chance of an error!

    Jake

  6. #6
    Join Date
    Mar 2009
    Posts
    1982
    Thank You.
    Now I understood:
    You want control to move selected coordinate zero point regarding B axis indexing (rotation). This makes drawing (model) more simple - single "datum" point.
    That's cool. I'll try in my area.

  7. #7
    Join Date
    Oct 2009
    Posts
    24
    For some time I have a similar problem. The machine is VH-40 with OSP7000M controller.The machine has a rotary axis (C axis) and tilting axis (B axis)
    Is there "Fixture Offset Function" for this machine? I tested the command CALL OO88 (PX=___) (PY=___) (PZ=___) PC=___ PB=___ PH=___ (PP=___) but the controller does not accept name subprogram.

  8. #8
    Join Date
    Jun 2008
    Posts
    372
    Yes there is but unlike the newer machines this macro is not in the *.MSb file. You will need to get from Your local Okuma dealer or Okuma europe Germany

  9. #9
    Join Date
    Oct 2009
    Posts
    24
    If this is not a file * .MSB, what is the format of this macro? Perhaps this macro is on this machine, but I am user of this machine since 2004, so I do not know the history of this machine. If you can still write format command?

  10. #10
    Join Date
    Oct 2009
    Posts
    24

    machine zero

    I am looking for a parameter which we set zero machine (the machine with B and C-axis). I have the 0.4 mm difference in x direction between the machine zero and C-axis rotation center. In this case, does not help correct the pivot distance in x-axis. It is certainly "nullpunkt korrektur" in system parameters (controller in German) (system variable VMOF *= 16...,...), but I am not sure if I can simply correct this parameter.

  11. #11
    Join Date
    Mar 2009
    Posts
    1982
    don't be afraid. You can save the parameter and restore it back if needed

  12. #12
    Join Date
    Oct 2009
    Posts
    24
    thanks Algirdas, now rotational shift of zero point should be calculated correctly

  13. #13
    Join Date
    Apr 2007
    Posts
    5
    Quote Originally Posted by jake_tb View Post

    I am creating a macro to offset the coordinate system based on a table rotation. The machine is a MA-60 horizontal machining centre with a OSP-U100M controller on it, it has a 4th axis table that rotates around Y.
    We have a Doosan machine with a fanuc 31i that we have created a Dynamic offset function on and it works so well we want to do the same on our Okumas.
    What we have done is setup a macro that you call as follows:

    G123 D1 R90 (D=coordinate offset number, R=table rotation)

    This will take the current work offset (any number between 1-47) and rotate about the true centre of table by the value specified as "R". The macro uses trig to work out where the new datum X0, Y0 is relative to the old one and then moves the datum by that amount so you only need to setup one coordinate system no matter how many offsets you are using on the job and all the programmed values can stay in absolute mode!
    Hi Jake,
    I have been looking for that function for my HMC with fanuc 16i, could it be possible to have a look at your macro?

  14. #14
    Join Date
    Jun 2008
    Posts
    372
    For a Fanuc

    %O9018 (G201 -- XZ COORDINATE ROTATION PROGRAM)
    (PARAMETER 6058)
    #10=[13980+[#4130*20]](CURRENT FIXTURE OFFSET NUMBER)
    #11=[#10+1](NUMBER FOR CURRENT OFFSET X)
    #12=[#10+2](NUMBER FOR CURRENT OFFSET Y)
    #13=[#10+3](NUMBER FOR CURRENT OFFSET Z)
    #14=[#10+4](NUMBER FOR CURRENT OFFSET B)
    #15=[ABS[#921]-ABS[#[#13]]](Z LENGTH FROM PALLET CL)
    #16=[#[#11]](X LENGTH FROM PALLET CL)
    #17=SQRT[[#15*#15]+[#16*#16]](HYPOTENUSE LENGTH)
    #18=ATAN[#16]/[#15](ANGLE FROM PALLET CL TO PART ORIGIN)
    (NOW MAKING NEW G59 COORDINATES)
    #19=[SIN[#18-#2]*[#17]](PART ANGLE + ORIGIN ANGLE X LENGTH)
    #20=[COS[#18-#2]*[#17]](PART ANGLE + ORIGIN ANGLE Z LENGTH)
    #5321=[#19](X G59 COORDINATE)
    #5322=[#[#12]]#5323=[#921]+[#20](Z G59 COORDINATE)
    #5324=[#[#14]]
    M99%

  15. #15
    Join Date
    Apr 2007
    Posts
    5
    Thank you BudgieW
    I got it all working now..

  16. #16
    Join Date
    Feb 2020
    Posts
    3

    Re: Okuma fixture offset macro needed?

    Hello, do you have the solution for offset a coordinate system for Fanuc, B axis ? I can help you for Okuma . Thank you.

Similar Threads

  1. Fixture Offset
    By dsdmax in forum Dynapath
    Replies: 2
    Last Post: 12-13-2012, 05:23 PM
  2. Macro for FIXTURE OFFSET (mazak variaxis mazatrol matrix)
    By NCexplorer in forum Mazak, Mitsubishi, Mazatrol
    Replies: 5
    Last Post: 05-26-2010, 04:19 PM
  3. offset fixture help
    By Hiredgun in forum Tormach Personal CNC Mill
    Replies: 4
    Last Post: 12-27-2009, 05:31 AM
  4. Macro and Z fixture offset
    By Techman in forum Fadal
    Replies: 0
    Last Post: 08-06-2009, 07:56 PM
  5. NX5 Fixture Offset
    By H234 in forum Uncategorised CAM Discussion
    Replies: 5
    Last Post: 03-27-2008, 02:12 PM

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
  •