├── docs ├── images │ ├── z-position.jpg │ ├── spindle_zero.jpg │ ├── new_tool_position.jpg │ ├── old_tool_position.jpg │ └── machine-coordinates.jpg ├── manual.md └── anleitung.md ├── m300.ngc ├── m600.ngc ├── m601.ngc ├── m500.ngc ├── go_to_g30.ngc ├── README.md ├── lies_mich.md ├── tool_touch_off.ngc └── LICENSE /docs/images/z-position.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TooTall18T/tool_length_probe/HEAD/docs/images/z-position.jpg -------------------------------------------------------------------------------- /docs/images/spindle_zero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TooTall18T/tool_length_probe/HEAD/docs/images/spindle_zero.jpg -------------------------------------------------------------------------------- /docs/images/new_tool_position.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TooTall18T/tool_length_probe/HEAD/docs/images/new_tool_position.jpg -------------------------------------------------------------------------------- /docs/images/old_tool_position.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TooTall18T/tool_length_probe/HEAD/docs/images/old_tool_position.jpg -------------------------------------------------------------------------------- /docs/images/machine-coordinates.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TooTall18T/tool_length_probe/HEAD/docs/images/machine-coordinates.jpg -------------------------------------------------------------------------------- /m300.ngc: -------------------------------------------------------------------------------- 1 | o sub 2 | ;Subroutine to start a spindle and pause for a certain time. 3 | ;For spindles without feedback. 4 | ;Stand: 2023-12-30 5 | 6 | M3 7 | G4 P4.0 8 | ;(msg, Spindle ON) 9 | o endsub 10 | 11 | M2 (end program) 12 | -------------------------------------------------------------------------------- /m600.ngc: -------------------------------------------------------------------------------- 1 | o sub 2 | ;Subprogram to start the "tool_touch_off 5.x.x" subroutine in automatic mode. 3 | ;Stand: 2024-12-10 4 | ;https://github.com/TooTall18T/tool_length_probe 5 | 6 | #2000 = 1 7 | o call 8 | 9 | 10 | o endsub 11 | 12 | M2 (end program) 13 | -------------------------------------------------------------------------------- /m601.ngc: -------------------------------------------------------------------------------- 1 | o sub 2 | ;Subprogram to start the "tool_touch_off 5.x.x" subroutine in manual mode for other GUIs than Probe Basic. 3 | ;Stand: 2024-12-10 4 | ;https://github.com/TooTall18T/tool_length_probe 5 | 6 | #2000 = 0 7 | o call 8 | 9 | 10 | o endsub 11 | 12 | M2 (end program) 13 | -------------------------------------------------------------------------------- /m500.ngc: -------------------------------------------------------------------------------- 1 | o sub 2 | ;Subroutine to stop a spindle and pause for a certain time. 3 | ;For spindles without feedback. 4 | ;The pause time will only be use if the spindle was on. 5 | ;Stand: 2023-12-30 6 | 7 | # = #<_spindle_on> 8 | 9 | M5 10 | ;(debug, Spindle: #) 11 | o<100> if [# EQ 1] 12 | ; (msg, Spindle is ON) 13 | G4 P4.0 14 | o<100> endif 15 | ;(msg, Spindel AUS) 16 | 17 | o endsub 18 | 19 | M2 (end program) 20 | -------------------------------------------------------------------------------- /go_to_g30.ngc: -------------------------------------------------------------------------------- 1 | o sub 2 | ;Version date: 2024-01-14 3 | ;The machine moves the Z-axis free and moves only the X- and Y-axis to its coordinates. At that position the Z-axis moves to its coordinate. 4 | ;G30 moves the machine to X, Y and Z at the same time. 5 | 6 | M73 (save caller state in current call context, restore on return or endsub) 7 | G90 8 | G53 G0 Z0 9 | G53 G0 X#5181 Y#5182 ;Tool change position X and y 10 | G53 G0 Z#5183 11 | 12 | o endsub 13 | 14 | M2 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Explanation of using the tool length probe subroutine for Probe Basic and other GUIs from TooTall18T . 2 | Version 5.0.2 as of 08.03.2025 3 | https://github.com/TooTall18T/tool_length_probe 4 | 5 | --- 6 | ## Contents 7 | - Notes and notices 8 | - Instructions and functional sequence 9 | - Range of function 10 | - Last changes 11 | - License 12 | 13 | --- 14 | ## Notes and notices 15 | > [!IMPORTANT] 16 | > Use the subroutines at your own risk! 17 | 18 | The routines were tested with LinuxCNC 2.9.3 and Probe Basic 0.6.0-018 . 19 | With other versions, there may be differences in the process. 20 | The functions of the routine should be tested at reduced speed before using the routine in production. 21 | 22 | > [!NOTE] 23 | > This version (5) of the routine is for Probe Basic 0.6.0 and higher. 24 | > For Probe Basic up to version 0.5.4-stable use tool_length_probe 4.0.1 : https://github.com/TooTall18T/tool_length_probe/releases/tag/4.0.1 25 | 26 | > [!NOTE] 27 | > With small changes this routine can be used with every GUI. 28 | 29 | The routines "tool_touch_off.ngc" and "go_to_g30.ngc" are based on the routines of the same name that came with Probe Basic. 30 | 31 | > [!NOTE] 32 | > The German version of this document is called "[lies_mich.md](lies_mich.md)" and it is in the same folder. 33 | 34 | --- 35 | ## Instructions and functional sequence 36 | The instructions in English and German can be found in the “docs” folder. 37 | [Manual](./docs/manual.md) / [Anleitung](./docs/anleitung.md) 38 | A sequence of functions is also described there. 39 | 40 | --- 41 | ## Range of function 42 | The subroutine is used to measure tools on a stationary tool length probe in LinuxCNC with the GUI Probe Basic or other GUIs. 43 | It doesn't matter whether the measurement is started manually or automatically from the milling program. There are optional settings for the process that extend the functionality of the original subroutine. 44 | 45 | The machine is automatically freed and moves to the tool change point. After confirming that the tool has been changed, the machine measures the tool and, if necessary, automatically returns to the starting point. 46 | 47 | Things like the use of the tool table, the frequency of measurement attempts in the event of incorrect measurements or the position at which the tool is changed can be set individually. 48 | 49 | An overview of the extensions compared to the original subroutine: 50 | - Call using M command (M600 / M601) 51 | - Use tool table 52 | - Return to the starting point 53 | - Pause at the starting point 54 | - Switching off the tool spindle with selectable M command 55 | - Additional repetitions in case of failed measurement attempts 56 | - Last measurement without tool table 57 | - Tool offset for larger diameters 58 | - Alternative position for changing tools 59 | - Alternative measurement position for 3D probes 60 | 61 | The settings in Probe Basic can still be made there, the additional ones are made at the beginning of the subroutine. 62 | By using other GUIs all settings need to be made in the subroutine. 63 | 64 | --- 65 | ## Last change: 66 | V5.0.2 67 | - tool_touch_off.ngc: 68 | - Added "G43" to same tool exit to make sure that after the routine is finished G43 is on. 69 | - Added bridging of the routine when no program is running. 70 | 71 | V5.0.1 72 | - tool_touch_off.ngc: Added "M50 P1" to returns to unlock the feed lock 73 | 74 | V5.0.0 75 | - readme.md / lies_mich.md - Added information about possible use with other GUIs 76 | - manual.md / anleitung.md - Adapted the configuration process to Probe Basic 0.6.0 and for general use 77 | - tool_touch_off.ngc: 78 | - Update the parameter numbers for Probe Basic 0.6.0 79 | - Deleted the direct parameter handover 80 | - Added the parameter "traverse fr" for the speed of fast movements 81 | - Added "M50 feed override control" to prevent manipulation of the feed rate during the process 82 | - Updated the directions for tool offset at larger diameters 83 | - M600 - Added mode parameter "#2000" 84 | - M601 - Added to start the subroutine in manual mode 85 | 86 | V4.0.1 87 | - Added compatibility notes and corrected typos. 88 | 89 | V4.0.0 90 | - readme.md / lies_mich.md - Revised, now serves as an overview. 91 | - manual.md / anleitung.md - Updated the manual and moved to its own files. 92 | - tool_touch_off.ngc: 93 | - Changed the positioning above the tool probe. Safe use of the G30 command possible. Use G30-position as tool change position. 94 | - Moved the parameters of the .var-file from 4000-4005 to 3000-3005. 95 | - Added tool diameter offset. From a set diameter, the machine offsets by a percentage value in order to be able to measure the length of cutters with larger diameters. 96 | - Added tool edge-finder. A tool can be set as a 3D/edge finder to be measured at an alternative position. 97 | - Added additional attempts. If the fast measurment failed, an additianal attempts to measure the tool can be set. Inbetween the tool position can be changed. 98 | - Added last try. As a last try, a probing without the tool table can be done. 99 | - Added German messages. To change, the semicolon in front of "(DEBUG," and "(ABORT," must be moved. 100 | 101 | V3.0.1 102 | - tool_touch_off.ngc 103 | - Delete if statments for log commands. 104 | - Added Logclose commands 105 | - Added log END markings 106 | - Change "o endsub" to "o return" and delete M2. 107 | - readme.md / lies_mich.md 108 | - Update Notes/Warning/Important block style. 109 | 110 | 111 | --- 112 | ## License 113 | Copyright (C) 2022 TooTall18T 114 | 115 | This program is free software: you can redistribute it and/or modify 116 | it under the terms of the GNU General Public License as published by 117 | the Free Software Foundation, either version 3 of the License, or 118 | (at your option) any later version. 119 | 120 | This program is distributed in the hope that it will be useful, 121 | but WITHOUT ANY WARRANTY; without even the implied warranty of 122 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 123 | GNU General Public License for more details. 124 | 125 | You should have received a copy of the GNU General Public License 126 | along with this program. If not, see . 127 | -------------------------------------------------------------------------------- /lies_mich.md: -------------------------------------------------------------------------------- 1 | # Erklärung zur Nutzung der Werkzeugvermessungsroutine für Probe Basic und anderen GUIs von TooTall18T . 2 | Version 5.0.2 stand 08.03.2025 3 | https://github.com/TooTall18T/tool_length_probe 4 | 5 | 6 | --- 7 | ## Inhalt 8 | 9 | - Anmerkungen und Hinweise 10 | - Anleitung und Funktionsablauf 11 | - Funktionsumfang 12 | - Letzte Änderungen 13 | - Lizenz 14 | 15 | --- 16 | ## Anmerkungen und Hinweise 17 | > [!IMPORTANT] 18 | > Die Benutzung der Subroutinen geschieht auf eigene Gefahr! 19 | 20 | Die Routinen wurden mit den Versionen LinuxCNC 2.9.3 und Probe Basic 0.6.0-018 getestet. 21 | Bei anderen Versionsständen können unter Umständen Unterschiede im Ablauf statt finden. 22 | Die Funktionen der Routine sollten mit verminderter Geschwindigkeit getestet werden, bevor die Routine im Fertigungseinsatz genutzt wird. 23 | 24 | > [!NOTE] 25 | > Diese Version (5) der Routine ist für Probe Basic 0.6.0 und höher. 26 | > Für Probe Basic bis Version 0.5.4-stable, tool_length_probe in Version 4.0.1 : benutzen https://github.com/TooTall18T/tool_length_probe/releases/tag/4.0.1 27 | 28 | > [!NOTE] 29 | > Mit kleinen Anpassungen, kann die Routine mit jeder GUI genutzt werden. 30 | 31 | Die Routinen "tool_touch_off.ngc" und "go_to_g30.ngc" basieren auf den gleichnamigen Routinen die bei Probe Basic dabei waren. 32 | 33 | --- 34 | ## Anleitung und Funktionsablauf 35 | Die Anleitungen in englisch und deutsch sind im Ordner "docs" zu finden. 36 | [Manual](./docs/manual.md) / [Anleitung](./docs/anleitung.md) 37 | Darin ist auch ein Ablauf der Funktionen beschrieben. 38 | 39 | --- 40 | ## Funktionsumfang 41 | Die Subroutine dient dazu in LinuxCNC, mit der Oberfläche Probe Basic oder jeder Anderen, Werkzeuge an einem stationären Werkzeuglängentaster einzumessen. 42 | Dabei ist es egal, ob die Vermessung manuel gestartet wird, oder automatisch aus dem Fräsprogramm. Für den Ablauf gibt es optionale Einstellungen, die den Funktionsumfang zur original Subroutine erweitern. 43 | 44 | Die Maschine wird automatisch frei gefahren und bewegt sich an den Werkzeugwechselpunkt. Nach der Bestätigung, dass das Werkzeug gewechselt ist, vermisst die Maschine das Werkzeug und kehrt ggf. automatisch an den Ausgangspunkt zurück. 45 | 46 | Dabei können Dinge wie die Benutzung der Werkzeugtabelle, die Häufigkeit von Vermessungsversuchen bei Fehlmessungen oder auch die Position an der das Werkzeug gewechslet wird einzeln eingestellt werden. 47 | 48 | Eine Übersicht der Erweiterungen gegenüber der original Subroutine: 49 | - Aufruf mittels M-Befehl (M600 / M601) 50 | - Nutzung Werkzeugtabelle 51 | - Rückkehr zum Ausgangspunkt 52 | - Pausieren am Ausgangspunkt 53 | - Abschalten der Werkzeugspindel mit wählbarem M-Befehl 54 | - Zusätzliche Wiederholungen bei fehlgeschlagenen Messversuchen 55 | - Letzte Vermessung ohne Werkzeugtabelle 56 | - Wekzeugversatz bei größeren Durchmessern 57 | - Alternative Position zum Werkzeugwechseln 58 | - Alternative Vermessungsposition für 3D-Taster 59 | 60 | Die Einstellungen in Probe Basic können weiterhin dort vorgenommen werden, die zusätzlichen werden am Anfang der Subroutine gemacht. 61 | Bei der Benutzung einer anderen GUI werden alle Einstellungen in der Subroutine vorgenommen. 62 | 63 | 64 | --- 65 | ## Letzte Änderung: 66 | V5.0.2 67 | - tool_touch_off.ngc: 68 | - "G43" zu Selbes Werkzeug hinzugefügt, um sicher zu stellen, dass G43 beim Beenden der Routine AN ist. 69 | - Überbrückung der Routine, wenn kein Programm läuft, hinzugefügt. 70 | 71 | V5.0.1 72 | - tool_touch_off.ngc: "M50 P1" zu den returns hinzugefügt, um die Vorschubssperre aufzuheben 73 | 74 | V5.0.0 75 | - readme.md / lies_mich.md - Information zur möglichen Benutzung mit anderen GUIs hinzugefügt 76 | - manual.md / anleitung.md - Den Ablauf der Konfiguration an Probe Basic 0.6.0 und für die allgemeine Verwendung angepasst 77 | - tool_touch_off.ngc: 78 | - Aktualisierung der Parameternummern für Probe Basic 0.6.0 79 | - Die direkte Parameterübergabe entfernt 80 | - Den Parameter "traverse fr" für die Geschwindigkeit bei schnellen Bewegungen hinzugefügt 81 | - "M50 Vorschubregelung" hinzugefügt, um die Manipulation der Vorschubsgeschwindigkeit, während des Prozesses, zu unterbinden. 82 | - Die Ausrichtung des Versatz bei größeren Durchmessern aktualisiert 83 | - M600 - Den Modusparameter "#2000" hinzugefügt 84 | - M601 - Hinzugefügt, zum starten der Subroutine im manuellen Modus 85 | 86 | V4.0.1 87 | - Kompatibilitäts Hinweise hinzugefügt und Schreibfehler korrigiert. 88 | 89 | V4.0.0 90 | - readme.md / lies_mich.md - Überarbeitet, dient nun als Übersicht. 91 | - manual.md / anleitung.md - Die Anleitung überarbeitet und in eine eigene Datei verschoben. 92 | - tool_touch_off.ngc: 93 | - Die Positionierung über dem Werkzeugtaster geändert. Sichere Nutzung des G30 Befehls möglich. G30-Position als Werkzeugwechselposition. 94 | - Die Parameter in der .var-Datei von 4000-4005 auf 3000-3005 verschoben. 95 | - Durchmesserversatz hinzugefügt. Ab einem eingestellten Durchmesser versetzt die Maschine einen Prozentualenwert des Fräsers, um auch Fräser mit größerem Durchmesser messen zu können. 96 | - Werkzeug Kantentaster hinzugefügt. Ein Werkzeug kann als 3D/Kantentaster eingestellt werden, um an einer alternativen Position vermessen zu werden. 97 | - Zusätzliche Versuche hinzugefügt. Sollte die Schnellmessung fehlschlagen, können zusätzliche Versuche zur Messung des Werkzeugs eingestellt werden. Dazwischen kann die Werkzeugposition im Halter geändert werden. 98 | - Ein letzter Versuch. Als letzten Versuch kann eine Messung ohne die Werkzeugtabelle durchgeführt werden. 99 | - Deutsche Meldefenster hinzugefügt. Zum Wechsel muss das Semikolon vor "(DEBUG," und "(ABORT," versetzt werden. 100 | 101 | V3.0.1 102 | - tool_touch_off.ngc 103 | - IF Abfragen für log Befehle entfernt. 104 | - Logclose Befehle hinzugefügt. 105 | - Log END Markierungen eingefügt. 106 | - Von "o endsub" nach "o return" geändert und M2 entfernt. 107 | - readme.md / lies_mich.md 108 | - Ansicht der Notes/Warning/Important Blöcke geändert. 109 | 110 | 111 | --- 112 | ## Lizenz 113 | Copyright (C) 2022 TooTall18T 114 | 115 | This program is free software: you can redistribute it and/or modify 116 | it under the terms of the GNU General Public License as published by 117 | the Free Software Foundation, either version 3 of the License, or 118 | (at your option) any later version. 119 | 120 | This program is distributed in the hope that it will be useful, 121 | but WITHOUT ANY WARRANTY; without even the implied warranty of 122 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 123 | GNU General Public License for more details. 124 | 125 | You should have received a copy of the GNU General Public License 126 | along with this program. If not, see . 127 | -------------------------------------------------------------------------------- /docs/manual.md: -------------------------------------------------------------------------------- 1 | # Explanation of using the tool length probe subroutine for Probe Basic from TooTall18T . 2 | Version 5.0.0 as of 10.12.2024 3 | https://github.com/TooTall18T/tool_length_probe 4 | 5 | 6 | > [!IMPORTANT] 7 | > Use the subroutines at your own risk! 8 | 9 | 10 | > [!NOTE] 11 | > The German version of this document is called "[anleitung.md](anleitung.md)" and it is in the same folder. 12 | 13 | 14 | > [!NOTE] 15 | > Use version 4.0.1 of this routine for Probe Basic up to version 0.5.4-stable. 16 | > Starting with version 0.6.0 of Probe Basic or any other GUI, version 5.0.0 or higher of this routine is required. 17 | 18 | --- 19 | ## Contents 20 | - Notes and Notices 21 | - Installation 22 | - Set up 23 | - Main settings 24 | - Flow of the routine 25 | - Further functions 26 | - Further information 27 | 28 | --- 29 | ## Notes and Notices 30 | > [!NOTE] 31 | > The routines were tested with LinuxCNC 2.9.3 and Probe Basic 0.6.0-18 . 32 | > With other versions, there may be differences in the process. 33 | 34 | > [!IMPORTANT] 35 | > The functions of the routine should be tested at reduced speed before using the routine in production. 36 | 37 | > [!NOTE] 38 | > Specifications such as "**{spindel zero}**" are input fields in Probe Basic. 39 | 40 | > [!NOTE] 41 | > Specifications such as "**[TOOL]**" are buttons or menus in Probe Basic. 42 | 43 | > [!NOTE] 44 | > Specifications such as "**#**" are variables from the routine. These may have to be adjusted at the beginning of the routine at "-1- Fixed parameters". 45 | --- 46 | ## Installation 47 | Back up files that are exchanged and/or edited beforehand. 48 | Only the "tool_touch_off.ngc" file is required to use the measurement routine. 49 | All other files are optional. 50 | 51 | Enter the following in the ".ini" under "[EMCIO]": 52 | TOOL_CHANGE_AT_G30 = 0 (Prevent the machine from moving to the G30-position when using the M6-command.) 53 | TOOL_CHANGE_QUILL_UP = 0 (Prevent the machine from moving the z-axis to G53 Z0-position when using the M6-command.) 54 | 55 | Delete or comment out the following line in the ".ini" under "[EMCIO]": 56 | TOOL_CHANGE_POSITION = ...... 57 | 58 | 59 | Copy file(s) into the folder that is entered in the ".ini" under "[RS274NGS]" "SUBROUTINE_PATH" (subroutines). 60 | Check the following parameters in the ".var" file, which is stored in the ".ini" under "PARAMETER_FILE": 61 | 2000 62 | 63 | If the parameter is used, choose another one between 31 and 2999 and change the parameter (#2000) in the routine files. 64 | The parameter does not need to be entered into the parameter file. 65 | 66 | ### Optional subroutines: 67 | - go_to_g30.ngc -- The original routine moves all axis at the same time to the G30-position. The new routine moves the z-axis free and than to the x and y coordinate of the G30-position. After that the z-axis moves to its position. 68 | > [!NOTE] 69 | > The G30-position can be used as tool change position. If this case is not wanted, set "#" to "1" 70 | 71 | - M600.ngc -- Subroutine for calling tool measurement automatic mode (with tool change) from the CNC program. 72 | Enter the following in the ".ini" under "[RS274NGS]": 73 | REMAP=M600 modalgroup=6 ngc=m600 74 | > [!IMPORTANT] 75 | > A remap of "M6" is not recomended. The M6-command is used on different parts of Probe Basic and using a remap can leed to unforeseeable events. 76 | 77 | - M601.ngc -- Subroutine for calling tool measurement manual mode (without tool change) from the CNC program or by using other GUIs. 78 | Enter the following in the ".ini" under "[RS274NGS]": 79 | REMAP=M601 modalgroup=6 ngc=m601 80 | > [!IMPORTANT] 81 | > A remap of "M6" is not recomended. The M6-command is used on different parts of Probe Basic and using a remap can leed to unforeseeable events. 82 | 83 | - M300.ngc -- Subroutine to start a tool spindle without feedback. After the spindle has started, the CNC program pauses for an adjustable time (P4.0 = 4s). 84 | Enter the following in the ".ini" under "[RS274NGS]": 85 | REMAP=M300 modalgroup=7 ngc=m300 86 | 87 | - M500.ngc -- Subroutine to stop a tool spindle without feedback. If the spindle was on, the CNC program pauses for an adjustable time (P4.0 = 4s). 88 | Enter the following in the ".ini" under "[RS274NGS]": 89 | REMAP=M500 modalgroup=7 ngc=m500 90 | 91 | --- 92 | ## Set up 93 | 94 | ### Main settings 95 | 1. Open the subroutine in an editor. 96 | 2. Take out the tool. 97 | 3. Switch to tool "0". 98 | 4. Reset the workpiece coordinate system (G5X = G53). 99 | 5. Center the spindle over the tool probe. 100 | 6. Position the spindle nose slightly above the trigger point of the tool probe. 101 | ![Z-position](./images/z-position.jpg) 102 | 7. Write the G53-coordinates into the subroutine at "-1- Fixed parameters" / "-MAIN-" / "#", "#" and "#". 103 | ![G53-position](./images/machine-coordinates.jpg) 104 | 8. Set the z-axis to zero. 105 | 9. Move the z-axis up. Choose a distance that the longest tool has some space to the tool touch probe. This position is the starting position for new tools. Write the z-position from the current coordinate system into [PROBING] [TOOL SETTER] "{spindle zero}". This value can be changed at any time. 106 | ![Position new tools](./images/new_tool_position.jpg) 107 | ![Spindle zero](./images/spindle_zero.jpg) 108 | 109 | For Probe Basic under [PROBING] [TOOL SETTER] fill in the following parameters: 110 | For other GUIs fill the parameters inside the routine. Overwrite the parameters #3004-#3013. 111 | | Parameter | Description | 112 | | ------- | ----- | 113 | | fast probe fr | Speed in units/min for the first probe. | 114 | | slow probe fr | Speed in units/min for the second probing. If the value is 0, only the first probing is carried out. | 115 | | traverse fr | Speed in units/min for fast movements of the routine. | 116 | | z max travel | Maximum distance travelled by the Z-axis during the measurement of a known tool. Value should be greater than "#". | 117 | | spindle zero | Minimum distance between spindle and tool probe for new tools. | 118 | | retract dist | Distance that the Z-axis moves up after the first touch before the second touch takes place. A value must be entered, regardless of whether the slow measurement takes place or not. | 119 | | tool offset direction | For measuring tools with larger diameter. Direction of the offset. 0=X- 1=X+ 2=Y- 3=Y+ | 120 | 121 | For Probe Basic: After the parameters are filled in press [UPDATE TOOL SETTER PARAMETERS] to save the parameters in the variable file. 122 | 123 | ![Position old tools](./images/old_tool_position.jpg) 124 | 125 | 126 | Adjust the following parameters under "-2- Fixed parameters" in the "tool_touch_off.ngc" file: 127 | | Parameter | Description | 128 | | ------- | ----- | 129 | | ` MAIN` | 130 | | # | The debug mode for troubleshooting is set here. 0=OFF, 1=log file . File "logfile.txt" in the config folder of the machine. The file is overwritten each time. | 131 | | # | With "1" the tool table is used and with a known tool (length >0) the tool for the measurement is positioned lower.| 132 | | # | Distance between tool probe and old tool length. Only used in connection with tool table.| 133 | | | | 134 | | ` OPTIONS: GENERALLY ` | 135 | | # | If ">0" wait for confirmation that the program may continue to work after the measurement. 1 = M00, 2 = M01 . See "Case 2.1 and 2.2"| 136 | | # | With "1" the machine drives back to the position where the routine was started during automatic measurement.| 137 | | # | M-code number to stop the spindle. Default 5 (M5), optional 500 (M500/m500.ngc).| 138 | | # | Disables the tool change position at the G30-coordinate. Tool will be changed above the tool probe. | 139 | | #< addreps> | Number of extra repetitions. If fast probe failed, the machine moves back to the tool change position and the tool can be readjusted. | 140 | | #< lasttry> | If "1" the machine do a probing at the last repetition without the tool table. #< addreps> must be min "1". | 141 | | | | 142 | | ` OPTIONS: TOOL DIAMETER ` | For measuring tools with larger diameter. | 143 | | # | Tool diameter from when a offset should take place. 0=OFF | 144 | | # | How much of the tool diameter should move in percent. | 145 | | | | 146 | | ` OPTIONS: TOOL EDGE-FINDER ` | 147 | | # | Tool number of the edge-finder | 148 | | # | Absolute (G53) x coordinate for the z reference position edge-finder | 149 | | # | Absolute (G53) y coordinate for the z reference position edge-finder | 150 | | # | Difference between tool touch button and reference surface. | 151 | 152 | 153 | 154 | > [!IMPORTANT] 155 | > During the first measurements, the machine speed should be reduced in order not to damage anything in the event of incorrect settings. 156 | 157 | > [!NOTE] 158 | > The texts of the message and warning windows can be changed inside the "tool_touch_off.ngc" file into German. 159 | > In case search for "(DEBUG", and "(ABORT" and switch the semicolon ";". )) 160 | 161 | --- 162 | ## Flow of the routine 163 | 164 | ### 1 Sequence of the sub-routine for manual measurement via [TOUCH OFF CURRENT TOOL] or M601 165 | When called, the subroutine differentiates between two cases: new tool (length <=0mm), known tool (length >0mm) . 166 | 167 | #### Case 1.1 and 1.2: 168 | The Z-axis moves up to the machine zero point, if necessary switches off the spindle (stop function selectable via "#") and then moves to the tool probe position. 169 | The fixed parameter "#" can be used to select whether the tool table is to be used (1). If the tool table is not used (0), the machine always makes one "remeasurement" (case 1.1). 170 | Proceeding to case 1.1 or 1.2. 171 | 172 | 173 | #### Case 1.1 new tool (length <=0mm): 174 | The Z-axis moves at the "{traverse fr}" speed to the height above the tool probe, which is defined via "{spindle zero}". 175 | This value must be greater than the longest tool length to be expected, but less than the maximum way between touch probe and z-zero. 176 | The Z-axis then moves down at the "{fast probe fr}" speed until the tool probe switches or the Z-axis has covered the "{spindle zero}" distance. 177 | The latter leads to an error message: "Tool length offset probe failed!" 178 | When the button has switched, the Z-axis moves up by the "{retract dist}" value. 179 | If a speed is defined for "{slow probe fr}" (>0), the machine approaches the probe again at this speed. If no speed is defined, this step is skipped. 180 | The Z-axis then moves to the machine zero point. 181 | The machine now stops during manual measurement. 182 | 183 | 184 | #### Case 1.2 known tool (length >0mm): 185 | If the "#" parameter is "1", this sequence is used for known tools (length >0mm). Otherwise case 1.1 is used. 186 | Starting from the old tool length, the Z axis moves the tool at the "{traverse fr}" speed as high over the probe as defined under "#". 187 | "#" should not be defined too small in order to be able to absorb differences when inserting the tool. 188 | The Z-axis then moves down at the "{fast probe fr}" speed until the tool probe switches or the Z-axis has covered the "{z max travel}" distance. 189 | The latter leads to an error message: "Tool length offset probe failed!" 190 | "{z max travel}" should not be chosen too large, otherwise the spindle can move onto the probe. 191 | If the touch probe has switched, the Z-axis moves up by the "{retract dist}" value. 192 | If a speed is defined for "{slow probe fr}" (>0), the machine moves the probe again at this speed. If no speed is defined, this step is skipped. 193 | The Z-axis then moves to the machine zero point. 194 | The machine now stops during manual measurement. 195 | 196 | 197 | ### 2 Sequence of the subroutine when measuring from the CNC program (M600) 198 | When called, the subroutine differentiates between four cases: new tool (length <=0mm), known tool (length >0mm), same tool and change to "T0". 199 | 200 | 201 | #### Case 2.1 and 2.2: 202 | The measurement of new and known tools works the same way in the measurement that is started by the CNC program. See "Case 1.1" and "Case 1.2" above. 203 | However, the machine moves to the tool change position (G30 or above the touch probe) and ask for the new tool before moving to the touch probe. See also "change position". 204 | In addition, you can use the fixed parameter "#" (1) in the routine to select that the machine, after the measurement, returns to the point where the routine was called. So you don't have to program the return path from the tool probe in the CNC program. 205 | Moves the machine back due to "#". Can be selected via "#" (0/1/2) whether the machine waits at the point before 206 | the CNC program continues to run. 207 | "0" does not pause. 208 | "1" pauses using "M00" command. Continue driving by pressing [CYCLE START] 209 | "2" makes a break using the "M01" command if [M01 BREAK] is also active in Probe Basic. Continue driving by pressing [CYCLE START] 210 | 211 | > [!WARNING] 212 | > The subroutine does not restart the spindle! 213 | 214 | 215 | #### Case 2.3 same tool: 216 | Is the selected tool already in the machine. The message "Same tool" is output. The spindle would not be stopped. 217 | "#" (0/1/2) can be used to select whether the machine waits at this point before the CNC program continues to run. 218 | "0" does not pause. 219 | "1" pauses using "M00" command. Continue driving by pressing [CYCLE START] 220 | "2" makes a break using the "M01" command if [M01 BREAK] is also active in Probe Basic. Continue driving by pressing [CYCLE START] 221 | 222 | 223 | #### Case 2.4 Change to T0: 224 | > [!WARNING] 225 | > A change at the end of the CNC program using "M600 T0" can cause LinuxCNC to switch from G43 to G49 if the program aborts! 226 | > If the program is restarted, it may not switch back to G43. Danger of collision! 227 | > The case only serves to ensure that a measurement is not accidentally started with tool "0". 228 | 229 | ### Further functions 230 | 231 | #### Debug mode 232 | The debug mode writes the "logfile.txt" file inside the configurations directory. In this file some machine and subroutines parameter will be saved to help with trouble shooting. The file will be overwritten every time. 233 | 234 | #### Change position 235 | The tool change position (G30) can be set with [PROBING] [TOOL SETTER] [SET TOOL TOUCH OFF POS]. 236 | To do this, move the machine to the desired position and press [SET TOOL TOUCH OFF POS]. This position can be changed at any time if needed. To use this position for the routine "#" must be set to "0". 237 | If this function will be used, the machine moves to the G30 X-, Y- and Z-coordinate in case of a measurement started with "M600" and asks there for the tool change. 238 | After that the machine moves to the touch probe position. 239 | When the tool table is used and the additional repetitions ("#< addreps>") is set to a min. of "1", the machine moves to this position after the fast measurement failed. This happens at the manual and automatic measurement. 240 | This will happen to readust the tool. 241 | If the option "last try" will be used, the machine doesn't move to this position at the last try of measurement. 242 | 243 | #### Additional repetitions 244 | If the measurement with an active tool table fails during the fast measurement due to a tool that has been installed too short. Additional repetitions can be added using this parameter. After a failure, the tool can be readjusted if necessary or a “new measurement” can be started in conjunction with the “Last try” function. 245 | 246 | #### Last try 247 | For the "Last try" function, "#< addreps>" must be set to at least "1". If the measurements have failed except for the last attempt, a new measurement can be carried out using this function. 248 | If "#< addreps>" and "#< lasttry>" are each set to "1" when the tool table is used and the fast measurement according to case 1.2 or 2.2 fails, the machine directly carries out a "new measurement" according to case 1.1 or 2.1 . 249 | 250 | #### Tool diameter offset 251 | For tools with a larger diameter, this function can be used to create a center offset. The direction of this offset can be set by [PROBING] [TOOL SETTER] [TOOL OFFSET DIRECTION]. 252 | 253 | #### Edge-finder 254 | If it is not possible to measure a 3D/edge-finder using the tool probe. An alternative survey position can be defined for this. The height difference between the measurement position and the tool probe must be determined and entered in "#". The sign indicates the difference in the axial direction. "-" = lower than tool probe, "+" = higher than tool probe. 255 | 256 | --- 257 | ## Further information: 258 | > [!NOTE] 259 | > The "xy max travel", "tool diam probe" and "tool diam offset" parameters are not used in the routine. 260 | -------------------------------------------------------------------------------- /tool_touch_off.ngc: -------------------------------------------------------------------------------- 1 | ;Subprogram for manual tool change with measurement of the tool. 2 | ;Version date: 2025-03-08 3 | ;Version: 5.0.2 4 | ;https://github.com/TooTall18T/tool_length_probe 5 | 6 | ;This subprogram is based on the original subprogram "tool_touch_off.ngc" that came with Probe Basic. 7 | 8 | ;For Probe Basic 9 | ;The parameters 3004 till 3013 must be in the .var-file which is registered under "PARAMETER_FILE" in the machine .ini-file. 10 | 11 | ;For non Probe Basic use 12 | ;replace the parameters #3004 till #3013 with valid values. 13 | 14 | 15 | o sub 16 | ;Ensures that the routine is not run when checking the CNC program. 17 | ;This can sometimes lead to unjustified errors. 18 | o<400> if [#<_task> EQ 1] 19 | 20 | ;-1- Fixed parameters 21 | ;-MAIN- 22 | # = 0 ;The debug mode for troubleshooting is set here. 0=OFF, 1=log file . File in the machine's config folder. 23 | # = 0 ;Position of the length button in X 24 | # = 0 ;Position of the length button in Y 25 | # = 0 ;Position above the length button in Z 26 | # = 1 ;If "1" the machine uses the tool table for positioning the tool over the 27 | # = 10 ;Distance, when measuring a known tool again, between the touch plate and the tool. 28 | 29 | ;-OPTIONS- 30 | ;--Generally-- 31 | # = 0 ;If ">0" wait for confirmation that the program may continue to work after the measurement. 1=M00, 2=M01 32 | # = 0 ;If "1" the machine returns to the position where the routine was started. 33 | # = 5 ;M-Code number to stop the spindle default 5 (M5), option 500 (M500). 34 | # = 1 ;Disable the pre change positioning at g30 position. 35 | # = 0 ;Number of extra repetitions if fast probe failed. 36 | # = 0 ;If "1" the machine do a probing at the last repetition without the tool table. # must be min "1". 37 | 38 | ;--Tool diameter-- 39 | # = 0 ;Tool diameter from when a offset should take place. 0=OFF 40 | ;Direction of the offset will be set in Probe Basic (#). 41 | # = 50 ;How much of the tool diameter should move in percent. 42 | 43 | ;--Tool edge-finder-- 44 | # = 0 ;Tool number of the edge-finder 45 | # = 0 ;x coordinate for the z reference position in G53 46 | # = 0 ;y coordinate for the z reference position in G53 47 | # = 0 ;Differenz between tool touch button and reference surface. Sign indicates surface difference in axial direction. 48 | 49 | 50 | ;-2- Transfer parameters 51 | ;Adding and changing the variables and transfer parameters leads to the routine not being executed (LinuxCNC/Probe Basic). 52 | # = #2000 (Modes: 0=manual, 1=automatic, 2=check) 53 | #2000 = 0 54 | # = #3004 (set from probe screen fast probe feed rate) 55 | # = #3005 (set from probe screen slow probe feedrate) 56 | # = #3006 (set from probe screen traverse probe feedrate) 57 | # = #3007 (max z distance the tool travels before erroring out if not contact is made) 58 | # = #3008 (max xy distance the tool travels before erroring out if not contact is made) 59 | # = #3009 (distance the tool retracts after making contact during fast feed mode) 60 | # = #3010 (G53 distance from spindle nose triggering point on touch plate up for tools with zero length) 61 | 62 | # = #3011 (not in use, activates the tool diameter probe subroutine section) 63 | # = #3012 (not in use, activates the tool diameter offset position for probe subroutine section) 64 | # = #3013 (sets tool setter offset direction to move tool) 65 | 66 | 67 | ;-3- Create debug mode log file 68 | o<10> if [# GT 0] 69 | (DEBUG, "logfile.txt" created in the configuration folder.) 70 | ;(DEBUG, "logfile.txt" im Konfigurationsordner erstellt.) 71 | (LOGOPEN,logfile.txt) 72 | (LOG, Log file for the subroutine "tool_touch_off.ngc" Version 5.0.0 from TooTall18T) 73 | (LOG, Mode: #) 74 | (LOG, Fast: #) 75 | (LOG, Slow: #) 76 | (LOG, Travel: #) 77 | (LOG, Zmax travel: #) 78 | (LOG, XY max travel: #) 79 | (LOG, Retract: #) 80 | (LOG, spindle_zero_height: #) 81 | (LOG, ===) 82 | (LOG, tool touch x coodrs: #) 83 | (LOG, tool touch y coodrs: #) 84 | (LOG, tool touch z coodrs: #) 85 | (LOG, Min XYZ: #<_ini[AXIS_X]MIN_LIMIT> #<_ini[AXIS_Y]MIN_LIMIT> #<_ini[AXIS_Z]MIN_LIMIT>) 86 | (LOG, Max XYZ: #<_ini[AXIS_X]MAX_LIMIT> #<_ini[AXIS_Y]MAX_LIMIT> #<_ini[AXIS_Z]MAX_LIMIT>) 87 | (LOG, Pos XYZ: #5420 #5421 #5422) 88 | (LOG, === MAIN ===) 89 | (LOG, No Probe Basic: #) 90 | (LOG, tool table: #) 91 | (LOG, tool min dis: #) 92 | (LOG, === OPTION Generally ===) 93 | (LOG, Brake: #) 94 | (LOG, Back: #) 95 | (LOG, Spindel stop: #) 96 | (LOG, disable g30 pos: #) 97 | (LOG, Additional reps: #) 98 | (LOG, Last try: #) 99 | (LOG, === OPTION Tool diameter ===) 100 | (LOG, offset_diameter: #) 101 | (LOG, offset_direction: #) 102 | (LOG, offset_value: #) 103 | (LOG, === OPTION Tool edge-finder ===) 104 | (LOG, Finder No: #) 105 | (LOG, Finder X: # ) 106 | (LOG, Finder Y: # ) 107 | (LOG, Finder diff: #) 108 | (LOG, === OPTION Pre change pos ===) 109 | (LOG, ============================) 110 | o<10>endif 111 | 112 | 113 | 114 | 115 | 116 | 117 | ;-10- Check for manual tool calibration and new parameters 118 | M50 P0 119 | 120 | 121 | 122 | ;-20- Save the stop position in the current coordinate system 123 | # = #5420 ;current X position in the current coordinate system 124 | # = #5421 ;current Y position in the current coordinate system 125 | # = #5422 ;current Z position in the current coordinate system 126 | # = 0 ;Stores the current Z position in the current coordinate system, will be set later 127 | 128 | 129 | ;-30- Save tool number of old and new tool 130 | # = #<_current_tool> ;Value from system variable 131 | # = #<_selected_tool> ;Value from system variable 132 | (LOG, Old tool: # / New tool: #) 133 | 134 | 135 | ;-40- Compare new and old tool numbers 136 | ;If the tool in the spindle is the same as the one selected, no change is made. Except for manual measurement. 137 | o<90> if [# EQ 1] 138 | o<92> if [# EQ #] 139 | G43 140 | (DEBUG, Same tool) 141 | ;(DEBUG, Selbes Werkzeug) 142 | o<94> if [ # EQ 1] 143 | M00 ;Interrupts the program flow until you press Start again 144 | o<94> elseif [# EQ 2] 145 | M01 ;If option is selected and [M01 BREAK] is selected in the interface, the machine pauses. 146 | o<94> endif 147 | M50 P1 148 | (LOG, END same tool) 149 | (LOGCLOSE) 150 | o return 151 | o<92> endif 152 | o<90> endif 153 | 154 | 155 | ;-50- Change to T0 156 | ;A change at the end of the CNC program using "M600 T0" can cause LinuxCNC to switch from G43 to G49 if the program aborts! 157 | ;If the program is restarted, it may not switch back to G43. Danger of collision! 158 | ;The case only serves to ensure that a measurement is not accidentally started with tool 0. 159 | o<100> if [# EQ 0] 160 | G90 161 | G53 G1 F# Z0 162 | M6 T# 163 | G49 164 | M50 P1 165 | (LOG, END M6 T0) 166 | (LOGCLOSE) 167 | o return 168 | o<100> endif 169 | (LOG, ============================) 170 | 171 | ;-60- Start of loop, fast measurement 172 | ;If # is higher than "0" and fast probe failed, the routine does loops to refit the tool and probe again. 173 | ;If # is set to "1" and # ist higher than "0", at the last repetition the machine does a measurement without the tool table. 174 | # = 0 175 | # = [# + 1] 176 | o<200> do 177 | 178 | 179 | ;-70- Positioning over tool length sensor / change position / edge-finder position 180 | ;Turn off spindle befor the machine moves to probe / change / edge-finder position. 181 | G49 182 | G90 (set absolute coordinates) 183 | G53 G1 F# Z0 (move to z0 home position) 184 | # = #5422 ;Stores the offset of the current Z coordinate at G53 Z0 without tool offset. 185 | M# 186 | 187 | o<106> if [# EQ 0 AND [[# EQ 1 AND # NE 2] OR # EQ 1]] 188 | ;Change position 189 | G53 G1 F# X#5181 Y#5182 190 | G53 G1 F# Z#5183 191 | o<106> elseif [# EQ 0 AND # GT 0 AND # EQ #] 192 | ;Edge-finder position 193 | G53 G1 F# X# Y# 194 | o<106> elseif [# EQ 0] 195 | ;Tool touch position 196 | G53 G1 F# X# Y# 197 | o<106> endif 198 | (LOG, Offset_Z: #) 199 | 200 | 201 | ;-80- Stops at probe failed 202 | ;If last probe failed, machine stops to reposition the tool. 203 | ;Switch to T0 to switch to the right tool in the next step. 204 | o<204> if [# NE 0 ] 205 | o<205> if [# EQ 1 AND # EQ 1] 206 | # = 0 207 | (DEBUG, Tool length offset probe failed! Last try without tool table.) 208 | ;(DEBUG, Werkzeugvermessung fehlgeschlagen! Letzter Versuch ohne Werkzeugtabelle.) 209 | (LOG, === Probe failed, Without tool table ===) 210 | o<205> else 211 | M61 Q0 212 | (DEBUG, Tool length offset probe failed! Attempts left: # Reposition tool or cancel.) 213 | ;(DEBUG, Werkzeugvermessung fehlgeschlagen! Versuche übrig: # Werkzeug neu positionieren oder abbrechen.) 214 | (LOG, === Probe failed, Attempts left: # ===) 215 | o<205> endif 216 | o<204> endif 217 | 218 | 219 | ;-90- Tool change 220 | M6 T# 221 | # = #5403 ;Old tool length of the tool selected by T 222 | (LOG, Old tool length: #) 223 | 224 | 225 | ;-100- Positioning for measuring 226 | G53 G1 F# Z0 (move to z0 home position) 227 | o<160> if [# GT 0 AND # EQ #] 228 | ;Edge-finder position 229 | G53 G1 F# X# Y# 230 | o<160> else 231 | o<107> if [# GT 0 AND # LE #5410] 232 | ;Tool diameter correction 233 | # = [[#5410 * #]/100] 234 | (LOG, Offset_dis: #) 235 | o<108> if [# EQ 0] 236 | ;Offset X- 237 | G53 G1 F# X[#-#] Y# 238 | o<108> elseif [# EQ 1] 239 | ;Offset X+ 240 | G53 G1 F# X[#+#] Y# 241 | o<108> elseif [# EQ 2] 242 | ;Offset Y- 243 | G53 G1 F# X# Y[#-#] 244 | o<108> elseif [# EQ 3] 245 | ;Offset Y+ 246 | G53 G1 F# X# Y[#+#] 247 | o<108> endif 248 | o<107> else 249 | ;Tool touch position 250 | G53 G1 F# X# Y# 251 | o<107> endif 252 | o<160> endif 253 | 254 | 255 | ;-110- Determination of the Z starting position for G38 256 | o<110> if [# EQ 1 AND # GT 0] 257 | ;If the machine uses the tool table and the tool length ist greater than "0" . 258 | # = [# + # + #] 259 | (LOG, Old tool) 260 | o<110> else 261 | ;If the machine doesn't use the tool table or for tools with a unknown length (<=0). 262 | # = [# + #] 263 | # = # 264 | (LOG, New tool) 265 | o<110> endif 266 | o<111> if [# EQ #] 267 | ;Correction of the edge-finder height. 268 | # = [# + #] 269 | o<111>endif 270 | (LOG, Probe start pos: #) 271 | (LOG, max travel: #) 272 | 273 | 274 | ;-120- Move to Z start position for length measurement 275 | G53 G1 F# Z# 276 | 277 | 278 | ;-130- Fast probe 279 | G91 280 | o<190> if [#<_task> EQ 1] 281 | F # 282 | o<190> endif 283 | G38.3 Z-[#] (fast tool probe) 284 | G1 F# Z[#] (retract tool retract distance amount) 285 | G90 286 | # = [# - 1] 287 | (LOG, Fast probe: #5063) 288 | 289 | 290 | ;-140- Verify fast probe event was succesful 291 | o<201> if [#5070 NE 1 AND #<_task> EQ 1] 292 | o<202> if [# EQ 0] 293 | G90 294 | (ABORT, Tool length offset probe failed!) 295 | ;(ABORT, Werkzeugvermessung fehlgeschlagen!) 296 | o<202> else 297 | o<206> if [# EQ 1 AND # EQ 1] 298 | # = 2 299 | o<206> else 300 | # = 1 301 | o<206> endif 302 | o<202> endif 303 | o<201> else 304 | # = 0 305 | o<201> endif 306 | 307 | 308 | ;-150- End of loop 309 | o<200> while [# GT 0] 310 | (LOG, ============================) 311 | 312 | 313 | 314 | ;-160- Slow probe 315 | (Slow Probe Rule, if Slow Probe FR is set to 0, Slow Probe is Bypassed) 316 | o<120> if [# GT 0] 317 | (Initiate Slow Z- Probe) 318 | G91 319 | o<125> if [#<_task> EQ 1] 320 | F[#] (set probe slow feedrate) 321 | o<125> endif 322 | G38.2 Z-[# * 2] (slow tool probe) 323 | ;# = #5063 324 | G1 F# Z[#] 325 | G90 326 | (LOG, Slow probe: #5063) 327 | 328 | ;Check for a successful measurement result 329 | o<130> if [#5070 NE 1 AND #<_task> EQ 1] (verify probe event was not succesful) 330 | (LOG, Slow Tool Length Offset Probe Failed!) 331 | (ABORT, Slow Tool Length Offset Probe Failed!) 332 | ;(ABORT, Langsame Werkzeugvermessung fehlgeschlagen!) 333 | o<130> endif 334 | 335 | o<120> endif 336 | 337 | 338 | ;-170- Define new tool length 339 | (define new tool length offset parameters) 340 | o<131> if [# EQ #] 341 | # = [[ABS[#] + #5063 - #] - #] 342 | o<131> else 343 | # = [ABS[#] + #5063 - #] 344 | o<131>endif 345 | (LOG, New tool length: #) 346 | 347 | 348 | ;-180- Save new tool length 349 | G10 L1 P #5400 Z [#] (5400 = tool number) 350 | 351 | 352 | ;-190- Activate new tool and calculate offset 353 | T #5400 G43 H #5400 (enable tool length offset) 354 | 355 | 356 | ;-200- Drive the tool free 357 | G90 (set absolute coordinates) 358 | G53 G1 F# Z0 (Send spindle to home zero position) 359 | 360 | 361 | ;-210- Return to hold position and choose pause 362 | ;Runs only in automatic mode. 363 | o<140> if [# EQ 1] 364 | o<141> if [# EQ 1] 365 | G1 F# X[#] Y[#] 366 | G1 F# Z[#] 367 | o<141> endif 368 | 369 | ;Selects the type of pause after the survey. 370 | o<142> if [ # EQ 1] 371 | M00 ;Interrupts the program flow until you press Start again 372 | o<142> elseif [# EQ 2] 373 | M01 ;If option is selected and [M01 BREAK] is selected in the interface, the machine pauses. 374 | o<142> endif 375 | 376 | o<140> endif 377 | 378 | M50 P1 379 | 380 | (LOG, END) 381 | (LOGCLOSE) 382 | o<400> endif 383 | o endsub 384 | 385 | M2 (end program) 386 | -------------------------------------------------------------------------------- /docs/anleitung.md: -------------------------------------------------------------------------------- 1 | # Erklärung zur Nutzung der Werkzeugvermessungsroutine für Probe Basic von TooTall18T . 2 | Version 5.0.0 stand 10.12.2024 3 | https://github.com/TooTall18T/tool_length_probe 4 | 5 | > [!IMPORTANT] 6 | > Die Benutzung der Subroutinen geschieht auf eigene Gefahr! 7 | 8 | 9 | > [!NOTE] 10 | > Bis zur Probe Basic Version 0.5.4-stable muss die Version 4.0.1 dieser Routine genutzt werden. 11 | > Ab Version 0.6.0 von Probe Basic oder einer anderen GUI wird die Version 5.0.0 oder höher dieser Routine benötigt. 12 | 13 | 14 | --- 15 | ## Inhalt 16 | - Anmerkungen und Hinweise 17 | - Installation 18 | - Einrichten 19 | - Grundeinstellung 20 | - Ablauf der Routine 21 | - Weitere Funktionen 22 | - Weitere Informationen 23 | 24 | --- 25 | ## Anmerkungen und Hinweise 26 | > [!NOTE] 27 | > Die Routinen wurden mit den Versionen LinuxCNC 2.9.3 und Probe Basic 0.6.0-18 getestet. 28 | > Bei anderen Versionsständen können unter Umständen Unterschiede im Ablauf statt finden. 29 | 30 | > [!IMPORTANT] 31 | > Die Funktionen der Routine sollten mit verminderter Geschwindigkeit getestet werden, bevor die Routine im Fertigungseinsatz genutzt wird. 32 | 33 | > [!NOTE] 34 | > Bei Angaben wie "**{spindel zero}**" handelt es sich um Eingabefelder in Probe Basic. 35 | 36 | > [!NOTE] 37 | > Bei Angaben wie "**[TOOL]**" handelt es sich um Schaltflächen oder Menüs in der Oberfläche von Probe Basic. 38 | 39 | > [!NOTE] 40 | > Bei Angaben wie "**#**" handelt es sich um Variablen aus der Routine. Diese müssen ggf. am Anfang der Routine unter "-1- Fixed parameters" angepasst werden. 41 | 42 | --- 43 | ## Installation 44 | Dateien die ausgetauscht und/oder bearbeitet werden vorher sichern. 45 | Zur Nutzung der Vermessungsroutine wird nur die Datei "tool_touch_off.ngc" benötigt. 46 | Alle anderen Dateien sind optional. 47 | 48 | In der ".ini" unter "[EMCIO]" folgende Einträge ergänzen: 49 | TOOL_CHANGE_AT_G30 = 0 (Prevent the machine from moving to the G30-position when using the M6-command.) 50 | TOOL_CHANGE_QUILL_UP = 0 (Prevent the machine from moving the z-axis to G53 Z0-position when using the M6-command.) 51 | 52 | Die folgen Zeile in der ".ini" unter "[EMCIO]" löschen oder auskommentieren: 53 | TOOL_CHANGE_POSITION = ...... 54 | 55 | Datei(en) in den Ordner kopieren der in der ".ini" unter "[RS274NGS]" "SUBROUTINE_PATH" eingetragen ist (subroutines). 56 | In der ".var" Datei, welche in der ".ini" unter "PARAMETER_FILE" hinterlegt ist, prüfen 57 | ob der folgende Parameter genutzt wird: 58 | 2000 59 | 60 | Sollte dieser genutzt werden, einen Anderen freien zwischen 31 und 2999 wählen und in den 61 | Dateien der Routine ändern (#2000). 62 | Der Parameter muss nicht in die Parameterdatei eingetragen werden. 63 | 64 | ### Optionale Subroutinen 65 | - go_to_g30.ngc -- Die original Routine fährt alle Achsen gleichzeitig auf die G30-Position. Diese Routine fährt die Z-Achse frei und danach zunächst die X- und Y-Achse an die G30-Position. Dort angekommen wird auch die Z-Achse auf die G30-Position gefahren. 66 | > [!NOTE] 67 | > Die G30-Position kann als Werkzeugwechselposition genutzt werden. Sollte dies nicht gewünscht sein, den Parameter "#" auf "1" setzen. 68 | 69 | - M600.ngc -- Subroutine zum Aufruf der Werkzeugvermessung Automatikmodus (mit Werkzeugwechsel) aus dem CNC Programm heraus. 70 | In der ".ini" unter "[RS274NGS]" folgendes eintragen: 71 | REMAP=M600 modalgroup=6 ngc=m600 72 | > [!IMPORTANT] 73 | > Ein remap auf "M6" ist nicht zu empfehlen, da der M6-Befehl an verschiedenen Stellen in Probe Basic genutzt wird und es so zu nicht vorhersehbaren Ereignissen führen kann. 74 | 75 | - M601.ngc -- Subroutine zum Aufruf der Werkzeugvermessung Manuellermodus (ohne Werkzeugwechsel) aus dem CNC Programm heraus oder für die Verwendung bei anderen GUIs. 76 | In der ".ini" unter "[RS274NGS]" folgendes eintragen: 77 | REMAP=M601 modalgroup=6 ngc=m601 78 | > [!IMPORTANT] 79 | > Ein remap auf "M6" ist nicht zu empfehlen, da der M6-Befehl an verschiedenen Stellen in Probe Basic genutzt wird und es so zu nicht vorhersehbaren Ereignissen führen kann. 80 | 81 | - M300.ngc -- Subroutine zum Starten einer Werkzeugspindel ohne Rückmeldung. Das CNC Programm pausiert nach dem Start der Spindel für eine einstellbare Zeit (P4.0 = 4s). Die Zeit wird in der Routine eingetragen. 82 | In der ".ini" unter "[RS274NGS]" folgendes eintragen: 83 | REMAP=M300 modalgroup=7 ngc=m300 84 | 85 | - M500.ngc -- Subroutine zum Stoppen einer Werkzeugspindel ohne Rückmeldung. Wenn die Spindel an war, pausiert das CNC Programm für eine einstellbare Zeit (P4.0 = 4s). Die Zeit wird in der Routine eingetragen. 86 | In der ".ini" unter "[RS274NGS]" folgendes eintragen: 87 | REMAP=M500 modalgroup=7 ngc=m500 88 | 89 | --- 90 | ## Einrichten 91 | 92 | ### Grundeinstellung 93 | 1. Die Subroutine in einem Editor öffnen. 94 | 2. Werkzeug aus der Spindel entfernen. 95 | 3. Werkzeug auf "0" umschalten. 96 | 4. Verschiebung des Werkstückkoordinatensystems zurücksetzen (G5X = G53). 97 | 5. Die Spindel zentrisch über dem Werkzeugtaster positionieren. 98 | 6. Die Spindel knapp über dem Schaltpunkt des Werkzeugtasters positionieren. 99 | ![Z-Position](./images/z-position.jpg) 100 | 7. Die G53-Koordinaten ablesen und in der Subroutine unter "-1- Fixed parameters" / "-MAIN-" / "#", "#" und "#" eintragen. 101 | ![G53-Position](./images/machine-coordinates.jpg) 102 | 8. Z-Achse nullen. 103 | 9. Z-Achse hoch fahren. Abstand zwischen Längentaster und Spindel so groß wählen, dass das längste Werkzeug mit Abstand dazwischen passt. Diese Position dient als Startpunkt für die Vermessung von neuen Werkzeugen. Die Z-Position aus dem akuellen Koordinatensystem unter [PROBING] [TOOL SETTER] "{spindle zero}" eintragen. Der Wert kann jederzeit geändert werden. 104 | ![Position neue Werkzeuge](./images/new_tool_position.jpg) 105 | ![Spindle zero](./images/spindle_zero.jpg) 106 | 107 | 108 | Für Prob Basic unter [PROBING] [TOOL SETTER] die folgenden Parameter ausfüllen: 109 | Für andere GUIs die Parameter in der Routine ausfüllen. Die Parameter #3004-#3013 überschreiben: 110 | | Parameter | Beschreibung | 111 | | ------- | ----- | 112 | | fast probe fr | Geschwindigkeit in Maschineneinheit/min für die erste Antastung (schnelle Vermessung). | 113 | | slow probe fr | Geschwindigkeit in Maschineneinheit/min für die zweite Antastung. Ist der Wert 0 , wird nur die erste Antastung durchgeführt. | 114 | | traverse fr | Geschwindigkeit in Maschineneinheit/min für schnelle Bewegungen wärend des Prozesses. | 115 | | z max travel | Maximale Strecke die die Z-Achse während der Vermessung eines bekannten Werkzeugs zurücklegt. Wert sollte größer als "#" sein. | 116 | | spindle zero | Abstand zwischen Spindel und Werkzeugtaster für Neuvermessungen. | 117 | | retract dist | Strecke die die Z-Achse nach der ersten Antastung nach oben fährt bevor die zweite Antastung stattfindet. Es muss ein Wert eingetragen sein, egal ob die langsame Vermessung stattfindet oder nicht. | 118 | | tool offset direction | Zur Vermessung von Werkzeugen mit großen Durchmessern. Richtung des Werkzeugversatzes. 0=X- 1=X+ 2=Y- 3=Y+ | 119 | 120 | Bei Probe Basic: Nachdem die Parameter ausgefüllt sind [UPDATE TOOL SETTER PARAMETERS] drücken, um die Parameter in der Variablendatei zu speichern. 121 | 122 | ![Position bekannte Werkzeuge](./images/old_tool_position.jpg) 123 | 124 | 125 | 126 | In der Datei "tool_touch_off.ngc" die folgenden Parameter unter "-1- Fixed parameters" anpassen: 127 | | Parameter | Beschreibung | 128 | | ------- | ----- | 129 | | `ALLGEMEIN` | | 130 | | # | Hier wird der Debugmode zur Fehlersuche eingestellt. 0=AUS, 1=Logdatei . Datei "logfile.txt" im Konfigurationsordner der Maschine. Die Datei wird jedes mal überschrieben. | 131 | | # | Bei "1" wird die Werkzeugtabelle genutzt und bei einem bekannten Werkzeug (Länge >0) das Werkzeug für die Vermessung tiefer positioniert. | 132 | | # | Abstand zwischen Werkzeugtaster und alter Länge des Werkzeugs. Nur in Verbindung mit Werkzeugtabelle genutzt. Wert sollte kleiner als "{z max travel}" sein. | 133 | | | | 134 | | `OPTION: ALLGMEIN` | | 135 | | # | Bei ">0" warten auf Bestätigung, dass das Programm nach der Vermessung weiter arbeiten darf. 1 = M00, 2 = M01 . Siehe "Fall 2.1 und 2.2" | 136 | | # | Bei "1" fährt die Maschine, bei der Automatischen Vermessung, zur Position zurück an der die Routine gestartet wurde. | 137 | | # | M-Befehlnummer zum stoppen der Spindel. Standard 5 (M5), optional 500 (M500 / m500.ngc). | 138 | | # | Deaktiviert die Werkzeugwechselposition an der G30-Koordinaten. Werkzeug wird über Werkzeugtaster gewechselt. | 139 | | #< addreps> | Anzahl zusätzlicher Vermessungsversuche. Bei fehlerhafter schneller Vermessung fährt die Maschine wieder an die Werkzeugwechselposition und das Werkzeug kann neu eingestellt werden. | 140 | | #< lasttry> | Bei "1" macht die Maschine beim letzten Vermessungsversuch eine Vermessung ohne Werkzeugtabelle. #< addreps> muss mindestens "1" sein. | 141 | | | | 142 | | `OPTION: WERKZEUGVERSATZ` | Zur Vermessung von Werkzeugen mit großen Durchmessern. | 143 | | # | Durchmesser ab dem das Werkzeug versetzt werden soll. 0 = AUS | 144 | | # | Werkzeugversatz in Prozent. | 145 | | | | 146 | | `OPTION: 3D-TASTER` | Alternative Vermessungsposition für 3D-/Kantentaster. | 147 | | # | Werkzeugnummer für Taster. | 148 | | # | Absolute (G53) X-Koordinate für Messpunkt 3D-/Kantentaster. | 149 | | # | Absolute (G53) Y-Koordinate für Messpunkt 3D-/Kantentaster. | 150 | | # | Differenz zwischen Werkzeugtaster und Referenzoberfläche. Das Vorzeichen gibt die Differenz in Achsrichtung an. "-" = tiefer als Werkzeugtaster, "+" = höher als Werkzeugtaster. | 151 | 152 | 153 | 154 | > [!IMPORTANT] 155 | > Bei den ersten Vermessungen sollte die Maschinengeschwindigkeit verringert werden um ggf. bei fehlerhaften Einstellungen nichts zu beschädigen. 156 | 157 | > [!NOTE] 158 | > Die Texte der Melde- und Warnfenster, die durch die Routine erzeugt werden, können in der "tool_touch_off.ngc" auf Deutsch umgestellt werden. 159 | > Hierzu in der Routine nach "(DEBUG", und "(ABORT" suchen und das Semikolon ";" versetzen. )) 160 | 161 | --- 162 | ## Ablauf der Routine 163 | 164 | ### 1 Ablauf der Subroutine bei manueller Vermessung über [TOUCH OFF CURRENT TOOL] oder M601 165 | Die Subroutine unterscheidet beim Aufruf zwei Fälle: neues Werkzeug (Länge <=0mm), bekanntes Werkzeug (Länge >0mm). 166 | 167 | #### Fall 1.1 und 1.2: 168 | Die Z-Achse fährt auf Maschinen Nullpunkt hoch und schaltet ggf. die Spindel aus (über "#" Stoppfunktion wählbar). Anschließend fährt die Maschine zum Werkzeugtaster. 169 | Über den festen Parameter "#" kann gewählt werden, ob die Werkzeugtabelle genutzt wird (1). Wird die Werkzeugtabelle nicht genutzt (0), macht die Maschine immer eine "Neuvermessung" (Fall 1.1). 170 | Fortfahrend mit Fall 1.1 oder 1.2 . 171 | 172 | 173 | #### Fall 1.1 neues Werkzeug (Länge <=0mm): 174 | Die Z-Achse fährt mit der Geschwindigkeit "{traverse fr}" auf die Höhe von "{spindle zero}" über den Werkzeugtaster. 175 | Dieser Wert muss größer sein als das längste zuerwartende Werkzeug, darf aber nicht länger sein als der Weg zwischen Werkzeugtaster und Z-Null. 176 | Anschließend fährt die Z-Achse mit der Geschwindigkeit "{fast probe fr}" solange runter bis der Werkzeugtaster schaltet oder die Z-Achse die Strecke "{spindel zero}" abgefahren hat. 177 | Letzteres führt zu einer Fehlermeldung: "Tool length offset probe failed!" / "Werkzeugvermessung fehlgeschlagen!" 178 | Wenn der Taster geschaltet hat, fährt die Z-Achse um den Wert "{retract dist}" nach oben. 179 | Ist eine Geschwindigkeit für "{slow probe fr}" (>0) definiert, fährt die Maschine den Taster nochmal mit dieser Geschwindigkeit an. Sollte keine Geschwindigkeit definiert sein, wird dieser Schritt übersprungen. 180 | Danach fährt sich die Z-Achse auf Maschinen Nullpunkt frei. 181 | Die Maschine bleibt bei manueller Vermessung jetzt stehen. 182 | 183 | 184 | #### Fall 1.2 bekanntes Werkzeug (Länge >0mm): 185 | Wenn der Parameter "#" "1" ist, wird bei bekannten Werkzeugen (Länge >0mm) dieser Ablauf verwendet. Ansonsten wird der Fall 1.1 genutzt. 186 | Die Z-Achse fährt mit der Geschwindigkeit "{traverse fr}" das Werkzeug, ausgehend von der alten Werkzeuglänge, so hoch über den Taster wie es unter "#" definiert ist. 187 | "#" sollte nicht zu klein definiert werden, um Unterschiede beim Einlegen des Werkzeugs abfangen zu können. 188 | Anschließend fährt die Z-Achse mit der Geschwindigkeit "{fast probe fr}" solange runter bis der Werkzeugtaster schaltet oder die Z-Achse die Strecke "{z max travel}" abgefahren hat. 189 | Letzteres führt zu einer Fehlermeldung: "Tool length offset probe failed!" / "Werkzeugvermessung fehlgeschlagen!". 190 | "{z max travel}" sollte nicht zu groß gewählt werden, da sonst die Spindel auf den Taster fahren kann. 191 | Wenn der Taster geschaltet hat, fährt die Z-Achse um den Wert "{retract dist}" nach oben. 192 | Ist eine Geschwindigkeit für "{slow probe fr}" (>0) definiert, fährt die Maschine den Taster 193 | nochmal mit dieser Geschwindigkeit an. Sollte keine Geschwindigkeit definiert sein, wird dieser Schritt übersprungen. 194 | Danach fährt sich die Z-Achse auf Maschinen Nullpunkt frei. 195 | Die Maschine bleibt bei manueller Vermessung jetzt stehen. 196 | 197 | 198 | ### 2 Ablauf der Subroutine bei Vermessung aus dem CNC Programm heraus (M600) 199 | Die Subroutine unterscheidet beim Aufruf vier Fälle: neues Werkzeug (Länge <=0mm), bekanntes Werkzeug (Länge >0mm), gleiches Werkzeug und Wechsel auf "T0" . 200 | 201 | 202 | #### Fall 2.1 und 2.2: 203 | Die Vermessung von neuen und bekannten Werkzeugen funktioniert in der Vermessung, die durch das CNC Programm gestartet wird, gleich. Siehe dazu "Fall 1.1" und "Fall 1.2" oben. 204 | Jedoch fährt die Maschine an die Werkzeugwechselposition (G30 oder über den Werkzeugtaster) und verlangt dort den Werkzeugwechsel bevor die Maschine zum Werkzeugtaster fährt. Sie dazu "Werkzeugwechselposition". 205 | Zusätzlich kann in der Routine über den festen Parameter "#" (1) gewählt werden, dass die Maschine nach der Vermessung an den Punkt zurück fährt an dem die Routine aufgerufen wurde. So muss man den Rückweg vom Taster nicht im CNC Programm programmieren. 206 | Fährt die Maschine, bedingt durch "#" zurück. Kann über "#" (0/1/2) gewählt werden ob die Maschine an der Stelle wartet bevor 207 | das CNC Programm weiter läuft. 208 | "0" macht keine Pause. 209 | "1" macht eine Pause mittels "M00" Befehl. Weiter fahren durch betätigen von [CYCLE START] 210 | "2" macht eine Pause mittels "M01" Befehl, wenn zusätzlich auf der Oberfläche [M01 BREAK] aktiv ist. Weiter fahren durch betätigen von [CYCLE START] 211 | 212 | > [!WARNING] 213 | > Die Subroutine startet die Spindel nicht neu! 214 | 215 | 216 | #### Fall 2.3 gleiches Werkzeug: 217 | Ist das gewählte Werkzeug bereits in der Maschine. Wird die Meldung "Same tool" / "Selbes Werkzeug" ausgegeben. Die Spindel wird nicht gestoppt. 218 | Über "#" (0/1/2) kann gewählt werden ob die Maschine an der Stelle wartet bevor das CNC Programm weiter läuft. 219 | "0" macht keine Pause. 220 | "1" macht eine Pause mittels "M00" Befehl. Weiter fahren durch betätigen von [CYCLE START] 221 | "2" macht eine Pause mittels "M01" Befehl, wenn zusätzlich auf der Oberfläche [M01 BREAK] aktiv ist. Weiter fahren durch betätigen von [CYCLE START] 222 | 223 | 224 | #### Fall 2.4 Wechsel auf T0 : 225 | > [!WARNING] 226 | > Ein Wechsel am Ende des CNC Programms mittels "M600 T0", kann bei Programmabbrüchen dazu führen, dass LinuxCNC von G43 auf G49 umschaltet! 227 | > Wenn das Programm erneut gestartet wird, kann es sein, dass nicht wieder auf G43 umgeschaltet wird. Kollisionsgefahr! 228 | > Der Fall dient nur dazu, dass nicht versehentlich mit Werkzeug "0" eine Vermessung gestartet wird. 229 | 230 | ### Weitere Funktionen 231 | 232 | #### Debug Mode 233 | Der Debug Mode erzeugt im Konfigurationsordner eine "logfile.txt" Datei. In dieser werden einige Parameter der Maschine und der Routine gespeichert um ggf. bei einem Fehler den Grund dafür zu finden. Die Datei wird bei jedem Aufruf der Routine überschrieben. 234 | 235 | #### Werkzeugwechselposition 236 | Die Werkzeugwechselposition (G30) kann über [PROBING] [TOOL SETTER] [SET TOOL TOUCH OFF POS] festgelegt werden. 237 | Dazu die Maschine an die gewünschte Position fahren und [SET TOOL TOUCH OFF POS] drücken. Die Position kann jederzeit wenn nötig geändert werden. Um die Position für die Subroutine frei zugeben, den Wert "#" auf "0" setzen. 238 | Wird die Funktion genutzt, fährt die Maschine vor der Vermessung über "M600" zunächst an die X-, Y- und Z-Koordinate (G30) und verlangt den Werkzeugwechsel. Danach positioniert sich die Maschine erst über dem Werkzeugtaster. 239 | Wird bei genutzter Werkzeugtabelle die Anzahl zusätzlicher Vermessungsversuche ("#< addreps>") auf min. "1" gesetzt, fährt die Maschine, sowohl bei der manuellen als auch automatischen Vermessung, nach einem Fehlversuch der schnellen Vermessung, an diese Position und verlangt erneut nach dem Werkzeug. 240 | So kann das Werkzeug nach justiert werden. 241 | Wird die Option "Letzter Versuch" genutzt, fährt die Maschine beim letzten Vermessungsversuch nicht mehr die Werkzeugwechselposition an, sondern vermisst direkt das Werkzeug neu. 242 | 243 | #### Zusätzliche Versuche 244 | Sollte die Vermessung mit aktiver Werkzeugtabelle, Aufgrund eines kürzer eingesetzten Werkzeugs, bei der schnellen Vermessung fehlschlagen. Können über diesen Parameter zusätzliche Versuche hinzugefügt werden. So kann nach einem Fehlschlag ggf. das Werkzeug nach justiert werden oder in Verbindung mit der Funktion "Letzter Versuch" eine "Neuvermessung" gestartet werden. 245 | 246 | #### Letzter Versuch 247 | Für die Funktion "Letzter Versuch" muss "#< addreps>" mindestens auf "1" gesetzt sein. 248 | Sollten bis auf den letzten Versuch die Vermessungen fehlgeschlagen sein, kann über diese Funktion eine Neuvermessung statt finden. 249 | Wird bei genutzter Werkzeugtabelle "#< addreps>" und "#< lasttry>" jeweils auf "1" gesetzt und schlägt die schnelle Vermessung nach Fall 1.2 bzw. 2.2 fehl, macht die Maschine direkt eine "Neuvermessung" nach Fall 1.1 bzw. 2.1 . 250 | 251 | #### Werkzeugversatz 252 | Für Werkzeuge mit größerem Durchmesser kann über diese Funktion ein Mittenversatz erzeugt werden. Die Richtung in der dieser Versatz gefahren wird, wird über [PROBING] [TOOL SETTER] [TOOL OFFSET DIRECTION] festgelegt. 253 | 254 | #### 3D-Taster 255 | Sollte es nicht möglich sein einen 3D-/Kantentaster über den Werkzeugtaster zu vermessen. Kann eine alternative Vermessungsposition für diesen definiert werden. Die Höhendifferenz zwischen Vermessungsposition und Werkzeugtaster muss ermittelt werden und in "#" eingetragen werden. Das Vorzeichen gibt die Differenz in Achsrichtung an. "-" = tiefer als Werkzeugtaster, "+" = höher als Werkzeugtaster. 256 | 257 | --- 258 | ## Weitere Informationen: 259 | > [!NOTE] 260 | > die Parameter "xy max travel", "tool diam probe" und "tool diam offset" werden in der Routine nicht verwendet. 261 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------