Address
宁波研发园A区2栋12B17
聚贤街道,鄞州区,宁波市,浙江中国
Work Hours
周一 to 周五: 8:30AM - 10:30PM
周六 to 周日: 9:30AM - 10:30PM
Document Number: RG-TS08-v2.0Compilation Unit: Technical Department of Ningbo Jiangce Technology Co., Ltd.Applicable System: Fanuc/Meldas Siemens 840DApplicable Hardware: TS27R (wired), RTS (radio fre
Document Number: RG-TS08-v2.0
Compilation Unit: Technical Department of Ningbo Jiangce Technology Co., Ltd.
Applicable System: Fanuc/Meldas Siemens 840D
Applicable Hardware: TS27R (wired), RTS (radio frequency wireless), OTS (infrared optical) contact type tool setter
Entrance Macro: P9921 (Fanuc/Meldas)/Siemens Subroutine
Core Reference Manual/strong>: H-2000-6826-0A-A (Fanuc/Moldas), H-2000-6833-0A-A (Siemens)
Renishaw GoProbe is a simplified and standardized CNC tool setting programming solution. Unlike the complete O985x macro program series (Haas VF specific), GoProbe uses a unified entry macro program to select different measurement modes through functional code, greatly reducing programming complexity and memory burden on operators.
The GoProbe contact type tool alignment system supports three hardware platforms:
| Model | Transmission Method | Typical Interface | Repetitive Accuracy | Typical Applications |
|: ——— |: ——- |: ——- |
|TS27R| Wired (Hardwired) | MI 8-4/HSI/HSI-C |1.00 μ m 2 σ| Three axis machining center, reliable and stable |
|RTS| RF FHSS 2.4 GHz | RMI-Q |1.00 μ m 2 σ| Five Axis/gantry, where wiring is not possible |
|OTS| Infrared optics (dimming) | OMI-2/OMI-2T/OMI-2H/OMM-2C+OSI |1.00 μ m 2 σ| Multi spindle/switching worktable, wireless flexibility |
All three types of tool presetters use the same probe structure and triggering principle, The GoProbe programming interface is completely consistent – the same piece of code can run on three types of hardware without discrimination.
After the installation of the tool setter, the installation position offset needs to be correctly set in the CNC system. For the Fanuc system, the working position coordinates of the tool setter are usually recorded using the# 5xxxxseries of macro variables:
; Example of setting the installation position of the cutting instrument(FANUC/Meldas)
#501 = 350.0 ; The tool setter in the machine coordinate system X Position (mm)
#502 = 215.0 ; The tool setter in the machine coordinate system Y Position (mm)
#503 = -150.0 ; The tool setter in the machine coordinate system Z Position (mm) — Surface height of disc-shaped measuring needle
#504 = 25.0 ; Disk type measuring needle diameter (mm)
FANUC/Meldas System Usage G65 P9921 As a unified entrance,Through M codeSelect sub functions:
| M code | function | Explanation |
|:—|:—|—:|
| M21 | Blade length measurement(Tool Length Measurement) | Measure the current spindle tool Z Towards length |
| M22 | Blade Length + Diameter measurement(Tool Length + Diameter Measurement) | Simultaneously measure the length and diameter of the cutting tool/radius |
| M23 | Broken Tool Detection(Broken Tool Detection) | Check whether the cutting tool is broken or worn out of tolerance |
| M24 | Calibration of tool calibration(Tool Setter Calibration) | Calibration tool setter Z 和 XY Reference Position |
⚠️ Important Notice:在 GoProbe In the official system,Comprehensive calibration of the cutting instrument(ZAxis height and XY offset)Unified integration in M24(Siemens is R0=24)In the functional code。Please do not associate with early machine tool factories OEM Separate checks in customized macro programs/Confusion of calibration codes,Everything is subject to this manual。
The Siemens 840D system uses a separate SPF subroutine file and selects sub functions through theR0 parameter. The sub functions are:
| R0 value | Function | Description |
|: ——– | ——-: |
|R0=21| Tool length measurement | Measure the Z-direction length of the current spindle tool |
|R0=22| Tool length+diameter measurement | Simultaneously measure length and diameter |
|R0=23| Tool breakage detection | Detect whether the tool is broken |
|R0=24| Calibration of tool setter | Calibration of tool setter reference position |
⚠️ Important note: In the official GoProbe system, the comprehensive calibration of the tool gauge (Z-axis height and XY offset) is uniformly integrated into the M24 (Siemens R0=24) function code. Please do not confuse the inspection/calibration codes separated from the early OEM customized macro program of the machine tool factory. Please refer to this manual for everything.
| function | Fanuc M code | Siemens R0 value |
| Blade length measurement | M21 | R0=21 |
| Blade length+diameter measurement | M22 | R0=22 |
| Broken Tool Detection | M23 | R0=23 |
| Calibration of tool calibration | M24 | R0=24 |
Calibration must be performed after the installation of the tool gauge or replacement of the measuring needle. The essence of calibration is to make the CNC system “remember” the precise position (Z height and XY center) of the tool disk type measuring pin in the machine coordinate system.
Use a standard tool with known length and diameter (calibration rod) for calibration, and complete the following steps:
; ==================================================
; GoProbe Calibration of contact type tool setter — FANUC/Meldas system
; Call format: G65 P9921 M24 Aa. [Bb.] [Ff.]
; Parameter Description:
; A1 — Z Axis Calibration(Only calibrate Z direction)
; A2 — Z + XY Comprehensive calibration(Complete calibration)
; Bb — Standard tool diameter (mm),A2 Must lose in mode
; Ff — First contact feed rate (mm/min),Optional,Default 480
; Prerequisites:
; 1) Install a calibration rod of known length into the spindle
; 2) Manually move the tool to a safe position above the tool setter
; 3) The standard tool length has been correctly set in the tool offset table
; ==================================================
; — Example 1: Z Axis Calibration —
; Use a calibration stick to calibrate only Z direction
; Suitable for length measurement only、In situations where the precision requirement for diameter is not high
G65 P9921 M24 A1. F300.
; — Example 2: Complete calibration (Z + XY) —
; Calibration rod diameter 20.0 mm,Fully calibrate the tool setter
G65 P9921 M24 A2. B20.0 F300.
; — Example 3: Quick calibration(Use default feed rate)—
G65 P9921 M24 A2. B20.0
; ==================================================
; GoProbe Contact Tool Calibration – Siemens 840D System
; Calling format: R0=24 Aa. [Bb.] [Ff.]
; Parameter Description: Same as Fanuc Edition
; ==================================================
; Example 1: Z-axis calibration
R0=24 A1. F300.
; Example 2: Complete Calibration (Z+XY)
R0=24 A2. B20.0 F300.
; Example 3: Quick Calibration
R0=24 A2. B20.0
After calibration is completed, it is recommended to use the calibration rod to run the tool length measurement again (M21/R0=21) to verify the calibration results. The measured value should be consistent with the known length of the calibration rod, and the deviation should be within ± 0.005 mm.
; Calibration verification — FANUC
G65 P9921 M21 T1. ; measurement 1 Number of cutting tools(Calibration stick)
#100 = #506 ; Read measurement results(Assuming macro variables #506 Storage measurement length)
IF [#100 GT 0.005] GOTO 9000 ; If the deviation exceeds the limit, an alarm will be triggered
Tool length measurement is the most commonly used function, used to automatically measure the Z-direction length of the tool in the current spindle and write the result into the tool offset table.
The tool moves downwards at the set feed rate, and touching the surface of the disc-shaped measuring needle of the tool setter triggers a skip signal. The CNC system records the trigger position and calculates the tool length. After the measurement is completed, the tool automatically retracts to a safe position.
| parameter | meaning | default value | Remark |
| Tt | Target tool number | Current spindle tool | Specify the tool number for writing bias |
| Ff | First contact feed rate | 480 mm/min | Fast forward to the approaching position and slow down |
| Hh | upper tolerance limit | — | If this tolerance is exceeded, an alarm will be triggered |
| Jj | Travel increment | 2.0 mm | Extra travel beyond the surface of the measuring needle |
| Security increment | 5.0 mm | Fast forward and stop the distance from the measuring needle surface |
; ==================================================
; Blade length measurement — FANUC/Meldas system
; Call format: G65 P9921 M21 [Tt.] [Ff.] [Hh.] [Jj.] [Qq.]
; ==================================================
; — Example 1: Basic knife length measurement —
; Measure the current spindle tool length,Write tool offset
G65 P9921 M21
; — Example 2: Specify tool number and feed rate —
; Writing measurement results 5 Number tool offset,Measure feed rate 300 mm/min
G65 P9921 M21 T5. F300.
; — Example 3: Tool length measurement with tolerance control —
; If the measured value deviates from the expected value by more than ±0.1 mm Then call the alarm
G65 P9921 M21 T5. H0.1 F300.
; — Example 4: Complete parameter example —
; T5=5Number knife, F200=200mm/min, H0.05=Tolerance ± 0.05mm
; J3.0=Over stroke 3mm, Q8.0=Safety distance 8mm
G65 P9921 M21 T5. F200. H0.05 J3.0 Q8.0
; ==================================================
; Blade length measurement – Siemens 840D system
; Calling format: R0=21 [Tt.] [Ff.] [H.] [Jj.] [Qq.]
; ==================================================
; Example 1: Basic knife length measurement
R0=21
; Example 2: Specify tool number
R0=21 T5. F300.
; Example 3: Tolerance Control
R0=21 T5. H0.1 F300.
; Example 4: Complete Parameters
R0=21 T5. F200. H0.05 J3.0 Q8.0
In actual production, tool length measurement is usually integrated into the automatic tool change cycle, which automatically measures the length of the new tool after each tool change
; ==================================================
; Automatic Tool Change + Integrated cycle for measuring blade length
; FANUC/Meldas system
; ==================================================
O9001 (AUTO TOOL CHANGE WITH LENGTH MEASUREMENT)
;
IF [#20 EQ #0] GOTO 9000 ; If no tool number is specified, an alarm will be triggered
;
; Steps 1: Return the current tool to the tool magazine
M6 T#20 ; Execute tool change
;
; Steps 2: Move to a safe position above the tool setter
G90 G53 G0 Z0 ; Z Axis back to the second reference point(Change tool position)
G53 G0 X350.0 Y215.0 ; Move above the tool setter
G53 G0 Z-100.0 ; Descend to the measurement proximity position
;
; Steps 3: Perform blade length measurement
G65 P9921 M21 T#20 F300. H0.1
;
; Steps 4: Move to the starting position of processing
G53 G0 Z0
M99
;
N9000 #3000 = 100 (TOOL NOT SPECIFIED)
M99
M22/R0=22 simultaneous measurement of tool length and diameter (or radius), suitable for scenarios where complete geometric parameters of the tool need to be obtained in one clamping. The measurement cycle is executed in the following order:
| parameter | meaning | default value | Remark |
| Tt | Target tool number | Current spindle tool | — |
| Ff | First contact feed rate | 480 mm/min | Both Z and XY use this feed |
| Hh | length tolerance | — | Length measurement tolerance |
| Jj | Travel increment | 2.0 mm | — |
| Security increment | 5.0 mm | — | |
| Dd | Disk type measuring needle diameter | The system has been saved | Usually, the calibration has been recorded |
| Bb | Expected diameter of cutting tool | — | Used for XY proximity logic |
; ==================================================
; Blade Length + Diameter measurement — FANUC/Meldas system
; Call format: G65 P9921 M22 [Tt.] [Ff.] [Hh.] [Jj.] [Qq.] [Bb.]
; ==================================================
; — Example 1: Basic Usage —
; Simultaneously measure the length and diameter of the cutting tool
G65 P9921 M22
; — Example 2: Specify tool number and feed rate —
G65 P9921 M22 T8. F250.
; — Example 3: Measurement with expected diameter —
; B12.0 Notify the system that the expected diameter of the tool is approximately 12mm,Optimize XY Approaching the path
G65 P9921 M22 T8. B12.0 F250.
; — Example 4: complete parameters —
G65 P9921 M22 T8. B12.0 H0.05 J2.5 Q6.0 F200.
; ==================================================
; Blade length+diameter measurement – Siemens 840D system
; Calling format: R0=22 [Tt.] [Ff.] [H.] [Jj.] [Qq.] [Bb.]
; ==================================================
; Example 1: Basic Usage
R0=22
; Example 2: Specify tool number
R0=22 T8. F250.
; Example 3: With Expected Diameter
R0=22 T8. B12.0 F250.
; Example 4: Complete Parameters
R0=22 T8. B12.0 H0.05 J2.5 Q6.0 F200.
The accuracy of diameter measurement is influenced by various factors, and the following are the best practices:
; ==================================================
; High Precision(Mainstream brand probes typically have a one-way repeatability accuracy of 0.25 in machine measurement~1.0µm 2σscope)Example of Diameter Measurement
; ==================================================
; technique 1: Reduce feed rate and improve accuracy(Mainstream brand probes typically have a one-way repeatability accuracy of 0.25 in machine measurement~1.0µm 2σscope)
; For precision machining tools,Use a lower feed rate
G65 P9921 M22 T12. F100. ; 100 mm/min Ensure high precision(Mainstream brand probes typically have a one-way repeatability accuracy of 0.25 in machine measurement~1.0µm 2σscope)
; technique 2: Take the average of multiple measurements
#110 = 0
#111 = 1
N100 G65 P9921 M22 T12. F150.
#110 = #110 + #506 ; Accumulated measurement values
#111 = #111 + 1
IF [#111 LE 3] GOTO 100 ; measurement 3 次
#112 = #110 / 3 ; calculate the average
The tool breakage detection is used to automatically check for tool breakage or severe wear during or after the machining cycle. The detection logic of GoProbe M23/R0=23 is as follows:
| parameter | meaning | default value | Remark |
| Tt | Target tool number | Current spindle tool | There needs to be a correct reference value in the bias table |
| Hh | Judge the tolerance of the broken blade | 0.5 mm | Exceeding this value is judged as a broken knife |
| Ff | Detect feed rate | 480 mm/min | — |
| Jj | Travel increment | 2.0 mm | — |
; ==================================================
; Broken Tool Detection — FANUC/Meldas system
; Call format: G65 P9921 M23 [Tt.] [Hh.] [Ff.]
; ==================================================
; — Example 1: Basic knife breakage detection —
; Check if the current spindle tool is broken,tolerance 0.5 mm
G65 P9921 M23
; — Example 2: Specify tool number and tolerance —
; detection 6 Number knife,If the length changes by more than ±0.2 mm Then call the alarm
G65 P9921 M23 T6. H0.2
; — Example 3: Precision tool inspection —
; Micro drill bit(如 Ø0.5 mm drill),Strict tolerance
G65 P9921 M23 T4. H0.05 F100.
; — Example 4: Rough machining tool inspection —
; Large diameter face milling cutter,Tolerance can be relaxed
G65 P9921 M23 T1. H1.0 F500.
; ==================================================
; Knife breakage detection – Siemens 840D system
; Calling format: R0=23 [Tt.] [H.] [Ff.]
; ==================================================
; Example 1: Basic detection
R0=23
; Example 2: Specify the tool and tolerance
R0=23 T6. H0.2
; Example 3: Precision Cutting Tools
R0=23 T4. H0.05 F100.
; Example 4: Rough machining tool
R0=23 T1. H1.0 F500.
The following is a typical example of integrating tool breakage detection into a complete machining cycle:
; ==================================================
; Drilling cycle + Integrated tool breakage detection
; FANUC/Meldas system
; ==================================================
O9100 (DRILLING WITH BROKEN TOOL CHECK)
;
; Steps 1: Tool change and measurement
T3 M6 ; 换 3 Drill bit number
G65 P9921 M21 T3. F300. ; Measure the length of the drill bit,Record benchmark values
;
; Steps 2: Perform drilling processing
G90 G54 G0 X50.0 Y50.0
G43 Z5.0 H3 M3 S3000
G81 Z-20.0 R3.0 F150.
X100.0
X150.0
X200.0
G80
G0 Z50.0 M5
;
; Steps 3: Cutting detection after processing
G53 G0 X350.0 Y215.0 ; Move to the tool setter
G65 P9921 M23 T3. H0.2 ; Check if the drill bit is broken(If the knife breaks, an alarm will be triggered directly in the macro program to stop the machine)
;
N100 M99
Renishaw GoProbe recommends the following five standardized tool alignment processes, suitable for the vast majority of machining scenarios:
| Steps | Operation | GoProbe call | Explanation |
| one | Install the tool setter and wire it | — | Hardware installation, connect SKIP signal |
| two | Set the position offset of the tool setter | Macro variable assignment | Record the coordinates of the tool setter in the machine coordinate system |
| three | Calibration of tool calibration | M24 / R0=24 | Use a standard calibration rod to calibrate Z and XY |
| four | Calibration verification | M21 / R0=21 | Verify calibration accuracy |
| five | Batch tool measurement | M21/M22 | Automatically measure each tool during formal production |
; ================================================ ;
; GoProbe Contact type knife alignment — Complete five step process ;
; FANUC/Meldas system ;
; Suitable for initial settings after first piece debugging or replacement of the tool setter ;
; ================================================ ;
;
; — Steps 0: Environment Preparation — ;
; manual operation:Use the standard calibration rod(Known length L=100.0mm,diameter D=20.0mm)Install the spindle ;
; manual operation:Load the measuring tool into the tool magazine and set the initial offset ;
;
; — Steps 1: Set the position offset variable of the tool setter — ;
; (Modify the following values based on the actual installation location) ;
#501 = 350.0 ; tool setter X Position
#502 = 215.0 ; tool setter Y Position
#503 = -150.0 ; tool setter Z Position(Surface of measuring needle)
#504 = 25.0 ; Disk type measuring needle diameter
;
; — Steps 2: Move above the tool setter — ;
G90 G53 G0 X#501 Y#502 ; Quickly locate to the tool setter XY center
M5 ; Spindle stop
N50 G43 H10 Z[#503 + 50.0] ; Establish calibration rod length compensation and safely position it above ground 50mm 处
( —- Steps 3: conduct Z Axis and XY Comprehensive calibration —- )
N60 G01 Z[#503 + 5.0] F1000 ; Insert the calibration rod over the measuring needle 5mm 处
; call GoProbe Dui Dao Hong,M24 for calibration,A2 Representative Z 与 XY Comprehensive calibration,B To calibrate the diameter of the rod
N70 G65 P9921 M24 A2. B20.0 F300.
G00 Z100. ; Calibration complete,Quickly and safely lift the knife
M30 ; Calibration main program ends
After calibration is completed, the tool setter has high precision (mainstream brand tool presetters usually have a one-way repeatability accuracy in the range of 0.4~1.0 µ m 2 σ) as a measurement benchmark. The following is a complete production example of automatic tool length and radius detection:
This program is used to automatically measure the length of precision machining tools and write them into the tool compensation.
%
O2000 (TOOL LENGTH AUTO-MEASURE)
G21 G40 G80 G90 G94 ; Security settings
T02 M06 ; transfer in 2 Number end mill(diameter 10.0mm)
G54 G00 X0. Y0. ; Quickly locate above the center of the workpiece
G43 H02 Z50. ; Establish initial blade length offset,Safely cut to Z50.
( —- Call Renishaw GoProbe Knife macro program —- )
( P9921 To call the entrance for the core of the tool setter,M21.1 Represents length measurement and automatic writing 2 Number knife to compensate for length )
G65 P9921 M21.1 S2.0 ; Automatically measure and update H02 The length of the cutting tool
G00 Z150. M5 ; Quickly return to safe altitude,Spindle stop
M30 ; Program ended
%
In order to eliminate the dimensional deviation caused by the high-speed rotation of the spindle, this program reverses the tool at 500 RPM and performs lateral dynamic radius detection.
%
O3000 (TOOL RADIUS AUTO-MEASURE)
G21 G40 G80 G90 G94 ; Security settings
T03 M06 ; transfer in 3 Number end mill(diameter 12.0mm)
G54 G00 X0. Y0. ; Locate to the safe origin
G43 H03 Z50. ; Establish initial bias
( —- call GoProbe Dynamic measurement of radius —- )
( M22.2 Representing radius measurement and automatic writing 3 Number knife repair radius,D12.0 For the nominal diameter of the cutting tool )
G65 P9921 M22.2 D12.0 S3.0 ; Automatically perform lateral rotation measurement,And update the radius result to D03
G00 Z150. M5 ; Security rollback
M30 ; Program ended
%
In automated large-scale processing or unmanned production at night (“black light factory”), it is necessary to add tool breakage detection at the end of the process. If tool breakage (deviation greater than 0.2mm) is detected, the machine tool will automatically sound an alarm and shut down.
%
O4000 (TOOL BROKENAGE DETECTION)
G21 G40 G80 G90 G94 ; Security settings
T02 M06 ; Transfer in the precision machining just now 2 Number knife
G43 H02 Z30. ; Quickly descending to Z30
( —- call GoProbe Broken Tool Detection —- )
( M23 Representative knife breakage detection,S2.0 correspond to 2 Number knife,T0.2 For the maximum allowable tolerance value )
( If the actual wear or breakage of the tool exceeds 0.2mm,The system will automatically trigger #3000 Hardware alarm shutdown )
G65 P9921 M23. S2.0 T0.2 ; Perform automatic comparison of tool alignment and breakage
G00 Z150. ; Safe knife return
M30 ; Program ended
%
| Fault phenomenon | Possible reasons | On site diagnosis and elimination measures |
| The hair detector does not light up the traffic light | 1. Battery depletion (RTS) 2. TS27R circuit loose | 1. Check the RTS probe battery and replace 2 1.5V lithium batteries. 2. Use a multimeter to check the 24V output of the MI-12 interface box and re tighten the 4-core terminal of TS27R. |
| When the tool is triggered, there is no Skip signal from the machine tool | 1. Skip line (X4.7) disconnection 2. System parameter configuration error | 1. On site inspection of system skipping input signal X address changes. 2. Check if FANUC parameter 6200 # 4 is enabled (enabling high-speed skip function). |
| The accuracy of repeated length positioning is extremely poor (>10 μ m) | 1. Residual chips on the surface of the tool setter 2 The probe base is loose Calibration parameters accidentally overwritten | 1. Blow clean the upper surface,Adjust the self blowing delay of the knife(G04 X1.0)。2. Use a torque wrench to recheck the fixing screws of the workbench base。3. Run again O2000 Calibration program。 |
Copyright Notice: This document was originally compiled by the Technical Department of Ningbo Jiangce Technology Co., Ltd. It aims to provide first-hand guidance on the application of Renishaw tool presetters for CNC maintenance engineers and electrical debuggers in machine tool factories..
Disclaimer: Renishaw and GoProbe referenced in this article are registered trademarks of Renishaw Corporation. The syntax and parameter definitions of macro programs are based on the official technical documents H-2000-6826 and H-2000-6833. Please strictly conduct collision simulation verification before on-site application.
Q: What is the difference between Renishaw TS27R and RTS tool setter?
Answer: The TS27R is a wired version that connects to the MI 8-4 interface box via a 4-core cable to obtain 24V power and transmit signals, making it suitable for fixed installation scenarios. RTS is a wireless version, battery powered (2 1.5V lithium batteries), transmitting signals through radio, suitable for frequent tool changes or situations where wiring needs to be avoided. The triggering accuracy and programming method of the two are completely the same, both are contact triggering mechanisms with consistent repetition accuracy.
问:GoProbeWhat should I do if the calibration program O2000 for the tool gauge cannot be found?
答:O2000It is the main calibration program for Renishaw GoProbe tool setter,Included in the GoProbe macro package。If lost,Need to use RS-232、CFCard or Ethernet reload macro package。Check O2000 after loading~O2030Is the series of programs complete。After calibration, it is recommended to copy the calibration constants to#500~#520Reserve variable area,Prevent power outage and loss。
问:The repeatability accuracy of the tool gauge suddenly deteriorates to 10μmAbove,What should be checked in the first step?
答:Three step investigation:①Clean the upper surface of the tool setter——The most common reason for the change in trigger position of the measuring needle is due to chip adhesion;②Check if the fixing screws of the tool setter base are loose,Lock with a torque wrench;③Confirm that self blowing qigong can function normally(G04 X1.0Is the delay sufficient)。These three steps solve over 90% of the repeatability accuracy problem。
Official Appointment:jcetech.cn/contact
Consultation Hotline: 157-5780-7400/132-2194-1413
Shipping address: A2-12B17, Yinzhou R&D Park, Ningbo