Results 1 to 6 of 6

Thread: Simple OSP 5000 mill Program

  1. #1
    rgm
    rgm is offline
    Registered
    Join Date
    Aug 2007
    Location
    us
    Posts
    10
    Downloads
    0
    Uploads
    0

    Simple OSP 5000 mill Program

    I am working on an Okuma OSP 500 Mill (vertical), I am very experienced
    on Fanuc type controls.

    I am looking for a basic Program for the OSP 5000 mill control, to see the
    differances in the codes from Fanuc.

    Just a simple program some drilling and milling!

    Thanks,

    RGM


  2. #2
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    643
    Downloads
    0
    Uploads
    0
    Well there is much that is in common...
    All the std. moves for "Milling" is the same... G0, G1, G2, G3...
    Canned cycles differ slightly, certainly the return heights are set up differently.
    To set the return height use G71 Z.... Where Z... is the height to "Return" to.
    Use M53 to get the machine to return to the G71 Z level
    You can use the "R" level in the cycle definition line by specifying M54
    Here are some example programming stubs for various cycles:

    (FEED IN, RAPID OUT DRILLING CYCLE)
    (Z-=TARGET DEPTH)
    (R=RETURN HEIGHT IF USING M54)
    (P=DWELL TIME AT THE Z TARGET POINT)
    (F=FEEDRATE, MM/MIN OR IN/MIN DEPENDING ON YOUR PROGRAMMING UNITS)
    N100 M3 S2100
    N102 M8
    N104 G0 X... Y... (START POSITION FOR 1SR HOLE)
    N106 G56 HA Z800 (RAPID TO Z POSN ACTIVATING CURRENT SPINDLE TOOLS OFFSET)
    N108 G71 Z... (SET RETURN HEIGHT)
    N110 G81 Z-... R... P0.25 F... M53 (DRILL 1ST HOLE)
    N112 X Y (DRILL NEXT HOLE...)
    N114 X Y
    N116 X Y
    N118 ETC...
    N120 G0 Z800 (USING RAPID TO MOVE TO Z HOME POSN WILL CANCEL DRILLING CYCLE AND LEAVE SPINDLE RUNNING)
    N122 M5
    N124 M9

    (IF YOU USE G80 TO CANCEL THE CANNED CYCLE, THE SPINDLE WILL STOP)

    (DEEP HOLE PECK DRILLING CYCLE)
    (Z-=TARGET DEPTH)
    (R=RETURN HEIGHT IF USING M54)
    (I=PECK DEPTH PER J DISTANCE)
    (J=DEPTH TO DRILL BEFORE FULL RETRACT TO DESIGNATED RETURN LEVEL)
    (P=DWELL TIME AT TARGET DEPTH)

    N100 M3 S3000
    N102 M8
    N104 G0 X-225 Y0
    N110 Z200
    N112 G71 Z20
    N114 G83 Z-50 R6 I2 J6 P0.25 F450 M53
    N116 (LIST OF POSITIONS...)
    N118 G0 Z200
    N120 M142
    N122 M5
    N124 M9
    N126 Z800

    (RH TAPPING CYCLE)
    (FEED RATE IS CALCULATED FROM PITCH*RPM I AM PROGRAMMING IN MM HERE)
    N100 S250
    N102 M8
    N104 G0 X-225 Y0
    N110 Z200
    N112 G71 Z20
    N114 G84 Z-35 R10 P0.1 F437.5 M53
    N116 (LIST OF POSITIONS...)
    N118 G0 Z200
    N122 M5
    N124 M9
    N126 Z800

    (PECK DRILLING CYCLE)
    (Q=PECK DEPTH)
    N100 M3 S1880
    N102 M8
    N104 G0 X0 Y0
    N110 Z200
    N112 G71 Z20
    N114 G73 Z-50 R6 P0.05 Q6 F260 M53
    N116
    N118 G0 Z200
    N122 M5
    N124 M9
    N126 Z800

    (BORING CYCLE)
    (I OR J IS USED TO SPECIFY DIECTION TO MOVE THE SPINDLE AT THE BOTTOM OF THE CYCLE)
    (SPINDLE WILL STOP AT THE TARGET DEPTH, ORIENT, THEN MOVE BY THE I OR J AMOUNT TO CLEAR THE BORE)
    (THEN RAPID RETRACT)
    N100 M3 S500
    N102 M8
    N104 G0 X0 Y175
    N106 VSLNO=12
    N108 M143
    N110 Z200
    N112 G71 Z20
    N114 G86 Z-50 R6 P0.1 (I OR J) F30 M53
    N116
    N118 G0 Z200
    N122 M5
    N124 M9
    N126 Z800

    Patterns can be easily programmed using the following patterns:
    BHC= Bolt Hole Circle
    ARC= Holes placed in an ARC pattern
    LAA= Line At Angle
    SQRX= Square pattern
    GRDX= Grid based on X axis direction
    GRDY= Grid based on Y axis direction

    Hope this helps a little bit for you.
    Plenty more to go after this lot is for sure!
    Regards
    Brian.


  3. #3
    rgm
    rgm is offline
    Registered
    Join Date
    Aug 2007
    Location
    us
    Posts
    10
    Downloads
    0
    Uploads
    0
    Thanks very much! This is what I wanted!

    RGM


  4. #4
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    643
    Downloads
    0
    Uploads
    0
    Sub program Calls are done differently also...
    Fanuc use M98 Pxxxx to call a subroutine starting with Oxxxx and ending with M99 to return to the calling program.
    On an Okuma use this format:

    in the main program...
    N100 Blah blah blah get to the point where you need to pass control to the subroutine.
    N102 CALL Oxxxx
    N104 blah blah blah...
    continue on in the main program...

    Within the same program file, after the M02 line, create your subroutine as follows:
    Oxxxx
    N100 do something
    N102 do something else
    N104 YEP do some More
    N106 RTS

    Two important things here...
    1. The subprogram number MUST start with the letter "O" (oh, not zero!) and must be followed by up to 4 Alphanumeric characters...
    2. The subroutine is terminated by the letters "RTS" which stand for "ReTurn Subroutine". This is the same as using the M99 code in a Fanuc program.

    Rules for Subprogram naming:
    1. Must start with the letter "O"
    2. Can contain Letters and Numbers, but only up to a maximum of 4 characters.
    3. If you start with a Number, you can only use Numbers!
    4. If you start with a Letter, any combination will work (go figure!?!)

    Therefore, the following will work:
    O1234
    O1
    OB
    OABC1
    OA1B1
    OSUB1
    OSUB2

    But these will NOT work:
    O12345 <--- Too many digits
    O123A <--- Starts with a Number, but has Letter/s following
    OABCDE <--- Too many Characters.

    Hope this helps also.
    Regards
    Brian.


  • #5
    rgm
    rgm is offline
    Registered
    Join Date
    Aug 2007
    Location
    us
    Posts
    10
    Downloads
    0
    Uploads
    0
    Thanks for the info on the Subs, this will help!

    RGM


  • #6
    Registered
    Join Date
    Apr 2009
    Location
    usa
    Posts
    7
    Downloads
    0
    Uploads
    0
    thanks Brian


  • Similar Threads

    1. Recommended Servos for a Sherline 5000 Mill
      By CNCinCO in forum Benchtop Machines
      Replies: 1
      Last Post: 12-29-2008, 06:06 PM
    2. Need help with simple thread mill program
      By Captain Midnigh in forum Milltronics
      Replies: 14
      Last Post: 07-24-2008, 06:57 PM
    3. Looking for a good mill for $5000 max
      By coolboy499 in forum Benchtop Machines
      Replies: 6
      Last Post: 03-17-2008, 10:32 AM
    4. desktop cnc mill up to $5000
      By slow_rider in forum Benchtop Machines
      Replies: 1
      Last Post: 09-16-2007, 05:00 PM
    5. Servo 5000 CNC Bed Mill
      By sav1234 in forum General Metal Working Machines
      Replies: 1
      Last Post: 04-18-2007, 01:30 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.