Macro library

Русский

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

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

  1. Bring the turret head to the reference point
  2. Switch the machine to MDI mode
  3. Call the required tool (for example: T0303)
  4. Lower renishaw with M-command (for example: M90)
  5. Switch the machine to HANDLE mode
  6. Bring the cutting edge of the tool to the renishaw at a distance of 4 - 8 mm
  7. Switch the machine to MDI mode
  8. Call subroutine for tool: O9010
  9. Switch the machine to HANDLE mode
  10. Move the tool away from the renishaw to a safe distance
  11. Bring the turret head to the reference point
  12. Raise renishaw with M-command (for example: M91)

Defined Variables

System Variables Used

Compatibility

[!WARNING] Before starting the makras, do not forget to check all the system variables used; they may differ on some machines.


Source files