Ero sivun ”G-koodi” versioiden välillä
(5 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 260: | Rivi 260: | ||
| '''[[G90]]''' || 03 || Absoluuttikoordinaattien valinta | | '''[[G90]]''' || 03 || Absoluuttikoordinaattien valinta | ||
|- | |- | ||
| '''[G90|G91]]''' || 03 || Suhteellisten koordinaattien valinta | | '''[[G90|G91]]''' || 03 || Suhteellisten koordinaattien valinta | ||
|- | |- | ||
| G92 || 00 || Absoluuttikoordinaatiston origon asetus | | G92 || 00 || Absoluuttikoordinaatiston origon asetus | ||
Rivi 277: | Rivi 277: | ||
|} | |} | ||
| | | | ||
==Actual G codewords== | ==Actual G codewords== | ||
{| class = "wikitable" | {| class = "wikitable" | ||
Rivi 298: | Rivi 299: | ||
| G15_Engl|G15 || 17 || Canceling the polar coordinate mode | | G15_Engl|G15 || 17 || Canceling the polar coordinate mode | ||
|- | |- | ||
| | | G02_Engl|G16 || 17 || Polar coordinate mode setting | ||
|- | |- | ||
| '''[[G02_Engl| G17]]''' || 02 || XY plane setting for circular interpolation | | '''[[G02_Engl| G17]]''' || 02 || XY plane setting for circular interpolation | ||
Rivi 306: | Rivi 307: | ||
| [[G02_Engl|G19]] || 02 || YZ level setting for circular interpolation | | [[G02_Engl|G19]] || 02 || YZ level setting for circular interpolation | ||
|- | |- | ||
| [[ | | [[G06_Engl|G20]] || 06 || Units of measurement in inches | ||
|- | |- | ||
| '''[[ | | '''[[G06_Engl | G21]]''' || 06 || Units of measurement in millis | ||
|- | |- | ||
| G22_Engl|G22 || 00 || Example | | G22_Engl|G22 || 00 || Example | ||
Rivi 416: | Rivi 417: | ||
| '''[[G90]]''' || 03 || Selection of absolute coordinates | | '''[[G90]]''' || 03 || Selection of absolute coordinates | ||
|- | |- | ||
| '''[G90 | G91]]''' || 03 || Selection of relative coordinates | | '''[[G90 | G91]]''' || 03 || Selection of relative coordinates | ||
|- | |- | ||
| G92_Engl|G92 || 00 || Setting the origin of the absolute coordinate system | | G92_Engl|G92 || 00 || Setting the origin of the absolute coordinate system | ||
Rivi 484: | Rivi 485: | ||
! M code !! Function | ! M code !! Function | ||
|- | |- | ||
| M00 || Mandatory break. The program stops here until the user presses [CYCLE START] at which point the program continues | | M00_Engl|M00 || Mandatory break. The program stops here until the user presses [CYCLE START] at which point the program continues | ||
|- | |- | ||
| M01 || Conditional break. Same as above, but only if panel [OPT STOP] is pressed active | | M01_Engl|M01 || Conditional break. Same as above, but only if panel [OPT STOP] is pressed active | ||
|- | |- | ||
| M02 || End of the program. Execution ends and the program is acknowledged as run. | | M02_Engl|M02 || End of the program. Execution ends and the program is acknowledged as run. | ||
|- | |- | ||
| '''M03''' || Spindle moved clockwise. The spindle starts rotating at the speed previously set by argument S. | | '''M03''' || Spindle moved clockwise. The spindle starts rotating at the speed previously set by argument S. | ||
Rivi 502: | Rivi 503: | ||
| '''M09''' || Cutting fluid off | | '''M09''' || Cutting fluid off | ||
|- | |- | ||
| M19 || Spindle orientation. Rotates the spindle to the position where the tool is changed. The same position is used e.g. counter-reaming, etc. | | M19_Engl|M19 || Spindle orientation. Rotates the spindle to the position where the tool is changed. The same position is used e.g. counter-reaming, etc. | ||
|- | |- | ||
| M29 || Rigid threading mode on | | M29_Engl|M29 || Rigid threading mode on | ||
|- | |- | ||
| '''M30''' || Ending the program and returning to the beginning | | '''M30''' || Ending the program and returning to the beginning | ||
|- | |- | ||
| M40 || 4th axle lock | | M40_Engl|M40 || 4th axle lock | ||
|- | |- | ||
| M41 || 4th shaft release | | M41_Engl|M41 || 4th shaft release | ||
|- | |- | ||
| M94 || Axis mirroring cancellation | | M94_Engl|M94 || Axis mirroring cancellation | ||
|- | |- | ||
| M95 || X-axis mirroring | | M95_Engl|M95 || X-axis mirroring | ||
|- | |- | ||
| M96 || Y-axis mirroring | | M96_Engl|M96 || Y-axis mirroring | ||
|- | |- | ||
| M98 || Subroutine call | | M98_Engl|M98 || Subroutine call | ||
|- | |- | ||
| M99 || Return from the subroutine | | M99_Engl|M99 || Return from the subroutine | ||
|} | |} | ||
|} | |} |
Nykyinen versio 12. helmikuuta 2021 kello 19.21
G-Code |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
G-koodisyntaksia noudattava CNC-ohjelma koostuu matalan tason toiminnoista joita kutsutaan lauseiksi (block). Lauseet puolestaan rakentuvat sanoista (code). Sanat ovat joko "valmistelevia" G-koodeja tai "sekalaisia" M-koodeja. |
A CNC program that follows G-code syntax consists of low-level functions called blocks. Sentences, in turn, are built from words (code). The words are either "preparatory" G-codes or "Miscellaneous" M-codes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Esimerkki yksinkertaisesta NC-lauseesta: |
Example of a simple NC block: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lotan tunnistamat G-koodisanatUseimmat G-koodilauseet muodostuvat valmistelevasta G-koodista, sekä siihen liittyvistä yhdestä tai useammasta argumentista. Lauseissa käytetään myös "sekalaisia" M-koodisanoja ohjaamaan koneen toimintoja päälle ja pois. G-koodisanojen argumentit
|
G-code words recognized by LottaMost G-code statements consist of a preparatory G-code, and one or more arguments associated with it. The sentences also use "Miscellaneous" M-code words to control the machine functions on and off. G codeword arguments
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Varsinaiset G-koodisanat
|
Actual G codewords
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lotan tunnistamat M-koodisanat
|
M-code words recognized by Lotta
|