587,760 active members*
2,740 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Please Help With Best Practise Methods
Results 1 to 13 of 13
  1. #1
    Join Date
    Sep 2005
    Posts
    59

    Please Help With Best Practise Methods

    I`m fairly new to Fanuc Controls and would like to try start off by using the best and easiest way to write programs. Below is a program i`ve written for our
    SKT250MS with Fanuc 18iT, I`m pretty sure you pro`s will find all sorts of useless or redundant code within the prog. I`d really appreciate any help to avoid me using the same rubbish bits over and over again.
    Our company has Edgecam which i`ll need to learn, but atm i`m just copy/pasting and editing sections of code to build new progs.
    If anyone has an Edgecam Post Processor file for the 18i that would help no end.

    Many Thanks.
    Great Forum !

    O0013 (PNR3111)
    M118 (Close Sub Chuck)
    G40 G80 G99
    G50 S2000
    G0 G28 U0
    N4 T0404 (Part Off Tool Shank Used as Bar Stop)
    G0 G54 Z3
    X-50
    M98 P2000 (Call Bar Feed Sub Program)
    G0 Z10
    G28 U0
    G53 Z400
    N9 T0909 (RUF FACE AND OD)
    G99 G96 S200 M3
    G0 G54 Z2 M8
    G0 X34
    M54 (Constant Speed Control on Main Spindle)
    G1 Z.1 F.3
    X10 F.05
    X-1 F.02
    G0 Z2
    G0 X34
    G71 U2.5 R.5
    G71 P100 Q101 U.1 W.05 F.25
    N100 G0 X19
    G1 G42 Z0
    X20.772
    G3 X21.255 Z-.185 R.25
    G1 X22.063 Z-1.692
    G3 X22.08 Z-1.757 R.25
    G1 Z-15
    X28.555
    G3 X29.038 Z-15.185 R.25
    G1 X30.123 Z-17.211
    G3 X30.14 Z-17.275 R.25
    G1 Z-25
    G1 X29.81 Z-26
    Z-94.5
    X30 Z-95
    N101 X34 G40
    G0 G28 U0
    G053 Z400
    M1
    N12 T1212 (SPOT DRILL)
    G97 S600 M3
    M8
    G0 G54 Z3
    X0
    G1 Z-3 F.05
    G0 Z3
    G28 U0
    G53 Z400
    M1
    N5 T0505 (DIA 12 DRILL)
    G97 S550 M3
    G0 G54 Z3 M8
    X0
    G83 Z-47 Q4000 F.04
    G80
    G0 Z3
    G0 G28 U0
    G53 Z400
    M1
    N3 T0303 (RUF BORE)
    G96 S100 M3
    G0 G54 G40 G99 Z3 M8
    X11
    G71 U.5 R.5
    G71 P102 Q103 U-.1 W.05 F.1
    N102 G0 X17
    G1 G41 Z0
    G1 X16.207
    G2 X15.854 Z-.073 R.25
    G1 X15.146 Z-.427
    G2 X15 Z-.604 R.25
    G1 Z-10
    X11 Z-12
    N103 X10 G40
    G0 Z3 G80
    G0 G28 U0
    G53 Z400
    M1
    N7 T0707 (FIN OD)
    G99
    G96 S250 M3
    G0 G54 Z3 M8
    G0 X14
    G1 G42 Z0 F.2
    X20.772 F.06
    G3 X21.255 Z-.185 R.25
    G1 X22.063 Z-1.692
    G3 X22.08 Z-1.757 R.25
    G1 Z-13.056
    G3 X21.934 Z-13.233 R.25
    G1 X21.1 Z-13.65
    Z-15
    X28.555
    G3 X29.038 Z-15.185 R.25
    G1 X30.123 Z-17.211
    G3 X30.14 Z-17.275 R.25
    G1 Z-24.849
    G1 X29.81 Z-25.16
    Z-94.4
    X30 Z-94.9
    X34 G40
    G0 Z3
    G0 G28 U0
    G053 Z400
    M1
    N13 T0313 (FIN BORE)
    G96 S100 M3
    G0 G54 Z3 M8
    G0 X17
    G1 G41 Z0 F.2
    G1 X16.207 F.04
    G2 X15.854 Z-.073 R.25
    G1 X15.146 Z-.427
    G2 X15 Z-.604 R.25
    G1 Z-10
    X11 Z-12
    X10 G40
    G0 Z3 G80
    G0 G28 U0
    G53 Z400
    M0 (Clean Bore)
    N8 T0808 (M14 TAP)
    G97 S80 M3
    G0 G54 G99 Z3 M8
    G0 X0
    M122 (Main Spindle Rigid Tap On)
    M129 S80 (Rigid Tap On Speed 80 RPM)
    G84 Z-41 F2
    G80
    M128 (Rigid Tap Off)
    M123 (Main Spindle Rigid Tap Off)
    G0 G28 U0
    G53 Z400
    N40 T O4 O4 (Part Off)
    G0 Z-4
    M0 (CLEAN JAWS)
    G97 S50 M3 (MAIN SPINDLE 50 RPM)
    G97 S50 M113 (SUB SPINDLE 50 RPM)
    M160 (SYNC SPINDLES)
    M119 (OPEN SUB CHUCK)
    G0 B-587 (RAPID B AXIS CLOSE TO JOB)
    G1 G98 B-682 F300 (MOVE B TO TRANSFER POSITION)
    M118 (CLOSE SUB CHUCK)
    M69 (OPEN MAIN CHUCK)
    G0 B-512 (Drag Bar To Part Off Position)
    M68 (Close Main Chuck)
    G0 X33 M8 (Bring Part Off Tool Into Position)
    G1 G99 X10 F.1
    X-1 F.05
    G1 B-511 (Move B Axis Away By 1mm To Ensure Part Off)
    G28 B0 (B AXIS HOME)
    G0 X33 M161 (Turn Spindle Sync Off)
    G28 U0 M5 (Stop Main Spindle)
    G53 Z400
    M1
    N10 T1010 (RUF FACE AND OD SUB SPINDLE)
    G50 S2000
    G96 S130 M113
    G0 G55 Z-3 M8
    G0 X34
    M55 (Constant Speed Control on Sub Spindle)
    G1 G99 X10 F.05
    X-1 F.02
    G0 Z-4
    X34
    Z-1.5
    G1 X10 F.1
    X-1 F.05
    G0 Z-3
    X34
    G1 Z-.1
    X10 F.1
    X-1 F.05
    G0 Z-2
    X34
    G71 U2 R.5
    G71 P104 Q105 U.1 W-.05 F.25
    N104 G0 X13
    G1 G41 Z0
    X14.793
    G2 X15.146 Z.073 R.25
    G1 X19.854 Z2.427
    G2 X20 Z2.604 R.25
    G1 Z24
    G3 X22 Z25 R1
    G1 X29.09
    G2 X29.573 Z25.185 R.25
    G1 X30.123 Z26.211
    G2 X30.14 Z26.275 R.25
    G1 Z35
    G1 X29.81 Z36
    Z77
    X30 Z78
    N105 X34 G40
    G0 Z-3
    G0 G28 U0
    G053 Z400
    M1
    N2 T0202 (FINISH TURN SUB SPINDLE)
    G96 S200 M113
    M8
    G0 G55 Z-3
    X22
    G1 M55 G99 Z0 F.3
    G1 X-1 F.05
    G0 Z-2
    G0 X13
    G1 G41 Z0 F.2
    X14.793 F.06
    G2 X15.146 Z.073 R.25
    G1 X19.854 Z2.427
    G2 X20 Z2.604 R.25
    G1 Z24
    G3 X22 Z25 R1
    G1 X29.09
    G2 X29.573 Z25.185 R.25
    G1 X30.123 Z26.211
    G2 X30.14 Z26.275 R.25
    G1 Z34.734
    G2 X30.1 Z34.832 R.25
    G1 X29.81 Z35
    Z77
    X30 Z78
    X31 Z79
    X34 G40 F.3
    G0 Z-3
    G28 U0
    G53 Z400
    M0
    N6 T0606 (CENTER DRILL)
    G97 S400 M113
    M8
    G0 G55 Z-3
    X0
    G1 Z5.5 F.05
    G0 Z-3
    G28 U0
    G53 Z400
    M1
    N19 T0919 (SCREWCUT M20 x 2.5)
    G97 S500 M113
    M8
    G4 X1
    G0 G55 G40 G99 Z-5 M8
    G0 X22
    G1 X20.5 F1
    G76 P060060 Q150 R.03
    G76 X16.933 Z24 P1534 Q300 F2.5
    G0 G28 U0
    G53 Z400
    M115 (Stop Sub Chuck)
    M30
    Attached Thumbnails Attached Thumbnails PNR3111.JPG  

  2. #2
    Join Date
    Nov 2006
    Posts
    24

    Program Structure

    THERE ARE MANY WAYS TO PROGRAM DIFFERENT MACHINES USING MANY DIFFERENT STRUCTURE AND FORMAT. I ALSO USE FANUC 18i CONTROLS AND IMPLEMENT A VARIETY OF G-CDE RESOURCES. I USE GIBBS CAM, CUSTOM MACRO, CANNED CYCLES, AND CONVERSATIONAL. FOR THE MOST PART YOUR PROGRAM LOOKS GOOD. THERE IS ALMOST ALWAYS A DIFFERENT WAY TO WRITE CODE. JUST CHOOSE A STYLE THAT WORKS FOR YOU AND MAKE SURE IT IS EASY TO UNDERSTAND BY OTHER GUYS THAT MAY BE RUNNING THAT MACHINE. I CURRENTLY AM RUNNING MILL/TURN MACHINES AND AS YOU KNOW THESES PROGRAMS CAN BE VERY COMPLEX. I AM ALWAYS LEARNING NEW WAYS TO SHORTEN AND SIMPIFY PROGRAMS. I LOOK FOWARD TO YOU AND I SHARING OUR IDEAS FOR OUR PROBLEMS ON THE 18i CONTROL!!

  3. #3
    Join Date
    Aug 2006
    Posts
    98
    Joey,

    I work whith KIA too !!! Like Turning Mad said, there are a lot off ways to do an program whithout help of CAD/CAM. I use the take over like an sub program. Like you do in the bar loader !!! But, the principal is that you do an program that you will understand in the future, or another people will understand. Whith the days and practice, you will learn more about the control and will use a diferent ways to do the same program. Practice is very important.

    Best Regards

    Daniel

  4. #4
    Join Date
    Sep 2005
    Posts
    59
    Thats great. thanks for your replies.
    i had a few days training and have had to use the basic examples given to us by the machine seller. Which is why I put some explanations in brackets to help me remember the codes.
    I`ve never used macros, maybe it`s time I got off my ass and started understanding how they can help me.

    I was wondering about the amount of times I`m calling the G99.
    What I found is if I `search for N number` and restart a program
    to run a particular tool, occasionally the machine would rapid to position but then wont feed. I`m probably doing it wrong. I put the control into edit mode and type in say N7 and hit the down arrow key to search, then go into memory mode and cycle start. It seems the control doesn`t read and set the machine thru the whole program but just starts with the N7 line. On the Siemens I would enter N7 and hit the `Search Forward with calculation`
    Should I be using the O search button on the Fanuc?

  5. #5
    Join Date
    Sep 2005
    Posts
    59
    Ah also wanted to say that the simulation graphics on the 18i is pretty poor.
    The milling we do is not complex, maybe hex`s and flats and holes on pcd but the simulation gives you no help to verify your code on radial moves.

  6. #6
    Join Date
    Aug 2006
    Posts
    98
    Joey,

    Fanuc is not the same form Siemens. It´s correct the way that you call an tool. When you put to search an N line, don´t forget that call the program 2 or 3 lines before, for example, an safe position. And don´t remenber too that use the work offset (g54 ...).

    Best Regards

    Daniel

  7. #7
    Join Date
    Nov 2006
    Posts
    24

    Fanuc Graphics

    YES, THE GRAPHIC DISPLAY ON ALL FANUC CONTROLS ARE LACKING ANY DEMINSIONAL DISPLAY, ONLY SHOWING TOOLPATH. BUT WITH IMPLEMENTING MANUAL GUIDEi, YOU WILL HAVE MUCH MORE POWER TO SEE 3 DIEMSIONAL PART RENDERING EITHER AS A SOLID OR WIRE FRAME. YOU CAN DRAW REALISTC TOOLS AND EVEN DRAW YOUR BLANK SHAPE AS A TRUE PART. DO NOT CONFUSE THE OUTDATED MANUAL GUIDE WITH THE LATEST SOFTWARE- MANUAL GUIDE i-. THERE ARE GREAT DIFFERENCES BETWEEN THE TWO WITH THE LATTER BEING MUCH MORE POWERFUL!! I THINK THE SIMULATOR IN YOUR CASE IS A WASTE OF TIME AND MONEY. ASK YOUR FANUC GUY TO INSTALL THE SOFTWARE AND SHOW YOU HOW IT WORKS. THEN MAKE YOUR PURCHASE DECISION.

  8. #8
    Join Date
    Sep 2005
    Posts
    59
    Finally had a response and it seems they are already making provision for a higher price tag. ( Hope that doesn`t sound to synical. )

    Extract from Fanuc email :-
    From an installation point of view Manual Guide i is not a single software package and is configured from software modules to suit the type of machine. Your current control configuration will have to be considered for suitability and if any changes may be required.

    To assist us we really need to have a copy of the Fanuc control data sheet which should be supplied with the machine. An example of a data sheet is attached and yours may not look exactly the same but should be similar.
    I`m still really keen to have a look at it so I`ll ask them to come in.
    Tnx for your info TURNING MAD

  9. #9
    Join Date
    Nov 2006
    Posts
    24

    fanuc examples

    here are some examples of manual guide i
    Attached Thumbnails Attached Thumbnails 1.BMP  

  10. #10
    Join Date
    Nov 2006
    Posts
    24

    examples

    let me try again
    Attached Files Attached Files
    • File Type: zip 1.zip (121.0 KB, 90 views)

  11. #11
    Join Date
    Nov 2006
    Posts
    24

    last try

    here goes
    Attached Files Attached Files

  12. #12
    Join Date
    Nov 2005
    Posts
    219
    Hi,

    I also run and program a SKT250MS and I love it. We just got it last Febuary. Im still learning all the shortcuts on the 18-I myself.

    I will post a program off of mine so you can compare it to yours.




    O7099(470-37099)
    (JT 9/14/06)
    (2.00X35.00)(CHROME)
    (2 TAPPED HOLES OFF CENTER)
    (BOTH ENDS)
    (6 SLUTS)
    (.125 CHAMFER BOTH ENDS)
    #500=[35.00+.125]
    #501=2.00
    #502=[501+.1]
    G10L2P01X0.Z-23.4684
    G10L2P02X0.Z-3.0123
    G10L2P03X0.Z-13.6459
    G10L2P04X0.Z11.6766
    G10L2P05X0.Z-3.0123
    G11
    /2M98P9999
    N10(CNMG 432)
    M118
    M32
    G40
    G28U0
    G28B0
    G99
    G40
    G54M54




    (CHAMFER)
    G50G99
    S3000
    T1010G54
    G0G96S1000M3
    Z0M8
    X2.1
    G1X-.07F.01
    G0W.05X1.7069
    G42G1Z0.
    G3X1.7634Z-.0117R.04
    G1X1.9766Z-.1183
    G3X2.0Z-.1466R.04
    G1G40X2.1
    G28U0M9
    G97M01


    (DRILL TAP)
    G54G98
    T0202(5/16 DRILL)
    M43
    G0C0.M8
    G97S4000M13
    G0Z.1
    X1.25M8
    G1Z-.9F20.
    G0Z.1
    X-1.25
    G1Z-.9
    G0Z2.M9
    M15
    M40
    M01
    G28U0.


    (3/8 LIVE TAP)
    G54G99
    T0909
    M43
    G0C0.M8
    M126
    G97S1000M13
    M8
    Z.1X1.25
    M129
    G84Z-.75R.0F.0625
    G84X-1.25Z-.75R.0F.0625
    G0Z1.M9
    G80
    M127
    M128
    M15
    G28U0
    M01

    T1213
    M5
    G54G0G98Z.05X0
    M69(MAIN CHUCK UNCLAMP)
    G1Z9.8225F500.
    M68(MAIN CHUCK CLAMP)
    G4P1500
    G99
    G0W.1
    G28U0



    M119
    G0B-14.5
    M118




    (RUFF)
    T0707
    M43
    G98
    G0C90.
    M13S4000
    G56G0Z-3.06
    X2.05M8
    G1Z-5.81X1.44F20.
    G1Z-3.06
    G0X2.05
    G0C270.

    M13S4000
    G1Z-5.81X1.44
    G1Z-3.06
    G28U0
    M40
    G99
    M15



    (KEYWAY)
    T0505
    M43
    G98
    G0C90.
    M13S1668
    G56G0X2.05Z-3.06M8
    G1Z-5.81X1.42F14.68
    G1Z-3.06
    G0X2.05
    G0C270.


    M13S1668
    G1Z-5.81X1.42
    G1Z-3.06
    G28U0.

    G99
    M15
    M01


    G0C0.
    M119
    B-13.
    M118
    M143
    A0.
    M119
    G0B-25.3222
    M118
    G4X1.
    M69
    G4X1.
    G28B0.
    M68
    M140


    (RUFF)
    T0707
    G98
    M43
    G0C120.
    M13S4000
    G57Z-23.87M8X2.05
    G1Z-25.75X1.44F20.
    G1Z-23.87
    G0X2.05
    G0C300.


    M13S4000
    G1Z-25.75X1.44
    G1Z-23.87
    G0X2.1



    G0C90.Z-29.19
    X2.05
    G1X1.44Z-31.94F20.
    G1Z-29.19
    G0X2.05


    G0C270.Z-31.94
    G1Z-29.19X1.44
    Z-31.94
    G28U0.


    M15
    M40
    M01


    (2-KEYWAYS 180 OUT 30DEGREES)
    T0515
    G98
    M43
    G0C120.
    M13S1668
    M8
    G57Z-23.87X2.05
    G1X1.42Z-25.75F14.68
    G1Z-23.87
    G0X2.05


    G0C300.
    M13S1668
    G1X1.42Z-25.75F14.68
    G1Z-23.87
    G0X2.05


    G0C90.Z-29.19
    G1X1.42Z-31.94
    G1Z-29.19
    G0X2.05

    G0C270.
    G1X1.42Z-31.94
    G1Z-29.19

    G28U0.
    M15
    G0C0.
    M01




    (REPOSITION)(B-AXIS)
    M01
    M119
    G4X1.

    G0B-20.3
    M143
    A0.
    M118
    M140
    M69
    M40
    M01
    (TRANSFER)
    (SUB FORWARD)
    T1299
    (.125 PART OFF)
    G54
    G50S1000
    G0G97S100M113(SUB SPINDLE ON)
    G0G97S100M3
    M160(SPINDLE SYNC ON)
    G50S3500
    M68
    G99G54G96S350
    G0Z.02M8
    X2.1
    G1X-.03F.004
    G0G28B0
    G0W.25
    G0G28U0.M9
    M5
    M161(SPINDLE SYNC OFF)
    M01
    G99
    G97


    T1020(CHAMFER)
    G50S4500G99
    G96S1000M113
    G58M55G0Z.1466X2.1
    G42G1X2.Z.1466F.01M8
    G3X1.9766Z.1183R.06
    G1X1.7634Z.0117
    G3X1.7069Z0.R.04
    G1X-.04
    G0G40W-.05
    G28U0
    G97


    G98
    G58
    T0404(5/16 DRILL)
    M143
    G0A0.M8
    S4000M13
    G0Z-.1
    X1.25
    G1Z.9F20.
    G0Z-.1
    X-1.25
    G1Z.9
    G0Z-1.
    M140
    G28U0M9
    M01


    (3/8 LIVE TAP)
    G58G99
    T0606
    M143
    G0A0.
    M126
    G97S1000M13
    M8
    Z-.1X1.25
    M129
    G84Z.75R.0F.0625
    G84X-1.25Z.75R.0F.0625
    G0Z-2.M9
    G80
    M127
    M128
    M15
    M140
    G28U0.
    M9
    M15
    M140
    M178
    M01
    M12
    M99

  13. #13
    Join Date
    Sep 2005
    Posts
    59
    Enjoyed those pics TURNING MAD thanks a bunch. Sure has a lot more functionality than the bog standard 18i. I have arranged for Fanuc to show us the prog next monday 15th.
    Over the phone the guy refused be drawn on offering a ball park figure for the cost, saying our machine would need to be looked at for compatibilty, even on the hardware side !
    I thought the manual guide i was a desktop pc based program that would cough up the code and enable me to pump that into the control as a finished program ?


    theemudracer I appreciate your program for reference and will be having a close look at it, so might be a few questions to follow
    :cheers:

Posting Permissions

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