Hello, Can someone post an example of a simple G-code for a Sinumerik (840D)?
Thanks
Hello, Can someone post an example of a simple G-code for a Sinumerik (840D)?
Thanks
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.
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
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
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
%_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
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
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.
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])
I just sent original Siemens 840D Programming manual in PDF.
Good luck!
Tale
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.