HobbyCNC fórum
FTP tárhely: http://cnctar.hobbycnc.hu v0.9.6 Régi HobbyCNC oldal: http://archiv.hobbycnc.hu

Új regisztráció / Átregisztráció a régi fórumról
    
   


Mach3 CNC vezérlő program

Mach3 CNC vezérlő szoftver használata...

 

Időrend:
Oldal 123 / 370 Ugrás ide:
Sorok:
|◄ Első  ◄ Előző   119  120  121  122  123  124  125  126  127   Következő ►  Utolsó ►|

  Fórum főoldal  |  A lap aljára

kflaudio | 100    2014-08-21 16:24:00 [12411]

Sziasztok!

Tudva valaki segíteni abban, hogy a ModBus vezérlőt a MACH3-ból mivel tudom "figyelni" ?
A probléma "csak" annyi, hogy ha lefagyna az USB, akkor a MACH3 észrevegye, hogy nincs "handshake"
Nagy segítség lenne egy tipp erre...


sipos8 | 453    2014-08-16 06:24:00 [12410]

Sziasztok. Valakinek nincs meg véletlen a METAL screenset?
Metal
Megköszönném.


AWE | 427    2014-08-14 18:50:00 [12409]

sziasztok ,Tudna valaki segiteni . A mach 3 -ba próbálom a home kapcsolókat beállítani . Az X jo elmegy a kapcsolóra és lejön róla. Y elmegy a kapcsolóig de nem jön le róla . Ha szoftveresen a Mach-ba megcserélem a x és a y tengelyt a probléma továbbra is fennáll de a másik tengelyen.
a Z az vagy megy 1 mm vagy nem majd átugorja és indul a Y.


sipos8 | 453    2014-08-13 08:52:00 [12408]

Köszönöm!!!

Előzmény: Rabb Ferenc, 2014-08-13 08:06:00 [12407]


Rabb Ferenc | 4346    2014-08-13 08:06:00 [12407]

Config > Home & Limits ablak, Home Neg oszlopban zöld pipa vagy piros X

Előzmény: sipos8, 2014-08-13 07:44:00 [12406]

sipos8 | 453    2014-08-13 07:44:00 [12406]

Üdv Urak.A Mach3-ban a referenciára futás irányát meg lehet változtatni?Ha igen akk merre?


AWE | 427    2014-08-13 06:57:00 [12405]

Szisztok egy olyan problémám lenne hogy a mach 3 at probálom beállitani de a z nem akar felmenni a home kapcsolora csak elvétve megy 1-2 mm fel, és a y az ráfut a kacsolora de nem jön le róla. A mach 2 vel ezek aporbélmáim nem voltak tehát nem a géppel van a gond.MOzgások irányok jok de a home felvétel nem . köszönöm


Rabb Ferenc | 4346    2014-08-11 19:55:00 [12404]

Én is

Előzmény: AWE, 2014-08-11 19:13:00 [12403]


AWE | 427    2014-08-11 19:13:00 [12403]

köszönöm küldtem mailt

Előzmény: Rabb Ferenc, 2014-08-11 18:45:00 [12402]


Rabb Ferenc | 4346    2014-08-11 18:45:00 [12402]

A MACH2-t sajnos nem ismerem menü szinten, így nem tudom, hogy azon mit lehet beállítani. A step és dir jelek szélessége biztosan nem befolyásolja a visszaállási pontosságot. Ha van javasolt értéke, akkor természetesen azt állíts be.

Biztosan van aki ismeri, és remélem olvassa is a problémádat. Szóval ne csüggedj!

De miért is nem használsz MACH3-at? A Mach1Lic.dat arra is érvényes.

Előzmény: AWE, 2014-08-11 15:49:00 [12401]


AWE | 427    2014-08-11 15:49:00 [12401]

Teljesen jogos 100mm/sec környékén probálgatom a gyorsulás az 800 , normálisan mozog igy fülre meg látásra de a visszaállási pontosság a gond és mindig túlmegy 0,6 mm kb . mach 2 használom . A minimum pulse meg a direction-nak lehet köze?


Rabb Ferenc | 4346    2014-08-11 13:37:00 [12400]

Először a mértékegységeket és a mérőszámokat kellene tisztába tenni Szerintem némi elírás történt...

Ha a sebességet kisebb értékre állítod, az használhat. De a kisebb gyorsulás (és lassulás) visszahozza a hibát, mert lassabban fog megállni. Tehát ha indulásnál bírja a hajtás lépéstévesztés nélkül, akkor mindkettőt hagyd a még biztonságosan működő magas értéken.

A Config > Homing/Limits > Slow Zone ablakban növeld a lassítási szakasz értékét pár milliméterrel. Akkor lesz ideje (pontosabban távolsága) megállni nagy sebességről is.

Előzmény: AWE, 2014-08-11 11:24:00 [12399]


AWE | 427    2014-08-11 11:24:00 [12399]

Sziasztok egy régi profi gépre adoptálom a mach2 . A vezérlő unipoláris , mozgatja is gyorsba 17000nn/percel a mechanikát .DE a végálláson látom h az x mindig tulfut levettem az x-t 700 ra meg a gyorsulást is . tudok még valamin állitani hogy stabilabb legyen a mozgása?


southboy | 64    2014-08-10 19:09:00 [12398]

Sziasztok.
Egy olyan gondom van hogy egy Huanyang VDF 2.2 Kw be van kötve rs 485 re de elindítom és e stop ba megáll egyből tud valaki mondani rá valami okosat? Mi lehet a gond? Előre is köszönöm a segítségeteket.


Miki2 | 2329    2014-08-10 10:13:00 [12397]

Az asztal egy MDF lapra csavarozott , bükk profillécekből van.

A menetfúrógép azóta üzemszerűen, napi 10 órás műszakban működik a megrendelő megelégedésére.

KoLa | 7547    2014-08-08 20:14:00 [12396]

Ez igen!
Tetszik a t-nútos asztal megoldásod!
Ez egy faipari gép, miből van az asztal anyaga?
Van egy nagy tábla alul, az acél vázra, és arra vannak csavarozva a profil lécek? MDF? vagy valami hasonló?
Tetszik hogy az asztal a legmagasabb két irányban!
A menetfúrógéped hogy üzemel? nem írtál róla mostanában!

Előzmény: Miki2, 2014-08-08 10:41:00 [12387]


Miki2 | 2329    2014-08-08 13:38:00 [12395]

Iraki megrendelésre készült.

Előzmény: Hunka Tibor, 2014-08-08 13:13:00 [12392]


Miki2 | 2329    2014-08-08 13:38:00 [12394]

2300x1100 mm-es ellipszis

Előzmény: Miki2, 2014-08-08 13:37:00 [12393]


Miki2 | 2329    2014-08-08 13:37:00 [12393]

1.5 Modul Z20
Én is "csak" 30 m/perc sebességgel járatom.
Így is elég gyors.
Szerintem jól látható a videón, ahol egy 2300x110 mm-es ellipszist jár körbe.

Előzmény: Pabló, 2014-08-08 12:57:00 [12391]


Hunka Tibor | 8036    2014-08-08 13:13:00 [12392]

Mit fogsz rajta gyártani ?

Előzmény: Miki2, 2014-08-08 10:41:00 [12387]


Pabló | 1615    2014-08-08 12:57:00 [12391]

Mekkora modul, és mekkora átmérőjű kerék?
Nekem esztergámon van fogaslécem, kb 2-es modul, de simán tudja a század pontosságot, hát igen, és sebességben is simán tudja a 15m/mint-t.
Nem is akarom feljebb rakni, így is épp elég megfogni.

Előzmény: Miki2, 2014-08-08 12:38:00 [12390]


Miki2 | 2329    2014-08-08 12:38:00 [12390]

Természetesen az.
Ekkora sebességet nem tudtam volna orsóval elérni.

Előzmény: Pabló, 2014-08-08 12:25:00 [12389]


Pabló | 1615    2014-08-08 12:25:00 [12389]

Szép lett!
Meghajtása? Fogasléc?

Előzmény: Miki2, 2014-08-08 10:41:00 [12387]


kari | 1532    2014-08-08 10:53:00 [12388]

Garatula !!

Előzmény: Miki2, 2014-08-08 10:41:00 [12387]


Miki2 | 2329    2014-08-08 10:41:00 [12387]

Még egy kép a gépről



Miki2 | 2329    2014-08-08 10:08:00 [12386]

Elkészült az újabb gépem.
Az asztal mérete 3.000 x 1.500 mm.
A maximális gyorsjárat, amit sikerült gond nélkül beállítani 44.000 mm/perc.
Többet a számítógép nem engedélyezett.

Rövid video


Csabax68 | 136    2014-07-30 12:44:00 [12385]

Mach3-ban hol lehet beállítani hogy csökkentse a felbontást tized vagy század mm-re


szmore84 | 122    2014-07-29 14:31:00 [12384]

Sziasztok,

egy kis beállítási segítséget kérnék szépen.
Vettem a távoli kínai barátainktól egy 100-as kézi kereket. A mach3-t összehoztam vele hogy működjön. Olyan gondom van hogy akár mit állítok nem tudom úgy összehozni hogy mondjuk 1 teljes fordulat legyen 10mm mozgás. Ez egyáltalán megoldható? Ha igen akkor kérnék segítséget a beállításhoz.

Köszönöm előre is

szmore84


elektron | 15859    2014-07-29 01:19:00 [12383]

Na legalább most már fel tudom kapcsolni a lézert ezzel, egyelőre mindegy, mert nem képet akarok csinálni, ahol gyorsan kell ki be kapcsolni, hanem vágni, vagy feliratot, ahhoz meg nem kell gyorsan kapcsolnia, mindegy.


elektron | 15859    2014-07-29 01:17:00 [12382]

Na, most a Diagnostic oldalon megláttam, hogy az output #4 világít, ha a Pin Ports fülön a output3- ra van állítva az M7 parancs, akkor eggyel kevesebb értéket kell ott beírni ?

Úgy néz ki. és emiatt nem csinálta, de az M11 P4 nem működik mégse, vagy ezt a parancsot nem ismeri alapból ?


elektron | 15859    2014-07-29 00:58:00 [12381]

Itt zavarodok meg a Mach3-mal, hogy egy kimenetet nem tudok felkapcsolni, mi a fenét kell állítani, hogy működjön ?

Próbáltam:

M11 P7
M10 p7

aztán az M7, M9 re a 3. mas outputra tettem, az se csinál semmit.


Sásdi Zoltán | 722    2014-07-23 17:55:00 [12380]

Köszönöm- próbálom

Előzmény: csewe, 2014-07-22 19:39:00 [12379]


csewe | 2578    2014-07-22 19:39:00 [12379]

Gasználd ezt az utasításpárt.
"
10.7.15. Léptékezés G50 és G51
Léptéktényező definiálásához, még mielőtt alkalmazná az X , Y, Z, A, B, C, I és J szavakat,
programozza a G51 X~ Y~ Z~ A~ B~ C~ utasítást, ahol X, Y, Z stb. szavak az adott tengelyek
léptéktényezői.
Az értékek önmaguk természetesen sohasem skálázottak.
Nem engedélyezett egyenlőtlen léptéktényezőket használni elliptikus ívek G2-vel vagy G3-mal történő
létrehözásához.
Minden tengely léptéktényezőjének 1,0-ra történő visszaállításához programozzon G50-et"


Sásdi Zoltán | 722    2014-07-22 18:20:00 [12378]

Szervusztok
Segítség kellene. Kis gépem van, a korábban elérhető skorpió nagy neki. Először a mator beállításnál "feleztem",valakitől azt a tanácsot kaptam a DRO mellett lévő oszlpban állítsam a 1x szorzót, 0.5-re. Korábban ez müködött, most nem. Vajon mit rontottam el? Lehet ezt valaholengedélyezni. Bár amikor negativra állítottam a számot,ellenkező irányban indult.


n/a (inaktív)    2014-07-19 00:04:00 [12377]

Sziasztok! Csak most ismerkedek ezzel a CNC gépkezeléssel. A gépemet Mach3 program vezérli. A kérdésem annyi lenne,hogy bár a géphez kaptam néhány programot amit tudok használni,de szeretném tovább fejleszteni a dolgot. A programokat (relief munkák)amiket a Mach3 értelmez,hogyan lehet megírni? Esetleg valaki tud ebben segíteni? Hogyan induljak neki? Könyv,program esetleg egyéb... Egy fényképből milyen módon lehet egy programot létrehozni amit a Mach3 értelmez? Köszi a segítséget. Mindenkitől elfogadom a taácsot.

mssleepy | 716    2014-07-15 09:02:00 [12376]

Köszönöm nektek.

Aztán utána néztem a Mach3 leírásban is.

Csak azt hittem van a Mach3-ban valamilyen ismételt végrehajtás, ahol megadhatom, hogy hányszor marjon és milyen irányban és mennyivel tolja el a következőt. Végül is van benne ismételt végrehajtás, csak nem tudom megadni az eltolást.
Végül ciklusba raktam a generált G kódot és a főprogramból hívogattam, közben a G52-vel eltologatva a nullpontot. És a végén kinulláztam ahogy írtad. Így szépen működik.


Pabló | 1615    2014-07-14 20:10:00 [12375]

Igen a g52 x-y kívánt értékkel.
Utána mindig érdemes beadni neki az x0 y0 át.
Meg érdemes vele vigyázni, mert öröklődik.
Ha nem nullázod vissza, lehet nem tudod helyesen a nullpontot kinullázni, mert ezt figyelembe veszi mindadig, míg nem kap nulla értéket.
Ha jól emlékszek az m30 se törli vissza.
De ezt könnyű megszokni, én használom rendszeresen, minden gond nélkül.

Előzmény: elektron, 2014-07-14 12:13:00 [12374]


elektron | 15859    2014-07-14 12:13:00 [12374]

Csak a G52-t akartam bemásolni, elnézést modi ha ki tudná venni köszönöm.


elektron | 15859    2014-07-14 12:12:00 [12373]

G52, én ezzel tologattam el.

des


Summary of G-Codes

All MachMotion CNC controls use the Mach3 software. Click on G-code you would like to have more more information about.
PDF
Mach3 GCode Language Reference
Download PDF

G0 Rapid positioning G54 Use fixture offset 1
G1 Linear interpolation G55 Use fixture offset 2
G2 Clockwise circular/helical interpolation G56 Use fixture offset 3
G3 Counterclockwise circular/Helical interpolation G57 Use fixture offset 4
G4 Dwell G59 Use fixture offset 6 / use general fixture number
G10 Coordinate system origin setting G61/G64 Exact stop/Constant Velocity mode
G12 Clockwise circular pocket G68/G69 Rotate program coordinate system
G13 Counterclockwise circular pocket G70/G71 Inch/Millimeter unit
G15/G16 Polar Coordinate moves in G0 and G1 G73 Canned cycle - peck drilling
G17 XY Plane select G80 Cancel motion mode
G18 XZ plane select G81 Canned cycle - drilling
G19 YZ plane select G82 Canned cycle - drilling with dwell
G20/G21 Inch/Millimeter unit G83 Canned cycle - peck drilling
G28 Return home G85/G86/G88/G89 Canned cycle - boring
G28.1 Reference axes G90 Absolute distance mode
G30 Return home G90.1 Absolute IJK mode
G31 Straight probe G91 Incremental distance mode
G40 Cancel cutter radius compensation G91.1 Incremental IJK mode
G41/G42 Start cutter radius compensation left/right G92 Offset coordinates and set parameters
G43 Apply tool length offset (plus) G92.x Cancel G92 etc.
G49 Cancel tool length offset G93 Inverse time feed mode
G50 Reset all scale factors to 1.0 G94 Units Per Min.
G51 Set axis data input scale factors G98 Rapid Height By Z Height
G52 Temporary coordinate system offsets G99 Rapid Height By R Height
G53 Move in absolute machine coordinate system


G00 Rapid Move

(a) For rapid linear motion, program G0 X~ Y~ Z~ A~ B~ C~, where all the axis words are optional, except that at least one must be used. The G0 is optional if the current motion mode is G0. This will produce co-ordinated linear motion to the destination point at the current traverse rate (or slower if the machine will not go that fast). It is expected that cutting will not take place when a G0 command is executing.

(b) If G16 has been executed to set a Polar Origin then for rapid linear motion to a point described by a radius and angle G0 X~ Y~ can be used. X~ is the radius of the line from the G16 polar origin and Y~ is the angle in degrees measured with increasing values counterclockwise from the 3 o&p12/G-codes/pages.html#39;clock direction (i.e. the conventional four quadrant conventions).

Coordinates of the current point at the time of executing the G16 are the polar origin.

It is an error if:

¨ all axis words are omitted.

If cutter radius compensation is active, the motion will differ from the above; see Cutter Compensation. If G53 is programmed on the same line, the motion will also differ; see Absolute Coordinates.

Return to G-code list


G01 Linear Move

(a) For linear motion at feed rate (for cutting or not), program G1 X~ Y~ Z~ A~ B~ C~, where all the axis words are optional, except that at least one must be used. The G1 is optional if the current motion mode is G1. This will produce co-ordinated linear motion to the destination point at the current feed rate (or slower if the machine will not go that fast).

(b) If G16 has been executed to set a polar origin then linear motion at feed rate to a point described by a radius and angle G0 X~ Y~ can be used. X~ is the radius of the line from the G16 polar origin and Y~ is the angle in degrees measured with increasing values counterclockwise from the 3 o'clock direction (i.e. the conventional four quadrant conventions).

Coordinates of the current point at the time of executing the G16 are the polar origin.

It is an error if:

¨ all axis words are omitted.

If cutter radius compensation is active, the motion will differ from the above; see Cutter Compensation. If G53 is programmed on the same line, the motion will also differ; see Absolute Coordinates.

Return to G-code list


G02 & G03 Arc Move

A circular or helical arc is specified using either G2 (clockwise arc) or G3 (counterclockwise arc). The axis of the circle or helix must be parallel to the X, Y, or Z-axis of the machine coordinate system. The axis (or, equivalently, the plane perpendicular to the axis) is selected with G17 (Z-axis, XY-plane), G18 (Y-axis, XZ-plane), or G19 (X-axis, YZ-plane). If the arc is circular, it lies in a plane parallel to the selected plane.

If a line of code makes an arc and includes rotational axis motion, the rotational axes turn at a constant rate so that the rotational motion starts and finishes when the XYZ motion starts and finishes. Lines of this sort are hardly ever programmed.

If cutter radius compensation is active, the motion will differ from the above; see Cutter Compensation.
Two formats are allowed for specifying an arc. We will call these the center format and the radius format. In both formats the G2 or G3 is optional if it is the current motion mode.
Arc Center Format

In the center format, the coordinates of the end point of the arc in the selected plane are specified along with the offsets of the center of the arc from the current location. In this format, it is OK if the end point of the arc is the same as the current point. It is an error if:

¨ when the arc is projected on the selected plane, the distance from the current point to the center differs from the distance from the end point to the center by more than 0.0002 inch (if inches are being used) or 0.002 millimetre (if millimetres are being used).

The center is specified using the I and J words. There are two ways of interpreting them. The usual way is that I and J are the center relative to the current point at the start of the arc. This is sometimes called Incremental IJ mode. The second way is that I and J specify the center as actual coordinates in the current system. This is rather misleadingly called Absolute IJ mode. The IJ mode is set using the Configure>State… menu when Mach3 is set up. The choice of modes are to provide compatibility with commercial controllers. You will probably find Incremental to be best. In Absolute it will, of course usually be necessary to use both I and J words unless by chance the arc's centre is at the origin.

When the XY-plane is selected, program G2 X~ Y~ Z~ A~ B~ C~ I~ J~ (or use G3 instead of G2). The axis words are all optional except that at least one of X and Y must be used. I and J are the offsets from the current location or coordinates - depending on IJ mode (X and Y directions, respectively) of the center of the circle. I and J are optional except that at least one of the two must be used. It is an error if:

¨ X and Y are both omitted,

¨ I and J are both omitted.

When the XZ-plane is selected, program G2 X~ Y~ Z~ A~ B~ C~ I~ K~ (or use G3 instead of G2). The axis words are all optional except that at least one of X and Z must be used. I and K are the offsets from the current location or coordinates - depending on IJ mode (X and Z directions, respectively) of the center of the circle. I and K are optional except that at least one of the two must be used. It is an error if:

¨ X and Z are both omitted,

¨ I and K are both omitted.

When the YZ-plane is selected, program G2 X~ Y~ Z~ A~ B~ C~ J~ K~ (or use G3 instead of G2). The axis words are all optional except that at least one of Y and Z must be used. J and K are the offsets from the current location or coordinates - depending on IJ mode (Y and Z directions, respectively) of the center of the circle. J and K are optional except that at least one of the two must be used. It is an error if:

¨ Y and Z are both omitted,

¨ J and K are both omitted.

Here is an example of a center format command to mill an arc in Incremental IJ mode:

G17 G2 x10 y16 i3 j4 z9

That means to make a clockwise (as viewed from the positive z-axis) circular or helical arc whose axis is parallel to the Z-axis, ending where X=10, Y=16, and Z=9, with its center offset in the X direction by 3 units from the current X location and offset in the Y direction by 4 units from the current Y location. If the current location has X=7, Y=7 at the outset, the center will be at X=10, Y=11. If the starting value of Z is 9, this is a circular arc; otherwise it is a helical arc. The radius of this arc would be 5.

The above arc in Absolute IJ mode would be:

G17 G2 x10 y16 i10 j11 z9

In the center format, the radius of the arc is not specified, but it may be found easily as the distance from the center of the circle to either the current point or the end point of the arc.

Return to G-code list


G4 Dwell

For a dwell, program G4 P~ . This will keep the axes unmoving for the period of time in seconds or milliseconds specified by the P number. The time unit to be used is set up on the Config>Logic dialog. For example, with units set to Seconds, G4 P0.5 will dwell for half a second. It is an error if:

¨ the P number is negative.

Return to G-code list


G10 Tool Offset and Work Offset Tables

To set the offset values of a tool, program
G10 L1 P~ X~ Z~ A~, where the P number must evaluate to an integer in the range 0 to 255 - the tool number - Offsets of the tool specified by the P number are reset to the given. The A number will reset the tool tip radius. Only those values for which an axis word is included on the line will be reset. The Tool diameter cannot be set in this way.

To set the coordinate values for the origin of a fixture coordinate system, program
G10 L2 P~ X~ Y~ Z~ A~ B~ C~, where the P number must evaluate to an integer in the range 1 to 255 - the fixture number - (Values 1 to 6 corresponding to G54 to G59) and all axis words are optional. The coordinates of the origin of the coordinate system specified by the P number are reset to the coordinate values given (in terms of the absolute coordinate system). Only those coordinates for which an axis word is included on the line will be reset.

It is an error if:

¨ the P number does not evaluate to an integer in the range 0 to 255.

If origin offsets (made by G92 or G92.3) were in effect before G10 is used, they will continue to be in effect afterwards.

The coordinate system whose origin is set by a G10 command may be active or inactive at the time the G10 is executed.

The values set will not be persistent unless the tool or fixture tables are saved using the buttons on Tables screen.
Example: G10 L2 P1 x3.5 y17.2 sets the origin of the first coordinate system (the one selected by G54) to a point where X is 3.5 and Y is 17.2 (in absolute coordinates). The Z coordinate of the origin (and the coordinates for any rotational axes) are whatever those coordinates of the origin were before the line was executed.

Return to G-code list


G12 & G13 CW/CCW Circular Pocket

These circular pocket commands are a sort of canned cycle which can be used to produce a circular hole larger than the tool in use or with a suitable tool (like a woodruff key cutter) to cut internal grooves for "O" rings etc.

Program G12 I~ for a clockwise move and G13 I~ for a counterclockwise move.

The tool is moved in the X direction by the value if the I word and a circle cut in the direction specified with the original X and Y coordinates as the centre. The tool is returned to the centre.

Its effect is undefined if the current plane is not XY.

Return to G-code list


G15 & G16 Exit and Enter Polar Mode

It is possible for G0 and G1 moves in the X/Y plane only to specify coordinates as a radius and angle relative to a temporary center point. Program G16 to enter this mode. The current coordinates of the controlled point are the temporary center.

Program G15 to revert to normal Cartesian coordinates.

G0 X10 Y10 // normal G0 move to 10,10
G16 //start of polar mode.
G10X10Y45
( this will move to X 17.xxx, Y 17.xxx which is a spot on a circle) (of radius 10 at 45 degrees from the initial coordinates of 10,10.)

This can be very useful, for example, for drilling a circle of holes. The code below moves to a circle of holes every 10 degrees on a circle of radius 50 mm centre X = 10, Y = 5.5 and peck drills to Z = -0.6

G21 // metric
G0 X10Y5.5
G16
G1 X50 Y0 //polar move to a radius of 50 angle 0deg
G83 Z-0.6 // peck drill
G1 Y10 // ten degrees from original center...
G83 Z-0.6
G1 Y20 // 20 degrees....etc...

G1 Y30

G1 Y40
> ...etc....
G15 //back to normal cartesian

Notes:

(1) you must not make X or Y moves other than by using G0 or G1 when G16 is active

(2) This G16 is different to a Fanuc implementation in that it uses the current point as the polar center. The Fanuc version requires a lot of origin shifting to get the desired result for any circle not centred on 0,0

Return to G-code list


G17,G18 & G19 Plane Selection

Program G17 to select the XY-plane, G18 to select the XZ-plane, or G19 to select the YZ-plane. The effects of having a plane selected are discussed in under G2/3 and Canned cycles

Return to G-code list


G20 & G21 Unit Selection

Program G20 to use inches for length units. Program G21 to use millimetres.
It is usually a good idea to program either G20 or G21 near the beginning of a program before any motion occurs, and not to use either one anywhere else in the program. It is the responsibility of the user to be sure all numbers are appropriate for use with the current length units. See also G70/G71 which are synonymous.

Return to G-code list


G28 & G30 Return to Home

A home position is defined (by parameters 5161-5166). The parameter values are in terms of the absolute coordinate system, but are in unspecified length units.

To return to home position by way of the programmed position, program
G28 X~ Y~ Z~ A~ B~ C~ (or use G30). All axis words are optional. The path is made by a traverse move from the current position to the programmed position, followed by a traverse move to the home position. If no axis words are programmed, the intermediate point is the current point, so only one move is made.

Return to G-code list


G28.1 Reference Axis

Program G28.1 X~ Y~ Z~ A~ B~ C~ to reference the given axes. The axes will move at the current feed rate towards the home switch(es), as defined by the Configuration. When the absolute machine coordinate reaches the value given by an axis word then the feed rate is set to that defined by Configure>Config Referencing. Provided the current absolute position is approximately correct, then this will give a soft stop onto the reference switch(es).

Return to G-code list


G31 Straight Probe

Program G31 X~ Y~ Z~ A~ B~ C~ to perform a straight probe operation. The rotational axis words are allowed, but it is better to omit them. If rotational axis words are used, the numbers must be the same as the current position numbers so that the rotational axes do not move. The linear axis words are optional, except that at least one of them must be used. The tool in the spindle must be a probe.

It is an error if:

¨ the current point is less than 0.254 millimetre or 0.01 inch from the programmed point.

¨ G31 is used in inverse time feed rate mode,

¨ any rotational axis is commanded to move,

¨ no X, Y, or Z-axis word is used.

In response to this command, the machine moves the controlled point (which should be at the end of the probe tip) in a straight line at the current feed rate toward the programmed point. If the probe trips, the probe is retracted slightly from the trip point at the end of command execution. If the probe does not trip even after overshooting the programmed point slightly, an error is signalled.

After successful probing, parameters 2000 to 2005 will be set to the coordinates of the location of the controlled point at the time the probe tripped and a triplet giving X, Y and Z at the trip will be written to the triplet file if it has been opened by the M40 macro/OpenDigFile() function (q.v.)
Straight Probe Command

Using the straight probe command, if the probe shank is kept nominally parallel to the Z-axis (i.e., any rotational axes are at zero) and the tool length offset for the probe is used, so that the controlled point is at the end of the tip of the probe:

without additional knowledge about the probe, the parallelism of a face of a part to the XY-plane may, for example, be found.

if the probe tip radius is known approximately, the parallelism of a face of a part to the YZ or XZ-plane may, for example, be found.

if the shank of the probe is known to be well-aligned with the Z-axis and the probe tip radius is known approximately, the center of a circular hole, may, for example, be found.

if the shank of the probe is known to be well-aligned with the Z-axis and the probe tip radius is known precisely, more uses may be made of the straight probe command, such as finding the diameter of a circular hole.

If the straightness of the probe shank cannot be adjusted to high accuracy, it is desirable to know the effective radii of the probe tip in at least the +X, -X, +Y, and -Y directions. These quantities can be stored in parameters either by being included in the parameter file or by being set in a Mach3 program.

Using the probe with rotational axes not set to zero is also feasible. Doing so is more complex than when rotational axes are at zero, and we do not deal with it here.
Example Code

As a usable example, the code for finding the center and diameter of a circular hole is shown in figure 11.5. For this code to yield accurate results, the probe shank must be well-aligned with the Z-axis, the cross section of the probe tip at its widest point must be very circular, and the probe tip radius (i.e., the radius of the circular cross section) must be known precisely. If the probe tip radius is known only approximately (but the other conditions hold), the location of the hole center will still be accurate, but the hole diameter will not.

N010 (probe to find center and diameter of circular hole)

N020 (This program will not run as given here. You have to)

N030 (insert numbers in place of .)

N040 (Delete lines N020, N030, and N040 when you do that.)

N050 G0 Z F

N060 #1001=

N070 #1002=

N080 #1003=

N090 #1004=

N100 #1005=[/2.0 - #1004]

N110 G0 X#1001 Y#1002 (move above nominal hole center)

N120 G0 Z#1003 (move into hole - to be cautious, substitute G1 for G0 here)

N130 G31 X[#1001 + #1005] (probe +X side of hole)

N140 #1011=#2000 (save results)

N150 G0 X#1001 Y#1002 (back to center of hole)

N160 G31 X[#1001 - #1005] (probe -X side of hole)

N170 #1021=[[#1011 + #2000] / 2.0] (find pretty good X-value of hole center)

N180 G0 X#1021 Y#1002 (back to center of hole)

N190 G31 Y[#1002 + #1005] (probe +Y side of hole)

N200 #1012=#2001 (save results)

N210 G0 X#1021 Y#1002 (back to center of hole)

N220 G31 Y[#1002 - #1005] (probe -Y side of hole)

N230 #1022=[[#1012 + #2001] / 2.0] (find very good Y-value of hole center)

N240 #1014=[#1012 - #2001 + [2 * #1004]] (find hole diameter in Y-direction)

N250 G0 X#1021 Y#1022 (back to center of hole)

N260 G31 X[#1021 + #1005] (probe +X side of hole)

N270 #1031=#2000 (save results)

N280 G0 X#1021 Y#1022 (back to center of hole)

N290 G31 X[#1021 - #1005] (probe -X side of hole)

N300 #1041=[[#1031 + #2000] / 2.0] (find very good X-value of hole center)

N310 #1024=[#1031 - #2000 + [2 * #1004]] (find hole diameter in X-direction)

N320 #1034=[[#1014 + #1024] / 2.0] (find average hole diameter)

N330 #1035=[#1024 - #1014] (find difference in hole diameters)

N340 G0 X#1041 Y#1022 (back to center of hole)

N350 M2 (that's all, folks)

Figure 10.5 - Code to Probe Hole

In figure 10.5 an entry of the form is meant to be replaced by an actual number that matches the description of number. After this section of code has executed, the X-value of the center will be in parameter 1041, the Y-value of the center in parameter 1022, and the diameter in parameter 1034. In addition, the diameter parallel to the X-axis will be in parameter 1024, the diameter parallel to the Y-axis in parameter 1014, and the difference (an indicator of circularity) in parameter 1035. The probe tip will be in the hole at the XY center of the hole.

The example does not include a tool change to put a probe in the spindle. Add the tool change code at the beginning, if needed.

Return to G-code list


G40,G41 & G42 Cutter Comp

To turn cutter radius compensation off, program G40. It is OK to turn compensation off when it is already off.

Cutter radius compensation may be performed only if the XY-plane is active.

To turn cutter radius compensation on left (i.e., the cutter stays to the left of the programmed path when the tool radius is positive), program G41 D~ To turn cutter radius compensation on right (i.e., the cutter stays to the right of the programmed path when the tool radius is positive), program G42 D~ The D word is optional; if there is no D word, the radius of the tool currently in the spindle will be used. If used, the D number should normally be the slot number of the tool in the spindle, although this is not required. It is OK for the D number to be zero; a radius value of zero will be used.

G41 and G42 can be qualified by a P-word. This will override the value of the diameter of the tool (if any) given in the current tool table entry.

It is an error if:

¨ the D number is not an integer, is negative or is larger than the number of carousel slots,

¨ the XY-plane is not active,

¨ cutter radius compensation is commanded to turn on when it is already on.
The behavior of the machining system when cutter radius compensation is ON is described in the chapter of Cutter Compensation. Notice the importance of programming valid entry and exit moves.

Return to G-code list


G43,G44 & G49 Tool Length Offsets

To use a tool length offset, program G43 H~, where the H number is the desired index in the tool table. It is expected that all entries in this table will be positive. The H number should be, but does not have to be, the same as the slot number of the tool currently in the spindle. It is OK for the H number to be zero; an offset value of zero will be used. Omitting H has the same effect as a zero value.

G44 is provided for compatibility and is used if entries in the table give negative offsets.

It is an error if:

¨ the H number is not an integer, is negative, or is larger than the number of carousel slots.

To use no tool length offset, program G49
It is OK to program using the same offset already in use. It is also OK to program using no tool length offset if none is currently being used.

Return to G-code list


G50 & G51 Scale Factor

To define a scale factor which will be applied to an X, Y, Z, A, B, C, I & J word before it is used program G51 X~ Y~ Z~ A~ B~ C~ where the X, Y, Z etc. words are the scale factors for the given axes. These values are, of course, never themselves scaled.

It is not permitted to use unequal scale factors to produce elliptical arcs with G2 or G3.

To reset the scale factors of all axes to 1.0 program G50

Return to G-code list


G52 Coordinate System Offset

To offset the current point by a given positive or negative distance (without motion), program
G52 X~ Y~ Z~ A~ B~ C~ , where the axis words contain the offsets you want to provide. All axis words are optional, except that at least one must be used. If an axis word is not used for a given axis, the coordinate on that axis of the current point is not changed. It is an error if:

¨ all axis words are omitted.

G52 and G92 use common internal mechanisms in Mach3 and may not be used together.

When G52 is executed, the origin of the currently active coordinate system moves by the values given.

The effect of G52 is cancelled by programming G52 X0 Y0 etc.

Here is an example. Suppose the current point is at X=4 in the currently specified coordinate system, then G52 X7 sets the X-axis offset to 7, and so causes the X-coordinate of the current point to be -3.
The axis offsets are always used when motion is specified in absolute distance mode using any of the fixture coordinate systems. Thus all fixture coordinate systems are affected by G52.


elektron | 15859    2014-07-14 12:08:00 [12372]

Arra van egy kód benne.


mssleepy | 716    2014-07-14 09:50:00 [12371]

Sziasztok, hogy tudom az mach3-ban egyszerűen megoldani, hogy van egy generált G kódom és azt szeretném egy táblából többször kimarni. Természetesen valamennyi eltolással.

Csak ciklussal, vagy van erre valami mód, hogy többször lefusson a program, úgy hogy a következő maráshoz odébb helyezi a 0 pontot (home).


n/a (inaktív)    2014-07-07 21:49:00 [12370]

Sziasztok.
"" LittleSV""Ígértem a g-kódot.
""
N5 (File Name = proba3 on Friday, July 03, 2014)
N10 (Default Mill Post)
N15 G91.1
N20 G0 Z1.0000
N25 M3
N30 X485.2515 Y985.2515
N35 Z0.1000
N40 G1 X970.5030 Y1000.0000 Z0.0000 F60.00
N45 X1000.0001 Y29.4971
N50 X29.4971 Y0.0000
N55 X0.0000 Y970.5029
N60 X485.2515 Y985.2515
N65 G0 Z1.0000
N70 M5
N75 M30
""

A beállítás amit írtál teljes siker(Köszönöm).


Törölt felhasználó    2014-07-07 09:56:00 [12369]

Sziasztok!

Segítségre lenne szükségem.Van egy épített 4tengelyes gépem Mach3 vezérelt, de sajnos nem értek hozzá, keresek valakit aki ért hozzá, és betudja konfigurálni nekem a forgatót, és egy szerszámhossz mérőt. Honorálnám a segítséget. Válaszokat előre is köszönöm!

Gábor


LittleSV | 841    2014-07-06 19:14:00 [12368]

Szia. Kezdő vagyok topicba folytassuk...

Előzmény: n/a (inaktív), 2014-07-06 16:42:00 [12367]


n/a (inaktív)    2014-07-06 16:42:00 [12367]

Szép napot!
Én is a próbálkozók közzé tartozok.
Segítséget szeretnék kérni.
Vettem 1 wantai kitet és valahol mindig elszúrom.
Kötési rajz szerint összeraktam.
Mach3-at telepítettem de, nem tudom mozgásra bírni a motort.
Már néztem videót is miként csinálja más de nekem semmi.
Ha valaki segítene a programnál vagy a szettnél követtem-e el a hibát?

LittleSV | 841    2014-07-06 07:53:00 [12366]

A géped merevsége, nem a marási sebesség határozza meg hogy milyen anyaggal tudsz dolgozni.
Azért jelezz vissza ha sikerült beállítani.

Előzmény: n/a (inaktív), 2014-07-05 22:51:00 [12365]


n/a (inaktív)    2014-07-05 22:51:00 [12365]

Ok megpróbálom a beállítást hétfőn ez lesz az első dolgom.
A vasat csak azért írtam mert a marási sebesség nagyon alacsony.Persze ez nem zárja ki hogy ki is próbáljam.
Köszönöm a tanácsot.


LittleSV | 841    2014-07-05 14:48:00 [12364]

A motorod 1.8 fokos léptető, direkt hajtással a tengelyen, akkor egy fordulathoz 1600 lépés tartozik 1/8 lépésben. 1mm-nyi elmozdulás 1600/2.5 = 640lépés amit a motor tuningnál tudsz megadni.

Lehet mindössze ez okozta a "milliméteres" mozgást az elvárt helyett (te tized ennyit adtál meg).

Előzmény: n/a (inaktív), 2014-07-05 14:29:00 [12362]


LittleSV | 841    2014-07-05 14:35:00 [12363]

Szia. Helyesírási hiba az én hozzászólásomban volt. Nem vagyok én köbzoli hogy mást megszóljak ilyen miatt..
A beállításokat leírtam, először ezeket az alapbeállításokat hozd össze, utána lehet dolgozni a géppel.
Menetesszáras hajtással nem biztos hogy fogsz vasat marni, illetve gondolom egy idő után gond lesz egy "termék" reprodukálásával.
Hogyan állítod nullára a gépet?
Jó lenne az a gkód, látszanának a generált értékek (fogásmélység, előtolás stb).
De, javaslom előbb a vezérlőd és a géped legyen beállítva. Ha ezzel minden ok, DRO-ban kiadott utasításra, nincs (tolómérővel) mérhető eltérés a tengelyeken, akkor lehet tovább vizsgálódni Jelenleg a másik végéről közelítjük a kérdést.

Előzmény: n/a (inaktív), 2014-07-05 11:02:00 [12359]


n/a (inaktív)    2014-07-05 14:29:00 [12362]

Ja igen egy az egyben hajtja a motor a menetes szárat,hardi tárcsán keresztül.
1.8°fok van ráírva.
Utólag ha valamire rájövök vagy rámutatnak a megoldásra mindig olyan egyszerűnek tűnik.Bezzeg amíg odáig eljutok az már nem.


  Fórum főoldal  |  A lap tetejére

Időrend:
Oldal 123 / 370 Ugrás ide:
Sorok:
|◄ Első  ◄ Előző   119  120  121  122  123  124  125  126  127   Következő ►  Utolsó ►|


 ◊