![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| |||
| |||
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. Last edited by tfisher; 02-23-2009 at 09:43 AM. |
|
#3
| |||
| |||
| 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
| |||
| |||
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 Last edited by tfisher; 02-23-2009 at 04:02 PM. |
|
#5
| ||||
| ||||
|
I think the GO should be G0 (difference between the word "GO" and "G ZERO") |
| Sponsored Links |
|
#6
| |||
| |||
| 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
| ||||
| ||||
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 Files - Vectorink.com - myDXF.blogspot.com |
|
#9
| |||
| |||
| I find Sinumerik 840D Programming manual in PDF and I can send it to you, just need your e-mail address! |
|
#10
| |||
| |||
HI, CAN YOU PLEASE HELP ME ON CANNED CYCLE FOR SINUMERIK 840D CN LATHE.CURRENT PROGRAMS EXT ARE".MPF".PLS REPLY THANKS GUNA
|
| Sponsored Links |
|
#12
| |||
| |||
Hi Thanks for your reply and this is for poreba cnc horizontal lathe.it has all work offsets like g54-g57.thks guna |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help - sinumerik 3n | jaimeeduardo | General CNC (Mill and Lathe) Control Software (NC) | 1 | 12-02-2009 05:39 AM |
| SINUMERIK 810M GA1 | amo | General Electronics Discussion | 1 | 11-17-2009 02:58 AM |
| SINUMERIK SUBROUTINES | HOLOMON | General CNC (Mill and Lathe) Control Software (NC) | 2 | 07-25-2008 06:25 AM |
| Sinumerik 3M to pc control | jgriffith66 | General Electronics Discussion | 0 | 11-05-2007 03:13 AM |
| G-code example for sinumerik | ari vederchi | G-Code Programing | 5 | 11-08-2006 11:03 PM |