586,366 active members*
3,339 visitors online*
Register for free
Login
Results 1 to 15 of 15
  1. #1
    Join Date
    Feb 2009
    Posts
    5

    An example G-code for Sinumerik

    Hello, Can someone post an example of a simple G-code for a Sinumerik (840D)?
    Thanks

  2. #2
    Join Date
    Jan 2009
    Posts
    19

    sinumerik program

    here is a simple program used on a boring bar.

    T5 M6 ;TOOL CHANGE
    T6 ; PRE SELECT TOOL
    D1 G54 G90 G95 S500 F.012 M3
    TRANS Z-10 W10
    GO Z0
    X0 Y0 W5 ;position cutter in middle of hole
    W-1 ;position 1 inch in to hole in part
    G1 X2 G41
    G3 I-2 ; cut 4 inch diameter
    G0 X0 G40 ;rapid back to center and turn off cutter comp
    W10 ;rapid saddle out 10 inches
    TRANS
    M30 ; end program

    if you need more examples or have something specific you need done i could probably help. i have lots of programming experience with this and have written lots of macro's for various operations.

  3. #3
    Join Date
    Feb 2009
    Posts
    5
    Thanks for posting the code,
    This is bit complex for me. Could you please post as simple as

    Move in direction of X 10mm
    Move in direction of Y 10mm

    I actually want to see the exact format(headers etc) of the code for Sinumerik .
    thanks

  4. #4
    Join Date
    Jan 2009
    Posts
    19

    simple program

    the first few lines of the program are loading the tool and getting the offset designated.
    D1 TURNS ON TOOL LENGTH
    G54 OFFSET I AM USING
    G90 DESIGNATES ABSOLUTE COORDINATES
    G95 IS INCHES PER REV.
    S IS RPM
    F IS FEED IN IPR

    to move the actual axis all you need to program is the following.

    G0 X10 ;MOVE X ABSOLUTE 10MM FROM 0 IN RAPID G1 WOULD BE FEED
    Y10 ;MOVE Y 10MM UP FROM 0

    hope this is what you are looking for if not let me know. anything written after a semicolon in the program will not be read. by the control

  5. #5
    Join Date
    Feb 2008
    Posts
    586
    Quote Originally Posted by tfisher View Post
    GO X10 ;MOVE X ABSOLUTE 10MM FROM 0 IN RAPID G1 WOULD BE FEED
    Y10 ;MOVE Y 10MM UP FROM 0

    hope this is what you are looking for if not let me know. anything written after a semicolon in the program will not be read. by the control
    I think the GO should be G0 (difference between the word "GO" and "G ZERO")

  6. #6
    Join Date
    May 2006
    Posts
    10
    Sion,
    I will be glad to help you, only wish to know which kind of machine you have (turning or milling) and how many axes it have.

    Down you can see an example of my code for Waldrich Coburg Multitech portal milling machine, but don't be afraid it is not so complicated as seems.

    %_N_SetupNo1_MPF
    ;$PATH=/_N_WKS_DIR/_N_BLOK6_WPD

    ;recorded 11.07.2007
    ;cylinder head 6L23/30H
    ;Zero point G54: X-os...45 mm from center line
    ; " : Y-os...bearing center
    ; " : Z-os...marked machining line


    ;premachining, allowance +3 mm
    MSG ("TECHNOLOGICAL BASE")
    N10 L123
    N20 ATT_NO=1
    N30 L9926
    N40 L9925
    N50 M0 ;milling head D200, kapa45°
    N60 T_NO=8
    N70 L9923
    N80 G54
    N90 XV=0 YV=0 ZV=943
    N100 L9958
    N110 G0 G90 T=T_NO D1 Z200
    N120 M3 M41 S250 F960

    ;1. pass (narrow)
    N130 G0 G64 X100.499 Y595.625
    N140 Z15
    N150 G1 Z11 ;1. pass
    N160 Y295.625
    N170 X80.499
    N180 X37.499
    N190 G0 Z200
    ....
    ....
    ....
    N1460 L9925
    N1470 M0 ;TOOL dismounting
    N1480 T_NO=0
    N1490 L9923
    N1500 L123
    N1510 ATT_NO=1
    N1520 L9926
    N1530 M30

    I can try to find complete Programming manual in PDF format, if you need it.
    Regards,
    M. Talic

  7. #7
    Join Date
    Apr 2005
    Posts
    3634
    %_N_MAIN_MPF

    INIT_NC_PROG
    MACHINE_DATA


    G0 X0.0
    G0 Y0.0
    G01 X-10.0 F=50.0
    G01 Y-10.0 F=50.0
    G0 X0.0
    G0 Y0.0

    M30

    This is a sample from a Siemens 840D (NT) on a toolgrinder (5-axis). The code in red is prob. machine specific (sub programs), you can try as is, If it alarms out, just delete the code in red.

    A few things you should know (840D) runs 2 folders, the Main program & the Sub programs, each machine part can only have a single main program ( %_N_MAIN_MPF ) the "MPF" defines the Main program. You can do this from the "Program" softkey (Menu Select/Program).

    You can also run the same code from MDI:

    G0 X0.0
    G0 Y0.0
    G01 X-10.0 F=50.0
    G01 Y-10.0 F=50.0
    G0 X0.0
    G0 Y0.0

    M30


    *****************************************

    What machine are you running , & what specific cnc Control, 840D, 840Di,810D ?


    .
    Free DXF - vectorink.com

  8. #8
    Join Date
    Feb 2009
    Posts
    5
    Thanks a lot. that was all I need.

    @Tale, I use 3 axis milling machine for precesion cutting operaions.
    Yes a turorial would also be a great
    best wishes

  9. #9
    Join Date
    May 2006
    Posts
    10
    Quote Originally Posted by sion View Post
    Thanks a lot. that was all I need.

    @Tale, I use 3 axis milling machine for precesion cutting operaions.
    Yes a turorial would also be a great
    best wishes
    Sion,
    I find Sinumerik 840D Programming manual in PDF and I can send it to you,
    just need your e-mail address!

  10. #10
    Join Date
    Jan 2005
    Posts
    16

    CANNED CYCLE FOR SINUMERIK 840D CNC LATHE

    HI,


    CAN YOU PLEASE HELP ME ON CANNED CYCLE FOR SINUMERIK 840D CN LATHE.CURRENT PROGRAMS EXT ARE".MPF".PLS REPLY
    THANKS
    GUNA












    Quote Originally Posted by tfisher View Post
    here is a simple program used on a boring bar.

    T5 M6 ;TOOL CHANGE
    T6 ; PRE SELECT TOOL
    D1 G54 G90 G95 S500 F.012 M3
    TRANS Z-10 W10
    GO Z0
    X0 Y0 W5 ;position cutter in middle of hole
    W-1 ;position 1 inch in to hole in part
    G1 X2 G41
    G3 I-2 ; cut 4 inch diameter
    G0 X0 G40 ;rapid back to center and turn off cutter comp
    W10 ;rapid saddle out 10 inches
    TRANS
    M30 ; end program

    if you need more examples or have something specific you need done i could probably help. i have lots of programming experience with this and have written lots of macro's for various operations.

  11. #11
    Join Date
    Jan 2009
    Posts
    19

    lathe programming

    what kind of machining are you trying to do with the canned cycles? i'm not too familiar with the lathe cycles but i have looked at them and they are similiar to the milling ones.

  12. #12
    Join Date
    Jan 2005
    Posts
    16

    sinumerik canned cycle

    Quote Originally Posted by tfisher View Post
    what kind of machining are you trying to do with the canned cycles? i'm not too familiar with the lathe cycles but i have looked at them and they are similiar to the milling ones.

    Hi

    Thanks for your reply and this is for poreba cnc horizontal lathe.it has all work offsets like g54-g57.thks
    guna

  13. #13
    Join Date
    Jul 2010
    Posts
    0
    I can try to find complete Programming manual in PDF format, if you need it.
    Regards,

    Please send me Programming Manual in pdf for Siemens Sinumerik 840D,here is my email, ([email protected])

  14. #14
    Join Date
    May 2006
    Posts
    10
    I just sent original Siemens 840D Programming manual in PDF.
    Good luck!
    Tale

  15. #15
    Join Date
    Sep 2010
    Posts
    0
    need help badly i used sinumerik 802s but when calling cycle 95 all i got is an error 12550,i try to correct but still same error cname not define or found but i dont know how,i already adjusted my programs many times...help cycle 95 for me is very important....my email add is [email protected] and GOD BLESS.

Similar Threads

  1. help - sinumerik 3n
    By jaimeeduardo in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 12-02-2009, 12:39 PM
  2. SINUMERIK 810M GA1
    By amo in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 11-17-2009, 09:58 AM
  3. SINUMERIK SUBROUTINES
    By HOLOMON in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 07-25-2008, 12:25 PM
  4. Sinumerik 3M to pc control
    By jgriffith66 in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 11-05-2007, 10:13 AM
  5. G-code example for sinumerik
    By ari vederchi in forum G-Code Programing
    Replies: 5
    Last Post: 11-09-2006, 06:03 AM

Posting Permissions

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