1 CNC - Ushtrime Shqip Eng Germ PDF
1 CNC - Ushtrime Shqip Eng Germ PDF
• SIEMENS
• GSK- China
• MACH3 (USA)
The Home of Mach3
In this time, the Mach series of CNC software has evolved into the best available PC-
based CNC software on the market.
Not only is it extremely affordable to the hobbyist and industry alike, it is pioneering in its
features and continuing development.
There are over 10000 users of Mach who swear by its ease of use, great features, and
outstanding support.
Here are some of the basic features and functions
provided by Mach3:
-Converts a standard PC to a fully
featured, 6-axis CNC controller,
• Lathes
• Mills
• Routers
• Lasers
• Plasma
• Engravers
• Gear cutting
Wizards
Wizards can be written by anybody and are designed to allow users to quickly perform
routine or convenient operations without the need to have a pre-written G-Code file.
Included with Mach3 are free Wizards for such things as:
o Gear cutting
o Digitizing
o Holes
o Slots and keyways
o Text engraving
o Many standard shapes
o Surfacing
o MANY MORE
There Are Many Dialects of G-Code
Now that you have some basics under your belt, it's time to talk about some of the
complications that arise from different dialects of G-Code.
Some wag once joked that the great thing about standards is there are so many
to choose from. So it is from G-Code.
While much of it remains the same from controller to controller (setting aside
alternatives to G-Code from things like Mazatrol, Heidenhain's CNC language,
and others), there are important details and defaults you need to be aware of to
understand the particular dialect of G-code your controller needs to be happy.
In terms of sheer numbers of users, the Fanuc dialects of G-Code are probably
the most common among professionals and Mach3 among hobbyists.
This is not to say they are better than other G-Code dialects, just that they are
more common and so if you're going to talk to other machinists or move around
from job to job and machine to machine, it may be helpful if you're familiar with
those dialects and how they differ if your machine doesn't use one of these two
controllers.
G-Code has an extremely long history.
The original EIA standards work was begun in the 1960's but the first standard
wasn't released until 1980.
Even though there are now standards (ISO has one too), it isn't clear how
many controllers out there are purely standards based.
Most manufacturers have added their own little bells and whistles to make
their dialect better for competitive and marketing reasons.
For example, Haas has a series of special g-codes for pocket milling, as well
as some special parameters and capabilities on some standard G-Codes.
It pays to understand the special capabilities of your machine because they were
probably put there to save time based on feedback the manufacturer got from its
customers.
-Which G-Codes are Supported. Not all controllers support all G-Codes. For
example, many early lathe controls do not support the G71 and similar roughing
cycles.
Many controls are very limited in their capabilities around Macro Programming
and there are a lot of detail differences around exactly how Macros work.
-Parameters. Many G-Codes need additional information to do their job, so they
use other words (letters) to collect that information. Exactly which words collect
which information can vary from one control to the next.
We'll talk more shortly about what all of this means, but for now, be aware that
these differences exist.
For simple programs and MDI use, obviously a lot of this won't matter. But, for
writing complex hand-written G-Code or trying to understand why the G-Code
your CAM program emits isn't quite right, you'll need to be aware of the dialect
issues.
Standard Part programming language: RS 274-D (Gerber, GN-code)
5”
2.5”
p4
p2 p3 p5
1”
(4, 4)
p1
Motion of tool:
p0 p1 p2 p3 p4 p5 p1 p0
p0 (2, 2)
1. Set up the programming parameters
5”
2.5”
p4
p2 p3 p5
1”
Programming in inches
5”
Use absolute coordinates
Feed in ipm
45°
N010 G70 G90 G94 G97 M04
(4, 4)
p1
Spindle speed in rpm
p0 (2, 2)
Spindle CCW
2. Set up the machining conditions
5”
2.5”
p4
p2 p3 p5
1”
Machine moves in XY-plane
Spindle speed
45°
N020 G17 G75 F6.0 S300 T1001 M08
(4, 4)
p1
Tool no.
p0 (2, 2)
Flood coolant ON
3. Move tool from p0 to p1 in straight line
5”
2.5”
p4
p2 p3 p5
Linear interpolation
1”
target coordinates
45°
(4, 4)
p1
p0 (2, 2)
4. Cut profile from p1 to p2
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
5” target coordinates
p0 (2, 2)
5”
2.5”
p2 p3
p4
p5 Linear interpolation
target coordinates
1”
5”
y = 9 + 0.125 = 9.125
(6.5 - x)2 + 0.1252 = (1 - 0.125)2
x = 5.634
45° p3
(x, y)
(4, 4)
p1 (6.5, 9)
.125
p0 (2, 2)
1”
6. Cut along circle from p3 to p4
5”
2.5”
p4
p2 p3 p5
1”
5”
target coordinates
45°
N060 G03 X7.366 Y9.125 I6.5 J9.0
p0 (2, 2)
7. Cut from p4 to p5
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
8. Cut from p5 to p1
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
9. Return to home position, stop program
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
45°
end of data
(4, 4)
N100 M00
p1
Define Tool
CNC data
Make 3D model
Simulate
cutting
Automatic part programming and DNC
Usually, several tools are used for machining one workpiece. The tools have
different tool length. It is very troublesome to change the program in accordance
with the tools.
Therefore, the length of each tool used should be measured in advance.
By setting the difference between the length of the standard tool and the
length of each tool in the CNC (data display and setting : see III–11), machining
can be performed without altering the program even when the tool is changed.
This function is called tool length compensation.
•Machining using the side of cutter – Cutter compensation function (See
II–14.4,14.5,14.6)
Because a cutter has a radius, the center of the cutter path goes around the
workpiece with the cutter radius deviated.
If radius of cutters are stored in the CNC (Data Display and Setting : see III–11),
the tool can be moved by cutter radius apart from the machining part figure.
This function is called cutter compensation.
1.9 TOOL MOVEMENT RANGE – STROKE
Limit switches are installed at the ends of each axis on the machine to prevent tools from
moving beyond the ends.
The range in which tools can move is called the stroke.
When G62 is specified, and the tool path with cutter compensation applied forms an
inner corner, the feedrate is automatically overridden at both ends of the corner.
There are four types of inner corners (Fig. 5.4.2.1 (a)).2,θθp178, in Fig. 5.4.2.1 (a)
θp is a value set with parameter No. 1711. When θ is approximately
equal to θp, the inner corner is determined with an error of 0.001,or
less.
14.5 DETAILS OF CUTTER COMPENSATION C
14.5.1 General
When an angle of intersection created by tool paths specified with move commands for
two blocks is over 180°, it is referred to as “inner side.”
Tool path in start–up has two types A and B, and they are selected by
parameter SUP (No. 5003#0).
FREZIMI PLANAR
%PM
N9001
NI1 GI7
T1 M6
N2 GO X-35 Y130 Z-10 S500 M3
N3 G1 X200 F300
N4 Y90
N5 XO
N6 Y40
N7 X200
N8 Y10
N9 X-35
N10 G0 Z10 M30
Shpimi i vrimës 1 dhe 2 në makinën shpuese horizontale
N9001
N1 G17 TI
M66
N2 G54
N3 (GO) X65 Y20 Z2 S1200
M3
N4 G1 Z-33 F200
M8
N5 GO Z2
N6 (GO) X27 Y53
N7 G1 Z-33
N8 GO ZlOO
N9 (GO) X0 Y0
M30
G2 (G3) - INTERPOLIMI RRETHOR
Rrezja e një harku rrethor më të vogël se 1800 mundë të programohet pa parametra të interpolimit, me fjalë të adresës R
(fig.7.12).
Programi:
N1 G0 X50 Y20
N2 G1 Y30 F200
N3 G3 X40 Y40 R10
N4 G1 X25
Sqarim:
Rrethi plotë realizohet duke programuar koordinatat e pikës së qendrës së rrethit. Pika fillestare (PF) d.m.th. pika në të cilën
ndodhet instrumenti, është në të njëjtën kohë edhe pika përfundimtare (PP).
Rrezja llogaritet automatikisht nga njësia dirigjuese prej pikës fillestare dhe pikës se qendrës së rrethit.
Programi
N1 G0 G90 X30. Y45. S2000
M3
N2 G3 X30 Y45 I30 J25 Fl00
M8
N3 G0 X0 Y0
7.6.4. G04-KOHA E VONESËS
Koha e vonesës programohet direkt në sekonda me adresën F ose X.
Fjalia e ardhshme kryhet pas kalimit të vonesës së programuar kohore.
Funksioni G04 është aktiv vetëm në një fjali dhe sipas nevojës mund të
programohet përsëri.
Funksionet G17, G18, G19 përbëjnë një grup gjatë të cilës në fjalinë
programuese mund të jetë i veprueshëm vetëm një funksion. Te aktivizimi i
dirigjimit automatikisht aktivizohet G17. Pas urdhrit të një G-funksioni tjetër
automatikisht anulohet korrektura e gjatësive në aksin paraprak, e realizohet në
aksin e definuar më vonë.
Në asnjërin nga të dy akset nuk pason asnjë lëvizje vepruese.
G-funksioni Boshti i instrumentit Rrafshi i korrekturës të rrezes
Fig.7.14.
Programimi i përpunimit mund të duket kështu:
%PM
N9001
N1 G17 T1 M6
N2 G0 X50 Y50 Z2
S1000 M3
N3 G1 Z-10 F200
N4 G0 Z100
N5 Y200
M6
N6 G18 T2 M6
N7 G55
M3
N8 G0 X50 Yl02 Z-50
N9 G1 Y90
N10 G0 Y200 M30
Shpjegim:
Madhësinë e këtij ndryshimi programuesi nuk mundë t’i parasheh më herët, ashtu që
me ndihmën e funksionit për korrekturë G41 dhe G42 eliminohet dallimi në mes të
diametrit të programuar dhe atij real.
Nëse trajektorja e qendrës së frezës, shikuar në kahjen e lëvizjes gjendet majtas nga
sipërfaqja e përpunuar, atëherë përdoret funksioni G41 gjegjësisht G42 nëse freza është
djathtas nga sipërfaqja e përpunuar.
The program is translated into corresponding electrical signals for input to motors
that run the machine.
1.3 NUMERICAL CONTROL DEFINITION
The hole pattern is punched into tape which is passed through the tape
punch.
Much older units used a typewriter device called a Flexowriter, and later
devices included a microcomputer coupled with a tape punch unit.
Tape reader: reads the hole pattern on the tape and converts the pattern
to a corresponding electrical signal code.
NC SYSTEMS
Control units for NC machines are usually hardwired, which means that
all machine functions are controlled by the physical electronic elements
that are built into the controller.
The onboard computer, on the other hand, is “soft” wired, which means
the machine functions are encoded into the computer at the time of
manufacture, and they will not be erased when the CNC machine is
turned off .
All programs residing in RAM, however, are lost when the CNC
machine is turned off.
Newer MCU units have graphics screens that can display not only the
CNC program but the cutter paths generated and any errors in the
program.
The components found in many CNC systems are shown in Figure 1.2.
1.4 DEFINITION OF COMPUTER NUMERICAL
CONTROL (CNC) AND ITS COMPONENTS
5.3.3 Machine Control Unit –(MCU)
Me aplikimin e funksionit G84 dukshëm shkurtohet programi dhe lehtësohet programimi, sidomos në rastet e
tornimit me më shumë kalime. Funksioni G84 mundëson edhe tornim ciklik të konicitetit
Figurat më poshtë i tregojnë parametrat e nevojshëm për përshkrimin e këtij funksioni, ku kemi:
• Cikli i tornimit me dalje vertikale
• Cikli i tornimi me lëvizje të pjerrët
Makina me të cilën po flasim “Emco Turn 55” - nuk e përmban këtë funksion por e shfrytëzon funksionin Stock
removal.
Makina tornuese Emco mundëson disa mënyra të ndryshme të programimit të lëvizjeve rrethore:
- Programimi me pikën fillestare (S – start), pikën përfundimtare (E– end) dhe rrezen e rrethit (CR)
Komandat:
CR –- rrezja e rrethit
CR=+ për këndet deri 180o, CR= – për këndet mbi 180o.
2. programimi me pikën fillestare (A=P1), me pikën e fundit (N=P2) dhe me qendrën e rrethit (S=Po)
Komandat:
Komandat:
Komandat:
CIP lëvizja rrethore në hapin rrethor (Circle through Points) – rrethi përmes pikës
Janë dhënë:
Nr.
Funksionet e programit Vërejtje
Rend.
%MP
G X Z F S M T D CR AR I J
N9000
N1 18
N2 54
N3 23
N4 90 14 2 0.05 1500 3 1 1
N5 1 0
N6 3 20 -3 3
N7 1 -11
N8 2 24 -19.9 5
N9 1 -27
N10 2 30 30 3
N11 1 -70
N12 0 32
N13 100
N14 2
KOMPENSIMI I RREZES SE INSTRUMENTIT PRERËS
Maja e pllakës prerëse punohet me rreze të rrumbullakimit të cilat janë të standardizuara, p.sh. R 0,2 ose R 0,4.
Në procesin e tornimit të sipërfaqeve paralele dhe vertikalisht në aksin e rrotullimit, udhëzimi i majës imagjinare
të instrumentit (K) sjell deri te tornimi i saktë i konturës së dhënë pa marrë parasysh rrumbullakimin e vërtetë të
majës së tehut prerës së instrumentit
Kjo do me thënë se mund të përvetësohet rregulli vijues:
Gjatë tornimit të sipërfaqeve paralele dhe vertikale në aksin e rrotullimit nuk është e nevojshme të kompensohet
rrezja e majës së tehut prerës së instrumentit pasi që udhëzimi i majës imagjinare i tehut prerës së instrumentit
jep dimensione përfundimtare të sakta të copës punuese.
Gjatë tornimit të sipërfaqeve konike paraqitet shmangia e konturës së vërtetë nga kontura e kërkuar.
T - maja teorike e tehut prerës së instrumentit prerës
Δx, Δz - kompensimi i rrezes së majës së instrumentit, e llogarit vetë njësia drejtuese e makinës
Gjatë tornimit të sipërfaqeve konike dhe kanaleve, për arsye të rrumbullakimit të tehut prerës dhe udhëzimit të
majës imagjinare vjen deri te shmangia ndërmjet profilit të dhënë dhe të vërtetë, prandaj për arsye të tornimit
korrekt të këtyre sipërfaqeve është e nevojshme të kompensohet rrezja e tehut prerës të instrumentit dhe të
ndryshohen koordinatat e pikave të lëvizjes fillestare dhe përfundimtare.
Ekzistojnë dy funksione për korrigjimin e rrezes së instrumentit G41 dhe G42 me të cilat njësisë drejtuese të
makinës metalprerëse i jepen informata për lëvizjen e instrumentit dhe llogaritjen e korrigjimeve të nevojshme.
%MP
G X Z F S M T CR AR I J
N9000
N1 18
N2 54
N3 23
N4 90 0 2 0.05 1500 3 1
N5 1 0
N6 3 20 -10 10
N7 1 -30
N8 30 -40
N9 -100
N10 0 32
N11 100
N12 2
TORNIMI I FILETËS (HAPJA E FILETËS SË JASHTME, TË BRENDSHME)
Në makinën tornuese CNC mund të tornohen filetat e jashtme dhe të brendshme, gjegjësisht fileta të djathta dhe
të majta.
Gjatë kësaj duhet të kemi parasysh pozitën e pikës fillestare për tornimin e filetës si dhe pozitën e pikës
përfundimtare të filetës, kahjen e rrotullimit të boshtit, llojit të thikës (e majtë, e majtë). Gjithashtu na nevojiten
edhe standardet – të dhënat tabelare të vetë filetës (hapi, thellësia e filetës...).
Fileta mund të prehet duke shfrytëzuar funksionin G33 në një bllok, ku njësia drejtuese është e sinkronizuar
(përshtatur) me lëvizjen gjatësore të suportit, me rrotullimin e boshtit kryesor, për tu arritur pjerrësia (hapi) i
filetës,por mund të shfrytëzohet funksioni i ciklit për tornimin e filetës (Cycle 97, 98)
PRERJA E FILETËS
Është i mundur prerja e filetave të rrafshët, konik dhe spiral. Prerja e
filetave realizohet me instrument prerës përkatës,
ROT / AROT i rrotullon koordinatat e copës punuese rreth çdo aksi të sistemit
koordinativ X dhe Z ose këndin RPL në sipërfaqen e zgjedhur punuese.
Shembull: MIRROR X
FUNKSIONI I CIKLIT
Cikli është një varg i punimeve të përcaktuara paraprakisht të cilat makina do ti realizonte automatikisht.
Ndodhen në Menu \ Programs \ Standard cyles ose Menu \ Programs \ User cycles
Thirrja e ciklit është me ndihmën e funksionit horizontal të tastit <F4> Support. Ciklet gjithashtu mund të thirren
edhe me komandën MCALL
Recompile <F7> është tasti i cili mundëson drejtimin e parametrave të shkruar të ndonjë cikli
Me aktivizimin e ciklit për tornim <F2> hapet dritare e re e cila ofron lloje të tornimit.
Shembulli i figurës
Cikli për prerje te punimi i filetave
Ky cikël – CYCLE 96 – prodhon thellime në përputhje me DIN 96 të
formës A, B, C dhe D për punimin e ISO filetave metrike me
dimensione M3 deri M68.
Forma:
A – fileta të jashtme
C – fileta të brendshme
Për punimin e boshtit me filetë të jashtme dhe të brendshme nevojitet të shfrytëzohen 5 instrumente
të ndryshme
- thika e djathtë për tornim të jashtëm për heqje të shtresave prej Ø20x30 dhe rrëzimin e teheve
gjegjësisht paraprerje
- thika për punimin e filetës së jashtme M20x25
Heqja e shtresave të materialit në kuotën Ø20x30 të bëhet me 4 prerje me trashësi 2x1.2 mm dhe 2x1 mm
Zgjërimi i vrimës në diametër nominal Ø17.29 (diametri standard për M20) të sjellet me 3 prerje me trashësi 2x1
mm dhe prerja e fundit deri te diametri nominal
Për operacionet 1, 2, 3, 6, 7 të shfrytëzohet funksioni për shpejtësi konstante të prerjes (G97)
Te thirrja e ciklit për filetim të shqyrtohen parametrat e nevojshëm dhe të shfrytëzohen tabelat për fileta
standarde në shtojcë.
Nr. rend Përshkrimi i kalimeve - operacioneve Instrumenti Hapi Numri i rrot. rr/min
mm/rr
1. Tornimi i jashtëm në Ø20x30 T2 0.08 v=150 m/min
4
5 7
6
Nr. Numri
Instrumenti Hapi
rrotullimeve
Rend. Përshkrimi i vendosjes - operacionit
prerës mm/min rr/min
1 Shtrëngimi Koka shtr. 0.05 1500
2 Tornim I ashpër gjatësor ISO 6 0.05 1200
3 Përpunim I radiusit ISO 6 0.05 1500
%MP
G X Z F S M T D CR AR I J
N9000
N1 G55
N2 T1
N3 D1
N4 G0 G90 X0 Z2 F0.05 S1500 M3
N5 G1 X0 Z0
N6 G3 X14.5 Z-7.25 CR=7.25
N7 G1 X8 Z-25
N8 G2 X14 Z-28 CR=3
N9 G3 X18 Z-30 CR=2
N10 G1 X18 Z-40
N11 G2 X22 Z-42 CR=2
N12 G1 X22 Z-53
N13 G0 X24 Z-53
N14 X24 Z100
N15 T2
N16 D1
N17 G0 G90 X14 Z2 F0.05 S1200 M3
N19 G1 X14 Z0
N20 G1 X18 Z-2
N21 G1 X18 Z-24
N22 G1 X22 Z-26
N22 G1 X24 Z100
N24 M2
Përshkrimi i vendosjes - operacionit
Programimi
%MP
G X Y Z F S M T D CR AR I J
N9000
N1 G54
N2 T1
N3 LM06
N4 G0 G90 X0 Y0 Z5 F80 1500 M3
N5 G1 X0 Y0 Z-2
N6 G1 X15 Y0 Z-2
N7 G0 X15 Y0 Z20
N8 M2
G90 G0 X0 Y50
Nese: P60 ??
Nese: P70 ??
Linear Motion systems
Fig. 10.18 Use of recirculating ball screw and the LM device for axis movement in the bed
of a CNC machine tool (Courtesy Makino Milling Machines Co. Ltd., Tokyo, Japan)
Open-loop Control Systems
Open-loop systems normally use stepping motors as the drive devices to move
the machine slide. Due to the advent of precision ball screw and stepping
can be applied.
Fig. 10.24 . The linear scale fixed to the machine tool structure or direct position
measurement.
Aplikimi i vizoreve matese optike te makinat shpuese
Aplikimi i vizoreve matese optike tek makina tornuese
Figure 2-1 Typical arrangements of multiaxis CNC machines.
XYZ - are linear axes where Z is aligned with the spindle of the machine
.
ABC - are rotary axes rotating around XYZ respectively.