Measuring turning tools
Macro for measuring a tool on a lathe using a RENISHAW sensor.
Before starting the cycle, you need to bring the machine to the reference
point along all axes.
You can make it as a custom G-code on your machine, see other macros.
[!NOTE] Specify the G-coda number for the simplified form of the cycle call. For example G223.
Call Format
G65 P9010 [B] [D_] H_ [T_]
G223 [B] [D_] H_ [T_]
Attributes
- H – tool position (8, 7, 6 or 5)
- *D – drill diameter (with sign)
- *B – rebound length (with sign)
- *T – corrector number
* – optional attributes

Examples
G223 H8 – X axis measurement (H8 position)
G223 H6 – X axis measurement (H6 position)
G223 H7 – X axis measurement (H7 position)
G223 H5 – X axis measurement (H5 position)
G223 H8 D12. – measurement of a drill with a diameter of 12 mm along the X axis (position H8)
G223 H6 D12. – measurement of a drill with a diameter of 12 mm along the X axis (position H6)
G223 H8 T25 – measurement along the X axis (position H8) in the 25th offset
Method of application
- Bring the turret head to the reference point
- Switch the machine to MDI mode
- Call the required tool (for example: T0303)
- Lower renishaw with M-command (for example: M90)
- Switch the machine to HANDLE mode
- Bring the cutting edge of the tool to the renishaw at a distance of 4 - 8 mm
- Switch the machine to MDI mode
- Call subroutine for tool: O9010
- Switch the machine to HANDLE mode
- Move the tool away from the renishaw to a safe distance
- Bring the turret head to the reference point
- Raise renishaw with M-command (for example: M91)
Defined Variables
- #161 - adjustment along the X-axis (mm, with a dot)
- #162 - adjustment along the Z-axis (mm, with a dot)
- #163 - maximum number of tools
- #164 - maximum number of correctors
-
#165 - proofreader number -
#166 - position (5, 6, 7 or 8) -
#167 - rebound length -
#168 - tool diameter - #169 - RENISHAW sensor ball joint (mm, with a dot)
- #170 - rebound length (mm, with a dot)
- #171 - fast feed speed (mm per minute)
-
#172 - working feed speed (mm per minute)
System Variables Used
- #3000 - Macro alarm
- #5001 - End point position of the previous block (workpiece coordinate system). X-axis
- #5002 - End point position of the previous block (workpiece coordinate system) . Z-axis
- #5021 - Specified current position (machine coordinate system). X-axis
- #5022 - Specified current position (machine coordinate system). Z-axis
- #4205 - Modal information type feed
- #15001+ - X-axis compensation value (geometry)
- #16001+ - Z-axis compensation value (geometry)
- #2000 - X-axis compensation value (wear)
- #2100 - Z-axis compensation value (wear)
Compatibility
- Turning - FANUC Series Oi-MODEL F
[!WARNING] Before starting the makras, do not forget to check all the system variables used; they may differ on some machines.