Anda di halaman 1dari 90

Programming manual

H-2000-6021-0C-C

Inspection software for lathes (Fanuc


0/6/10-15/16/18/21T & iT) (Yasnac LX3)

1998 2003 Renishaw plc. All rights reserved.


Renishaw is a registered trademark of Renishaw plc.

This document may not be copied or reproduced in whole or in part, or transferred to any
other media or language, by any means, without the prior written permission of Renishaw.
The publication of material within this document does not imply freedom from the patent
rights of Renishaw plc.
Disclaimer
Considerable effort has been made to ensure that the contents of this document are free
from inaccuracies and omissions. However, Renishaw makes no warranties with respect
to the contents of this document and specifically disclaims any implied warranties.
Renishaw reserves the right to make changes to this document and to the product
described herein without obligation to notify any person of such changes.
Trademarks
All brand names and product names used in this document are trade names, service
marks, trademarks, or registered trademarks of their respective owners.

Renishaw part no: H-2000-6021-0C-C


First issued:
Revised:

January 1998
April 1998
January 1999
February 1999
July 2003

Form 1

EQUIPMENT REGISTRATION RECORD


Please complete this form (and Form 2 overleaf if applicable) after the Renishaw equipment has been installed on your
machine. Keep one copy yourself and return a copy to your local Renishaw Customer Support office (refer to the manual for
the address and telephone number). The Renishaw Installation Engineer should normally complete these forms.

MACHINE DETAILS
Machine description...........................................................................................................................
Machine type.................................................................................................................................
Controller.............................................................................................................................
Special control options.................................................................................................................................
..................................................................................................................................
..................................................................................................................................
RENISHAW HARDWARE
RENISHAW SOFTWARE
Inspection probe type .......................................

Inspection disk(s).....................................................

Interface type ...................................................

.....................................................................................
.....................................................................................

Tool setting probe type ...................................

Tool setting disk(s) ....................................................

Interface type ...................................................

.....................................................................................

.........................................................................................
SPECIAL SWITCHING M CODES (OR OTHER) WHERE APPLICABLE
Dual systems only
Switch (Spin) probe on ....................................

Switch on inspection probe .......................................

Switch (Spin) probe off ...................................

Switch on tool setting ...............................................

Start/Error signal ...............................................

Other ..........................................................................
.......................................................................................

ADDITIONAL INFORMATION

Tick box if Form 2 overleaf


has been filled in.

Customer's name.................................................................. Date installed .....................................


Customer's address..................................................................
...................................................................................................... Installation engineer ............................
.........................................................................................................
...................................................................................................... Date of training........................................
Customer's tel. no....................................................................
Customer's contact name..................................................

Publication No. H-2000-6021

Form 2

SOFTWARE DEVIATION RECORD


Standard Renishaw kit no.

Software disk nos.

Reason for deviation

Software no. and


macro no.

Comments and corrections

The software product for which these changes are authorised is subject to copyright.
A copy of this deviation sheet will be retained by Renishaw plc.
A copy of the software amendments must be retained by the customer they cannot be retained by
Renishaw plc.

Publication No. H-2000-6021

Caution Software safety


The software you have purchased is used to control the movements of a machine tool. It
has been designed to cause the machine to operate in a specified manner under operator
control, and has been configured for a particular combination of machine tool hardware
and controller.
Renishaw have no control over the exact program configuration of the controller with
which the software is to be used, nor of the mechanical layout of the machine. Therefore,
it is the responsibility of the person putting the software into operation to:
ensure that all machine safety guards are in position and are correctly working before
commencement of operation;
ensure that any manual overrides are disabled before commencement of operation;
verify that the program steps invoked by this software are compatible with the
controller for which they are intended;
ensure that any moves which the machine will be instructed to make under program
control would not cause the machine to inflict damage upon itself or upon any person
in the vicinity;
be thoroughly familiar with the machine tool and its controller and know the location of
all emergency stop switches.

Publication No. H-2000-6021

This page is intentionally left blank

Publication No. H-2000-6021

Table of contents

Table of contents
Before you begin
Before you begin ................................................................................................................. 1
Warnings, cautions and notes............................................................................................. 2
Measurement values used in this manual........................................................................... 2
List of associated publications............................................................................................. 2
Software version ................................................................................................................. 3
Software kit ......................................................................................................................... 3
Floppy disk assembly A-4012-0480............................................................................. 3
File 40120480 measuring cycles .......................................................................... 3
Macro memory requirements .............................................................................................. 4
Macro descriptions .............................................................................................................. 4
Renishaw customer services .............................................................................................. 5
Calling a Renishaw subsidiary office............................................................................ 5

Chapter 1 Getting started


Why calibrate your inspection probe? .............................................................................. 1-2
Diametral calibration/measuring....................................................................................... 1-3
Radial calibration/measuring............................................................................................ 1-3
Calibration cycles ............................................................................................................. 1-4
Macro O9013 radial calibration in the X axis ......................................................... 1-4
Macro O9017 length calibration in the Z axis......................................................... 1-4
Macro O9021 diametral calibration in the X axis ................................................... 1-5
Macro O9022 diametral calibration in the Z axis (rib groove) ................................ 1-5

Chapter 2 Software installation


Installing the software ...................................................................................................... 2-2
Work offset updates .................................................................................................. 2-2
Use of common variables................................................................................................. 2-4
Use of common retained variables................................................................................... 2-4
Basic move factor............................................................................................................. 2-5
Start code/probe switching............................................................................................... 2-6
Inch/metric programming ................................................................................................. 2-7
G-code program call up.................................................................................................... 2-7

Publication No. H-2000-6021

II

Table of contents

Chapter 3 Input/output format


Input format for macro programs...................................................................................... 3-2
Output format for macro program..................................................................................... 3-3

Chapter 4 Protected positioning


Macro program O9010 ..................................................................................................... 4-2

Chapter 5 Probe stylus calibration


Radial calibration macro O9013 .................................................................................... 5-2
Diametral calibration macro O9021............................................................................... 5-6
Length calibration macro O9017 ................................................................................. 5-11
Length calibration rib/groove macro O9022 ................................................................ 5-18

Chapter 6 Measurement and setting programs


Radial measure macro O9015 ...................................................................................... 6-2
Diametral measure macro O9019 ................................................................................. 6-8
Length measure macro O9018 ................................................................................... 6-14
Length measure rib/groove macro O9016 .................................................................. 6-19

Chapter 7 Software alarms


Chapter 8 Co-ordinate systems used on lathes
Example 1 Tool offset geometry...................................................................................... 8-2
Example 2 Using G50 or G54 G59 to define the component zero............................... 8-3
G54 to G59 method .................................................................................................. 8-3
G50 method setting a program shift to the turret reference position......................... 8-4
Example 3 Using G10 to define the component zero...................................................... 8-5
Example 4 Using G92 or G50 to define the component zero-to-tool tip position ............ 8-6

Glossary of terms Abbreviations and definitions

Publication No. H-2000-6021

Before you begin

Before you begin


This programming manual contains detailed information about how to use the inspection
software for programming, operating and controlling your machine tools.
Split into eight self-contained chapters, the manual is structured to provide the information
that you require to use the inspection software effectively:

Chapter 1 Getting started explains why your probe must be calibrated before you
start using it.

Chapter 2 Software Installation describes how to install and customise the


inspection software on your machine.

Chapter 3 Input/output format provides a complete list of the optional inputs that are
required by some of the macro cycles.

Chapter 4 Protected positioning cycles describes how to use the protected


positioning macro. When correctly used, this macro prevents damage to the probe
stylus in the event of the probe colliding with the workpiece.

Chapter 5 Probe stylus calibration describes how to use the four macros that are
provided for calibrating a probe.

Chapter 6 Measurement and setting programs describes how to use the non-vector
measuring cycle macros.

Chapter 7 Software alarms describes the software alarm numbers or messages


that may be displayed on the screen of the machine tool controller when an error
occurs. An explanation of the meaning and possible cause of each alarm message is
provided, together with typical actions you must take to correct the fault causing the
message.

Chapter 8 Co-ordinate systems used on lathes describes the type of co-ordinate


systems commonly found on lathes. These must be considered for each application.

Pubblicazioni N. H-2000-6021

Before you begin

Warnings, cautions and notes


Throughout this manual, warnings, cautions and notes have the following meanings:
Warning this is information which, if disregarded, could lead to the injury or death of an
individual.
Caution this is information which, if disregarded, could lead to damage to equipment or
to software or stored data.
Note this provides additional information to assist the reader when reading a particular
paragraph.

Measurement values used in this manual


Throughout this manual, metric units of measurement, i.e. millimetres, are used in the
examples.

List of associated publications


When you are working with the Inspection software, you may find it useful to refer to the
following Renishaw publication:

Probe software for machine tools data sheet (Renishaw part no. H-2000-2289).

Installation manual for machine tool probes installation and program manual
(Renishaw part no. H-2000-6040).

Software version
The software number and version will be found at the top of the first macro in the file. This
may be useful to know if you need to contact Renishaw about this software.

Pubblicazioni N. H-2000-6021

Before you begin

Software kit
Inspection software Renishaw part no. A-4012-0541
This comprises the following item:

Floppy disk assembly part no. A-4012-0480

Floppy disk assembly A-4012-0480


This assembly comprises one 3 inch floppy disc, MS-DOS format (720K).
The disk contains the following data:

Measuring cycles

(File 40120480)

File 40120480 measuring cycles


O9006

O9007

O9010

O9013

O9015

O9017

O9018

O9019

O9021

O9022

O9023

O9024

O9100

O9101

The disk is formatted to multi-load all macros.

Macro memory requirements


The total amount of memory required by all macros on the floppy disk is 11Kb. Before you
load the macros, check that the machine controller has sufficient memory capacity.
If your machine controller quotes its capacity in metres of tape format, use the following
conversion data to convert from length to Kbytes::
Conversion:

1Kb = 2.5 m (8.2 ft)


8Kb = 20 m (65.6 ft)

Pubblicazioni N. H-2000-6021

Before you begin

Macro descriptions
Macro number

Function

Top-level user macro list


O9010 (REN PROTECTED
POSITIONING)

Provides crash protection when


moving around the workpiece.

O9013 (REN RADIAL CALIBRATE)

Calibrate the probe stylus for radial


probing.

O9015 (REN RADIAL MEASURE)

Measure internal or external diameter.

O9017 (REN LENGTH CALIBRATE)

Calibrate the tool offset length of the


probe.

O9016 (REN GAUGE RIB/GROOVE)

Measure length of rib/groove.

O9018 (REN LENGTH MEASURE)

Measure and set a Z surface.

O9019 (REN DIAMETRAL MEASURE)

Measure internal or external diameters on


machine centreline or off machine
centreline.

O9021 (REN X DIAMETRAL


CALIBRATE)

Calibrate the probe stylus for


diametral probing.

O9022 (REN Z RIB/GROOVE


CALIBRATE)

Calibrate the probe stylus for


rib/groove probing.

Macro number

Function

User transparent macro list


O9006 (REN DIAMETRAL MOVE X)

X-axis diametral move.

O9007 (REN DIAMETRAL MOVE Z)

Z-axis diametral move.

O9023 (REN PC DELAY)

Dwell macro.

O9024 (REN INCH METRIC)

Inch/metric detector.

O9030 (REN PRINT)

Print macro (when fitted).

O9100 (REN Z BASIC MOVE)

Basic move in the Z direction.

O9101 (REN X BASIC MOVE)

Basic move in the X direction.

Pubblicazioni N. H-2000-6021

Before you begin

Renishaw customer services


Calling a Renishaw subsidiary office
If you have a question about the software, first consult the documentation and other
printed information included with your product.
If you cannot find a solution, you can receive information on how to obtain customer
support by contacting the Renishaw subsidiary company that serves your country (see
www.renishaw.com).
When you call, it will help the Renishaw support staff if you have the appropriate product
documentation at hand. Please be prepared to give the following information (as
applicable):

The version of the product you are using (see the Equipment Registration Record
form).

The type of hardware that you are using (see the Equipment Registration Record
form).

The exact wording of any messages that appear on your screen.

A description of what happened and what you were doing when the problem
occurred.

A description of how you tried to solve the problem.

Pubblicazioni N. H-2000-6021

Before you begin

This page is intentionally left blank

Pubblicazioni N. H-2000-6021

Getting started

1-1

Chapter 1

Getting started

Before you start to use the inspection software, take time to read this chapter. It will
provide you with a basic understanding of the importance of accurately calibrating the
probe you intend to use for measuring. Only when the probe is accurately calibrated can
you achieve total quality control over your manufacturing process.

Contained in this chapter


Why calibrate your inspection probe? .............................................................................. 1-2
Diametral calibration/measuring....................................................................................... 1-3
Radial calibration/measuring............................................................................................ 1-3
Calibration cycles ............................................................................................................. 1-4
Macro O9013 Radial calibration in the X axis ........................................................ 1-4
Macro O9017 Length calibration in the Z axis ....................................................... 1-4
Macro O9021 Diametral calibration in the X axis................................................... 1-5
Macro O9022 Diametral calibration in the Z axis (rib groove)................................ 1-5

Publication No. H-2000-6021

1-2

Getting started

Why calibrate your inspection probe?


In Chapter 5 of this manual you will find details of the macros used to calibrate your
Renishaw probe. But why is it so important that your probe is calibrated?
When assembling your Renishaw probe to its machine shank/holder the probe stylus may
not be at the correct theoretical position.
Errors can make the stylus either above or below centre. Care should be taken to
minimise this error otherwise measurements will be taken across a cord, and not a true
diametral/radial dimension. The cycles do not mathematically calculate on-centre errors.
However, the errors are usually small, particularly if the calibration is made on a similar
diameter to the feature being measured.
Calibration/datuming cycles are provided in the software to compensate for
assembly/machine errors, and calibrate the probe stylus relative to the component zero
point (usually on the spindle centreline in the X axis).

NOTE: The stored calibration values will be the true electronic stylus trigger points for
stylus diameter/radii and length. These values will be different to the physical sizes.

As each Renishaw probe system is unique, it is imperative that you calibrate it in the
following circumstances:

If it is the first time your probe system is to be used.

If a new stylus is fitted to your probe.

If it is suspected that the stylus has become distorted or that the probe has crashed.

At regular intervals to compensate for mechanical changes of your machine tool.

If repeatability of turret indexing or tool change is poor. In this case, the probe may
need to be recalibrated each time it is selected.

Publication No. H-2000-6021

Getting started

1-3

Three different operations are used to calibrate a probe. They are:

Calibrating in a bored hole.

Calibrating in a ring gauge.

Calibrating the probe length.

This software provides calibration and measuring cycles for two types of operating modes
as follows:

Diametral calibration/measuring
They can be used on machines where the stylus can reach both sides of the component
and take a measurement from the X+ and X- directions.
These cycles are the preferred method for measuring stability, because the result is simply
calculated from the difference between two measured values taken over a short period,
which tends to eliminate thermal and mechanical errors.

Radial calibration/measuring
They must be used on machines where the stylus cannot reach both sides of the
component or where the cycle time is critical.
These cycles rely on a stable environment both thermally and mechanically for reliable
measuring, and may even require that re-calibration/datuming is done each time the probe
is used depending on the application.

Publication No. H-2000-6021

1-4

Getting started

Calibration cycles
Four calibration cycles are provided with the inspection software. These cover both
diametral and radial calibration requirements. Decide whether your application requires
both types of cycle.
If so, then you should calibrate using the diametral calibration cycles (subroutines O9021
and O9022 (optional)). Once calibrated with these cycles, you are then free to use all the
measuring cycles.
If only the radial measuring cycles are required then you should calibrate using the radial
calibration cycles (macros O9013 and O9017 (optional)). Once calibrated, you are then
restricted to using the radial measure cycles only.
If you are using only the radial measure cycles, you may delete the diametral cycles from
the controller to save memory.

Macro O9013 Radial calibration in the X axis


This cycle is used to establish both the X+ and X- direction probe stylus calibration values.
The stylus must be calibrated on a known diameter and run for each direction.
Values are stored in #500 (X- calibration), and #501 (X+ calibration). The tool offset
registers are not modified.

Macro O9017 Length calibration in the Z axis


This cycle is used to establish both the Z+ and Z- direction probe stylus calibration values.
The stylus must be calibrated on a known surface and run for each direction.
Values are stored in the tool offset register. If measuring in both directions it will be
necessary to use two tool offsets for calibration.

Publication No. H-2000-6021

Getting started

1-5

Macro O9021 Diametral calibration in the X axis


This cycle is used in two parts to establish both the X+ and X- direction probe stylus
calibration values or adjust the tool offset register for spindle centreline position. The
stylus must be calibrated on a known diameter and on spindle centre if setting the tool
offset register for on-centre position.
Values are stored in #500 (X- calibration), #501 (X+ calibration) and #506 (ball diameter).
The tool offset register is adjusted (optional).
Both parts must be done for complete calibration.

Macro O9022 Diametral calibration in the Z axis (rib


groove)
This cycle is used in two parts to establish both the Z+ and Z- direction probe stylus
calibration values or adjust the tool offset register for stylus centreline position. The stylus
must be calibrated on a known feature and feature centre when setting the tool offset
register for centre position.
Values are stored in #502 (Z- calibration), #503 (Z+ calibration) and #507 (Z ball
diameter).
The tool offset register is adjusted (optional).
Both parts must be done for complete calibration.

NOTE: For further details, you should refer to chapter 5, probe stylus calibration.

Publication No. H-2000-6021

1-6

Getting started

This page is intentionally left blank

Publication No. H-2000-6021

Software installation

2-1

Chapter 2

Software installation

This chapter describes how you should load and customise the inspection software.

Contained in this chapter


Installing the software ...................................................................................................... 2-2
Work offset updates .................................................................................................. 2-2
Use of common variables................................................................................................. 2-4
Use of common retained variables................................................................................... 2-4
Basic move factor............................................................................................................. 2-5
Start code/probe switching............................................................................................... 2-6
Inch/metric programming ................................................................................................. 2-7
G-code program call up.................................................................................................... 2-7

Publication No. H-2000-6021

2-2

Software installation

Installing the software


It is important that the software is installed to suit the type of controller and options
available. Do this as described below:
1.

Decide which cycles you require before proceeding (refer to Macro memory
requirements in the preliminary part of this manual titled Before you begin).

2.

Load the cycles in file 40120480 (see the installation manual for software loading
details). Delete any unwanted cycles.

3.

When using the cycles for the first time, it will be necessary to set various input
variables prior to use. Calibration data will automatically be stored when the
calibration cycles are run.

4.

Carry out the work offset update tests described below.

Work offset update tests

CAUTION: Test that the work offsets are updated correctly when using macro
O9018 during installation.

It has been found that machines can be set up for either positive or negative work offset
updating, which means that a modification to the software may be necessary. The
following method should be used to verify that the work offsetting is performed correctly.
After normal set-up and calibration of the probe system, make a simple program to set a
Z-axis work offset by measuring on the end of a workpiece or chuck. Set the approximate
position for the surface in the G54 Z register, and set the probe tool offsets.
Run this program:
O1234
G94
G28U0W0
G54

Run using the G54 work offset

T0101X0Z50.

Edit the position to suit

G65P9010Z5.F1000
G65P9018Z0E2.

Set the G55 work offset

G28U0W0
M30

Publication No. H-2000-6021

Software installation

2-3

Make a note of the G55Z value. It should be close to the G54 value.

Run the cycle again but change Z0 to Z1.


The new G55Z value should now be less by 1.0 (i.e. the surface is now set to +1.0).

If this is not the case, you must make adjustments to the software as described
below and then repeat the test.

Software supplied from version A-4012-0480-0H onwards has the following


edit option to modify the offset adjustment direction:

Default edits to macro O9018

O9018 (REN GAUGE Z)

#30=1(AXIS UPDATE)

If the offset update is wrong, change the code as follows:

O9018 (REN GAUGE Z)

#30= 1(AXIS UPDATE)

... example +1 or -1

On machines with separate geometry and wear offsets, ensure that a geometry tool
offset value is used during the tests. If, in either of the above tests, the update is
wrong by the tool geometry amount, make the following change in macro O9024:

O9024 (REN INCH METRIC)

#121=#5081

#122=#5082

GOTO1

#121=#5081+#5121

#122=#5082+#5122

N1

#148=#4005

IF[#148EQ94]GOTO2

G98

N2G40

Publication No. H-2000-6021

Delete this line from the program

2-4

Software installation

Use of common variables


#100 to #149 will be used for calculation purposes. None of these variables are necessary
after the macros have been run.

Use of common retained variables

CAUTION: #500 #507 are assigned on a permanent basis. In the event of an


allocated variable being overwritten, errors will occur.

#500

Contains the X- directional offset.

#501

Contains the X+ directional offset.

#502

Contains the Z- directional offset.

#503

Contains the Z+ directional offset.

#504

Basic Move Factor (multiplication factor)


This is used to control the back-off distance between the first and second touch
on the surface (see the section titled Basic Move Factor later on in this chapter).

#505

Not used

#506

X-axis diametral ball diameter calibration value (used ONLY with diametral
calibration and measuring cycles). The X diametral calibration macro O9021 also
calculates:
#501 = #506/2
#500 = -#506/2

#507

Z-axis diametral ball diameter value


(Used ONLY with diametral calibration and measuring cycles).
The Z diametral calibration macro O9022 also calculates:
#503 = #507/2
#502 = -#507/2

Publication No. H-2000-6021

Software installation

2-5

Basic move factor


(a)

(c)

(b)

d
X

Move 1 fast feed to find surface


Move 2 recover off surface
Move 3 gauge feed 30mm/min (1.2in/min)

a
b
c
d

=
=
=
=

Fast feed
Gauge feed (30mm/min)
Return
Recovery from surface in
proportion to the factor #504

Figure 2.1 Basic move factor


1.

Fast feed move onto the surface, the skip position is captured (X) to gain an
approximate surface position. This is then used with #504 in order to get a recovery
position for move (2).

2.

Intermediate position (d) to remove stylus from the surface.

3.

Slow feed move onto the surface. This is the final gauging move to capture the true
surface position.

4.

Rapid retract move off the surface back to the initial start position. By testing, the
value of #504 can be adjusted so that the probe moves clear of the target surface by
the smallest amount. Values will be in the range of 0.25 to 0.5 typically. The higher
the value, the further away from the target surface the probe moves to. High inertia
machines will have high values of #504 to compensate for longer accelerations and
decelerations. If the value in #504 is greater than 1.0, or less than 0, the
software will set it to 0.5 (default).

5.

Before the probe is used for measurement and setting, it must be calibrated to the
machine. This will be achieved by running the calibration cycles. Be sure to reduce
#504 to reduce the back-off distance.

Publication No. H-2000-6021

2-6

Software installation

Start code/probe switching


Consideration should be given to switching between a toolsetting probe and the inspection
probe. Optical systems will also need a start code to activate the probe (see installation
manual). A one second dwell should be added to the program to ensure the probe is on
before probing cycles are executed.
01234
G80 G0 G94

(G94 or G98)

T0100
*********
T0101 X100.0 Z50.0
M80*

Switch off tool setting, switch on inspection

M82*

Send start signal to optical probe

G4 X1.0

1 second dwell if not included in the 'M' code


operation.

G65 P9010 X0 Z5.0


F1000

NOTE: * 'M' codes may vary. Check with system installer.

Inch/metric programming
The macro programs may be run in either inch or metric mode without alterations to the
program inputs. Since most machine control systems do not convert dimensions, the
programmer or operator should be aware that stored data in macro variable locations
#500 upwards, used for probing, have to be converted by external calculations or the
probe recalibrated.

Publication No. H-2000-6021

Software installation

2-7

G-code program call-up


On most control systems it is possible to set a G-code to call a macro program. This will
simplify the use of the software. The following are suggested codes and are chosen as
they do not clash with normal listed G-codes.
RENISHAW PROGRAM

G-CODE

9010 (protected positioning)

G101

9013 (radial datum)

G106

9015 (radial measure)

G113

9016 (length measure rib/groove) G110


9017 (length datum)

G107

9018 (length measure)

G118

EXAMPLE: G65 P9018 Z-10.0 becomes G118 Z-10.0

Publication No. H-2000-6021

2-8

Software installation

This page is intentionally left blank

Publication No. H-2000-6021

Input/output format

3-1

Chapter 3

Input/output format

This chapter lists and explains the macro inputs that may be applied to some of the
macros.

Contained in this chapter


Input format for macro programs ..................................................................................... 3-2
Output format from macro program ................................................................................. 3-3

Publication No. H-2000-6021

3-2

Input/output format

Input format for macro programs


NOTE: The values of inputs T and M must never be the same.

Code

Definition

G65

A one shot macro program call, always used before 'P'.

The macro Program number.

X, Z, D,

The expected position of the feature to be inspected.

The stylus size.

The number of a vacant tool offset that can be used to store errors of size.

The number of the tool offset that needs updating.

The number of a vacant tool offset that can be used to store error of
position.

The tolerance value of the feature being measured, the value of 'H' will be
half total tolerance.

The upper tolerance for the error.

The print function call for dimensions.

The overtravel of the probe for use whenever the default values are
unsuitable.

When used with O9018 will update the co-ordinate system for 'Z'.

NOTE: When errors are stored using 'M' they are metal conditions e.g. external
diameters, oversize will output a positive error, internal diameters undersize will output a
positive error.

Publication No. H-2000-6021

Input/output format

3-3

Output format from macro program


Code

Definition

E
(as used in
O9018)

When a work co-ordinate system is to be addressed, the


error of position is found and a new offset is established or a
incremental G50 shift is performed.
E0
E1 to E6
E10
E20

=
=
=
=

External work offset


G54 to G59
G10P0XZ update
Incremental G50 W-- move will be active until another G50 is
read.

E
(as used in
O9019)

When a memory location is programmed the macro will


overwrite the current contents of that memory location with
the error in position of the feature being measured.

When a memory location is programmed the macro will overwrite the


current contents of that memory location with the error in size of the
feature being measured.

When a tool offset is programmed the macro will read the existing store
value and add 80% of the error to it.

When macro programs are addressing tool offsets files they will alter wear offsets, if your
control has separate geometry and wear offsets.

Publication No. H-2000-6021

3-4

Input/output format

This page is intentionally left blank

Publication No. H-2000-6021

Protected positioning

4-1

Chapter 4

Protected positioning

Contained in this chapter


Macro program O9010.................................................................................................... 4-2

Publication No. H-2000-6021

4-2

Protected positioning

Macro program O9010


Start
position

Chuck

Required
position

Component

Figure 4.1 Macro O9010


DESCRIPTION

The protected positioning macro will move the probe to the start position
for a measuring cycle to take place. Provided the tool offset has been
previously applied by a movement to an intermediate or safe position, the
program will monitor the stylus for any type of trigger. The probe stylus will
be protected should the path be obstructed.

APPLICATION

The probe is programmed to move to the start position for a measuring


cycle. The method of programming is the same as for conventional linear
movement but using a macro call.

PROGRAM INPUTS

Xx and/or Zz. The target positions in the current co-ordinate system for
the probe (decimal point required).
Ff the feedrate of probe travel. The feedrate for the probe will become
modal from the previous protected measuring move. The feedrate should
not exceed safe values which were determined on installation (no decimal
point required).

PROGRAM OUTPUT

The probe will move towards the X, Z target at the specified feed rate.

Publication No. H-2000-6021

Protected positioning

PROGRAM EXAMPLE
01234
G80 G40 G00

Cancel codes

G94

MM per minute mode (G94 or G98)

T0100

Index to probe station

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z100.0

Move to safe position and apply the tool offset

G65 P9010 X0 Z5.0


F1000

Protected positioning to
measuring cycle start position.

Publication No. H-2000-6021

4-3

4-4

Protected positioning

This page is intentionally left blank

Publication No. H-2000-6021

Probe stylus calibration

5-1

Chapter 5

Probe stylus calibration

Contained in this chapter


Radial calibration macro O9013.................................................................................... 5-2
Diametral calibration macro O9021............................................................................... 5-6
Length calibration macro O9017 ................................................................................. 5-11
Length calibration rib/groove macro O9022 ................................................................ 5-18

Publication No. H-2000-6021

5-2

Probe stylus calibration

Radial calibration macro O9013


X-direction(#500)

Calibration on
outside diameter

Chuck

Cross section of machine chuck.


Alternatively, a
machined component can be used

X+direction(#501)

Calibration on
inside diameter

Figure 5.1 Macro O9013

CAUTION: This cycle must be used whenever the stylus and/or the probe is
replaced.

DESCRIPTION

The program automatically determines the error value for the stylus ball in
relation to the reference diameter. These values are used by the
inspection cycles. The directional calibration values are placed into the
appropriate variable store and will be used automatically by the measuring
cycles. The values are retained when the machine is switched off.

APPLICATION

The probe stylus is positioned by a program adjacent to the reference


diameter either internal or external. An automatic cycle will take place on
the G65 P9013 line which will determine the calibration values. The
results are stored in macro variable locations. After the cycle, the probe
stylus is returned to the initial position.

FORMAT

G65 P9013 Xx

PROGRAM INPUTS

Xx

PROGRAM OUTPUTS

The probe stylus calibration values for X- and X+ are stored in the
following variables:
#500
X- calibration value
#501
X+ calibration value

x =

the diameter or radius of the reference surface. It is


known exactly as a calibrated size.

Publication No. H-2000-6021

Probe stylus calibration

5-3

Program example for macro O9013


150.021
(1)
Chuck or component

60.014

(2)
X and Z datum

Figure 5.2 Example for macro O9013


01234
G80 G00

Cancel codes

G94

MM per minute mode (G94 or G98)

T0100

Index to probe station

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X200.0 Z50.0

Move to safe position and apply tool offset.

G65 P9010 X170.0

Protected positioning to

Z- 10.0 F1000

start position

G65 P9013 X150.021

Datum X+ (point 1)

G65 P9010 Z10.0 F1000

Protected position

G65 P9010 X40.0 F1000

Protected position

G65 P9010 Z-10.0 F1000

Protected position

G65 P9013 X60.014

Datum X+ (point 2)

G65 P9010 Z10.0 F1000

Protected position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

5-4

Probe stylus calibration

Diametral calibration macro O9021


Reference diameter

Reference diameter

Figure 5.3 Macro O902

CAUTION: This cycle must be used whenever the stylus and/or the probe is
replaced.

DESCRIPTION

This sequence will calibrate the inspection probe in the X axis to the
centreline and establish the stylus ball diameter. However, each sequence
is separate.

APPLICATION

A turned bar may be used for establishing the mean centreline of the
stylus. The bar must be turned in situ and left in the jaws or collet. The
nominal diameter of the bore or outside diameter is necessary as a target
value. To calibrate the stylus centreline to the spindle centreline the
program MUST position the stylus on centreline (X0) before the cycle is
run (the Tt value must be stated to update the tool offset relative to the
centreline).
Alternatively the cycle may be used to establish the stylus ball diameter
calibration values by calibrating against a reference feature of known size
(the Rr value must be used).

Publication No. H-2000-6021

Probe stylus calibration

5-5

This cycle must also be used for calibrating the stylus to offset features
providing the exact amount of offset is known. Prior to running the cycle,
the probe stylus must be positioned to the feature centreline.
FORMAT

G65 P9021 Dd Rr Tt [Zz Qq Ss]


where [ ] denote optional inputs

NOTE: Aa replaces Dd on macro A keyboards.

PROGRAM INPUTS
NOTE: Inputs Rr and Tt must not be used together.

Dd

d=

the width of the reference cube (do not assume the stylus is
square) or the nominal diameter of the turned bore or outside
diameter.

Qq

q=

the maximum probe stylus overtravel past the nominal surface


(12.0mm default). It is also the clearance value around external
features.

Rr

r=

1. or any value will indicate that the ball diameter values will be
updated.

Ss

s=

the stylus diameter (10.0mm default).

Tt

t=

the tool offset number of the probe which will be set relative to
the centreline position.

Zz

z=

(external features only) is the absolute depth at which datuming


will take place during the cycle.

Publication No. H-2000-6021

5-6

Probe stylus calibration

PROGRAM OUTPUTS

1. If Rr is programmed the X+ and X- ball compensation factors and the


ball diameter will be stored in macro locations:
#500 = X-

#501 = X+

#506 = Ball diameter

2. If Tt is programmed the stylus ball centreline will be calculated and the


offset number stated by Tt will be updated.
RADIUS PROGRAMMING

Inputs Dd (Aa) and Ss must be divided by 2.

Publication No. H-2000-6021

Probe stylus calibration

Program example for macro O9021


104.15
Turned bar

X and Z datum

Figure 5.4 Example for macro O9021


01234
G80 G00

Cancel codes

G94

MM per minutes mode (G94 or G98)

T0100

Index to probe station

*********

Co-ordinate system setting


(refer to chapter 8, co-ordinate systems used on lathes)

T0101 X200.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X0
Z 10.0 F1000

Protected positioning to
start position

G65 P9021 D104.15


Z-10.0 R1.0

Datum probe set #500, #501,


# 506

G65 P9021 D104.15


Z-10.0 T1.0

Datum probe update offset 1

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

5-7

5-8

Probe stylus calibration

Length calibration macro O9017

Figure 5.5 Macro O9017

CAUTION: This cycle must be used whenever the stylus and/or the probe is
replaced.

DESCRIPTION

This program will calibrate the probe in the Z direction against a surface of
known position. The program automatically determines the values for the
stylus ball which will be used by subsequent inspection cycles. When
measuring in both Z- and Z + directions, two offsets will have to be
allocated to the probe; both directions must be datumed.

APPLICATION

To datum the probe for length, it is positioned adjacent to a known surface


position. This can be a datum face on a component or a position on the
spindle or machine chuck. The cycle G65 P9017 will drive the probe
against the surface and the chosen tool offset will be updated.
After the cycle has taken place the probe stylus is returned to its initial
start point.

FORMAT

G65 P9017 Zz Tt

Publication No. H-2000-6021

Probe stylus calibration

PROGRAM INPUTS

PROGRAM OUTPUTS

Publication No. H-2000-6021

5-9

Tt

t =

the active tool offset number of the probe, which will be


updated by the datuming cycle.

Zz

z=

the nominal position of the datuming surface. For the end


face of a workpiece this is normally Z0.

1.

The offset stated by the Tt on the call-up line will be updated.

5-10

Probe stylus calibration

Program example 1 for macro O9017


Z0

R40.0

Datum against job Z0

Figure 5.6 Example 1 for macro O9017


01234
G80 G00

Cancel codes

G94

MM per minutes mode (G94 or G98)

T0100

Index to probe station

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X200.0 Z50.0

Move to safe position

G65 P9010 X80.0

Protected positioning to

Z 10.0 F1000

start position

G65 P9017 Z0 T1.0

Datum probe update offset 1

G28 U0 W0

Return to reference.

M30

Publication No. H-2000-6021

Probe stylus calibration

Program example 2 for macro O9017


560.00

200.0

Turret datum at
machine reference

Datum against spindle or chuck face

Figure 5.7 Example 2 for macro O9017


01234
G80 G00

Cancel codes

G28 U0 W0

Return to reference

G50 X200.0 Z560.0

Setup position of reference surface

T0100

Index to probe station

T010 X50.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X0

Protected positioning to

Z10.0 F1000

start position

G65 P9017 Z0 T1.0

Datum probe update offset 1

G28 U0 W0

Return to reference

M30

NOTE: Refer to chapter 8 for types of work co-ordinate systems.

Publication No. H-2000-6021

5-11

5-12

Probe stylus calibration

Program example 3 for macro O9017

R40.0
R50.0

Datuming in the Z- and Z+


direction using two offsets for
the probe

Z0
Z-10.0

OFFSET 21

OFFSET 1

Figure 5.8 Example 3 for macro O9017


01234
G80 G00

Cancel codes

G94

MM per minutes mode (G94 or G98)

T0100

Index to probe station

*********

Co-ordinate system setting


(Refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X200.0 Z50.0

Move to safe position (offset 1)

G65 P9010 X80.0


Z 10.0 F1000

Protected positioning to
start position

G65 P9017 Z0 T1.0

Datum probe update offset 1

G65 P9010 X120.0


F1000

Protected positioning

T0121

Call up second offset

G65 P9010 Z- 12.0


F1000

Protected positioning

G65 P9010 X80.0


F1000

Protected position to start position

Publication No. H-2000-6021

Probe stylus calibration

G65 P9017 Z-10.0 T21

Datum probe update offset 21

G65 P9010 X120.0


F1000

Protected positioning

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

5-13

5-14

Probe stylus calibration

Length calibration rib/groove macro O9022

Radius programming divide input Ss by 2

Figure 5.9 Macro O9022


DESCRIPTION

This program will datum the probe in the Z axis against two surfaces of
known position and establish the stylus ball diameter and adjust the tool
offset for centreline position. However each sequence is separate.

APPLICATION

A rib or groove feature can be used as a datum for establishing a


centreline position of the stylus. The nominal dimension of the rib/groove
is required as a target value. The program must position the stylus to the
Z axis expected centreline position of the feature before the cycle is run
(the Tt value must stated to update the tool geometry).
Alternatively the cycle may be used to establish the stylus ball width
values by calibrating against the tool datum cube of known size or other
reference feature (the Rr value must be used).

FORMAT

G65 P9022 Dd Rr Tt [Zz Qq Ss]


where [ ] denote optional inputs.

NOTE: Aa replaces Dd on macro A keyboards.

Publication No. H-2000-6021

Probe stylus calibration

5-15

PROGRAM INPUTS
Dd

d=

the width of the reference feature in the Z-axis

Qq

q=

the stylus overtravel distance (4.0 mm default). Also the


clearance value around an external feature.

Rr

r=

any value will indicate that the electronic ball diameter values
will be updated.

Ss

s=

the stylus size in the X-axis (10.0 mm default).

Tt

t=

the tool offset to be updated with the stylus centreline position.

Xx

x=

the position (absolute) at which the datuming will occur, used for
external features only.

PROGRAM OUTPUTS

1. If Rr is programmed the stylus ball size will be calculated for the Z axis
and stored in macro location:
#507
2. The ball radius size for the Z axis:
#503

Z+ direction

3. If Tt is programmed the tool offset geometry is updated for the stylus


centreline position.

Publication No. H-2000-6021

5-16

Probe stylus calibration

Program example 1 for macro O9022


START POSITION

External Feature Datum


Ball Size = 6.0

15.0
30.0

Z0
Z-10.1

Figure 5.10 Example 1 for macro O9022


01234
G80 G00 G94

Cancel codes and select mm per min. (G94 or G98).

T0100

Index to probe station

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X40.0


Z-5.05 F1000

Protected positioning to
start position

G65 P9022 X20.0


D10.1 R1.0

Calibrate ball size

G65 P9022 X20.0


D10.1 T1.0

Calibrate ball position

G65 P9010 X100.0


Z50.0 F1000

Return to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

Probe stylus calibration

Program example 2 for macro O9022


START POSITION

Internal Feature Datum


Ball Size = 6.0

15.0
30.0

Z-10.1

Z-20.2

Figure 5.11 Example 2 for macro O9022


01234
G80 G00 G94

Cancel codes and select mm per min. (G94 or G98)

T0100

Index to probe station

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X40.0


Z-15.15 F1000

Protected positioning

G65 P9010 X20.0


F1000

Protected positioning to
start point

G65 P9022
D10.1 T1.0

Calibrate ball size

G65 P9010 X40.0


F1000

Protected position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

5-17

5-18

Probe stylus calibration

This page is intentionally left blank

Publication No. H-2000-6021

Measurment and setting programs

6-1

Chapter 6

Measurement and setting programs

Contained in this chapter


Radial measure macro O9015 ...................................................................................... 6-2
Diametral measure macro O9019 ................................................................................. 6-8
Length measure macro O9018 ................................................................................... 6-14
Length measure rib/groove macro O9016 ................................................................. 6-19

Publication No. H-2000-6021

6-2

Measurment and setting programs

Radial measure macro O9015

Figure 6.1 Macro O9015


DESCRIPTION

This program is used to measure an external or internal radius. The error


found can be used to update a tool offset. If the tool offset is updated then
the value is changed by 80% of the error to avoid feeding back machine
repeatability in close tolerance work.

APPLICATION

The probe stylus should be positioned adjacent to the surface to be


measured. An automatic cycle will take place on the G65 P9015
command line which will establish the error of the surface. At the end of
the cycle the probe is returned to the initial start point.

FORMAT

G65 P9015 Xx [Tt Uu Mm Qq Vv Hh]


where [ ] denote optional inputs

Publication No. H-2000-6021

Measurment and setting programs

6-3

PROGRAM INPUTS
Hh

h=

the value of half the total tolerance of the feature to be


measured.

e.g. Nominal dimension


program

80.000 0.2

X80.0 H0.2 (Diameter programmed machines)


X40.0 H0.1 (Radius programmed machines)

Mm

m=

the number of a vacant tool offset to be used to store the


error value.

Qq

q=

the stylus overtravel distance (4.0mm default).

Tt

t=

the tool offset number to be updated with 80% of the


error.

Uu

u=

the maximum allowable error. If Uu is programmed then


the tool offset will be accepted only if its value is below
the limit e.g.:
G65 P9015 X50.0 T10 H0.1 U0.5
Offset 10 will be updated if the error is found below
0.5mm.
If the error is greater than 0.01 mm
If the error is greater than 0.5

Alarm 90
Alarm 94

No offset update will occur with Alarm 94.

PROGRAM OUTPUTS

Vv

v=

the code that activates the print function (where fitted). If


V2.0 is programmed a heading will be output prior to the
data. If V1.0 is programmed no heading will be output,
just data.

Xx

x=

the nominal X position of the surface to be measured.

1. Tool offset update by 80% of error.


2. Errors stored in vacant tool offsets.
3. Printing of data to external printer via RS232 output/input port.

Publication No. H-2000-6021

6-4

Measurment and setting programs

Program example 1 for macro O9015

External Feature Measure

30.0

Z0

Figure 6.2 Example 1 for macro O9015


01234
G80 G40 G00

Cancel codes

G94

mm per minutes (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X40.0


Z-10.0 F1000

Protected positioning to
start position

G65 P9015 X30.0


T2 H0.1 U0.3

Measure 30.0, update tool offset 2


tolerance 0.1 upper limit of 0.3

G65 P9010 X100.0


Z50.0 F1000

Return to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

Measurment and setting programs

Program example 2 for macro O9015

External Feature Measure

30.0

Z0

Figure 6.3 Example 2 for macro O9015


01234
G80 G40 G00

Cancel codes

G94

MM per minute mode (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X10.0


Z5.0 F1000

Protected positioning

G65 P9010 Z-10.0


F1000

Protected position to start


point

G65 P9015 X20.0


M20 V2.0

Measure 20, store error in


offset 20, print results with heading

G65 P9010 Z5.0


F1000

Protected position

G65 P9010 X100.0


Z50.0 F1000

Protected position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

6-5

6-6

Measurment and setting programs

Diametral measure macro O9019

Radius programming
Divide inputs Dd, Rr, Hh, Uu, Ss by 2 output.
Ee will be half the actual radial value.

Figure 6.4 Macro O9019


DESCRIPTION

The program will measure the diameter of an external or internal feature.


The error value of the diameter may update a tool offset or be stored. If
required the error of position may be stored only. Tolerance checking with
an upper limit is available as is the print function. This cycle can only be
used if the probe is datumed using G65 P9021 to provide a #506 value
and a tool geometry.

APPLICATION

The program must position the stylus at the nominal centre of the feature
to be measured. The sequence will detect for an internal or external
feature by the code Zz on the program call. The sequence gauges the
diameter and returns to the start point.

FORMAT

G65 9019 Dd [Ee Rr Mm Hh Tt Vv Uu Zz Ss Qq]


where [ ] denote optional inputs.

NOTE: Aa replaces Dd. Ii replaces Ee on macro A keyboards.

Publication No. H-2000-6021

Measurment and setting programs

6-7

PROGRAM INPUTS

PROGRAM OUTPUTS

Dd (Aa) d =

the diameter of the feature to be measured.

Ee (Ii)

e=

the address of a vacant tool store for the error of position.

Hh

h=

the tolerance of diameter being measured.

e.g.

G65 P9019 D40.0 H0.2


dimension 40.0 +0.2/-0.2

Mm

m=

the address of a vacant tool store for the error size.

Qq

q=

the stylus overtravel distance (12mm default).

Rr

r=

the radius of the feature from the centre-line for offset


features.

Ss

s=

the size of stylus (10mm default).

Tt

t=

the address of the tool offset to be updated with 80% of


error.

Uu

u=

where the error exceeds the upper limit amount (Uu) error
94 is raised and the offset (Tt) will not be updated.

Vv

v=

activates the print function. V2.0 will give a heading


followed by data. V1.0 will give data only.

Zz

z=

absolute position for measuring external diameters.

1. If Tt input is used, the tool offset is updated by 80% of error.


2. If Ee input is used, the error of position will be stored in a spare tool
offset register (specified by the 'e' number).
3. If Mm input is used, the error of size will be stored in a spare tool offset
register (nominated by the 'm' number).

Publication No. H-2000-6021

6-8

Measurment and setting programs

Program example 1 for macro O9019

START POINT
External Measure
feature on centreline

30.0

Z0

Figure 6.5 Example 1 for macro O9019


01234
G80 G00 G94

Cancel codes and select mm/min (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X0
Z5.0 F1000

Protected positioning to
start position

G65 P9019 D30.0


Z-10.0 M20 H0.1

Measure 30.0 at a depth of 10mm, store the size error


in offset 20, tolerance of 0.1

G65 P9010 X100.0


Z50.0 F1000

Return to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

Measurment and setting programs

Program example 2 for macro O9019


Z0

Internal Measure
feature on centreline

C/L

Bore dia. = 20.0

Figure 6.6 Example 2 for macro O9019


01234
G80 G00 G94

Cancel codes and select mm/min (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X0
Z5.0 F1000

Protected position

G65 P9010 Z-10.0


F1000

Protected position to start point

G65 P9019 D20.0


T2 V2.0

Measure bore, update offset 2,


print results to printer

G65 P9010 Z5.0


F1000

Protected position to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

6-9

6-10

Measurment and setting programs

Program example 3 for macro O9019


Z0

C/L

10mm

START
POSITION

Internal Measure
feature not on centreline
Feature offset 10mm (radius) and at C0
Feature size 10mm.

Figure 6.7 Example 3 for macro O9019


01234
G80 G00 G94

Cancel codes and select mm/min (G94 or G98)

G28 C0

Reference C-axis/activate

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0 C0

Move to start position and apply tool offset

G65 P9010 X20.0


Z5.0 F1000

Protected positioning

G65 P9010 Z-10.0 F1000

Protected position to start point

G65 P9019 D10.0


R10.0 E20

Measure 10, store error of


position in offset 20

G65 P9010 Z50.0


X100.0 F1000

Return to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

Measurment and setting programs

6-11

Length measure macro O9018

Figure 6.8 Macro O9018


DESCRIPTION

This program is used to measure a Z surface. The error found can update
workshifts or tool offsets.

APPLICATION

The probe stylus should be positioned adjacent to the surface to be


inspected. An automatic cycle will take place on the cycle line which will
establish the error against the target value. At the end of the cycle the
probe is returned to the start position.
Zz

FORMAT

z = the position of the feature to be probed.

G65 9018 Zz [Mm Tt Qq Uu Hh Ee Vv]


where [ ] denote optional inputs.

NOTE: Ii replaces Ee on macro A keyboards.

Publication No. H-2000-6021

6-12

Measurment and setting programs

PROGRAM INPUTS
Ee (Ii)

Hh

e=

h=

the work offset number to be updated


E0. =

external work offset (common to all


co-ordinate systems).

E1. to E6. =

G54 to G59

E10. =

updates G10P0 X_Z_work shift system.

E20. =

Sets a temporary program shift. It is


applied in the macro as a G50W (error). It
is cancelled with reset or end of program.

the value of the tolerance on the feature being gauged.


Hh is half the total tolerance, e.g. for dimension 110.0
+0.2/-0.1
Program

Mm

m=

Z110.05 H0.15

the number of a vacant tool offset to store the error value.

Qq

q=

the stylus overtravel distance (4.0mm default).

Tt

t=

the number of the tool offset to be updated by


the cycle. Tt and Ee inputs must not be used
together.

Uu

u=

the upper tolerance of the surface.

Vv

v=

this will activate the print function (where fitted)


V2.0 = with headings, V1.0 = without headings.

PROGRAM OUTPUTS

1. If the Tt input is used, the tool offset Tt will be updated with the error.
2. If the Ee input is used, the work offset or work co-ordinate system will
be updated by the error value. If Ee and Tt are mixed, a format error
will result.
3. The error in surface will be stored in the memory location Mm. Do not
program Mm and Tt as the same number.
4. Print data will be output if Vv is programmed.
5. Variable #103 will always contain the surface position error.

Publication No. H-2000-6021

Measurment and setting programs

Program example 1 for macro O9018

20.0

Z0
Face measure or set Z minus direction

Figure 6.9 Example 1 for macro O9018


01234
G80 G0 G94

Cancel codes and select mm/min


(G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 Z5.0


X40.0 F1000

Protected position to start


point

G65 P9018 Z0
E20.0

Probe Z0, do a G50_move

G65 P9010 Z50.0


X100.0 F1000

Return to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

6-13

6-14

Measurment and setting programs

Program example 2 for macro O9018

20.0

Z-10.0

Figure 6.10 Example 2 for macro O9018


01234
G80 G0 G94

Cancel codes and select mm/min (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X90.0


Z-15.0 F1000

Protected positioning

G65 P9010 40.0 F1000

Protected position into groove

G65 P9018 Z-10.0 T20

Measure surface, update offset 20

G65 P9010 X90.0


F1000

Protected position out of groove

G65 P9010 X100.0


Z50.0 F1000

Return to safe position

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

Measurment and setting programs

6-15

Length measure rib/groove macro O9016

Radius Programming
Input Ss must be divided by 2

Figure 6.11 macro O9016


DESCRIPTION

The cycle will move the probe within a groove or over a rib laying around
the diameter of a turned component. The error of position may be
established as can the error of size. This cycle can only be used if the
probe has been datumed using O9022.

APPLICATION

The probe stylus is programmed to a position at the expected centre of


the groove or alongside if a rib. The sequence will move the probe to the
start point at the end of the sequence.

FORMAT

G65 9016 Dd Rr [Ee Mm Tt Hh Uu Vv Xx Ss]


where [ ] denote optional inputs.

NOTE: Aa replaces Dd. Ii replaces Ee on macro A keyboards.

Publication No. H-2000-6021

6-16

Measurment and setting programs

PROGRAM INPUTS
Dd (Aa) d =

the width of the feature.

Ee (Ii)

e=

the address of a vacant tool store for the error of position.

Hh

h=

the tolerance of the width of the rib/groove. Hh is half the


total tolerance.

Mm

m=

the address of a vacant tool store to store the error of


size.

Rr

r=

the nominal position of the feature.

Ss

s=

the diameter in the X axis to offset the probe position to


allow for disc styli.

Tt

t=

the address of the tool stores requiring updating.

Ttt

tt =

either t or tt format may be used depending on the tool


offsets controlling the side faces (see the examples in
Figure 6.12).

Uu

u=

the upper tolerance of the slot.

Vv

v=

activates the print function.

Xx

x=

the diametral position of the gauging in the X- axis if an


external feature is gauged.

or

offset 30
offset 31

offset 31

offset 30

T3031

T3031

offset 30

T30

Figure 6.12 Example offsets for macro O9016

Publication No. H-2000-6021

Measurment and setting programs

PROGRAM OUTPUTS

6-17

1. The error of position will be loaded to the offset indicated by Ee.


2. The error of size will be loaded to the offset indicated by Mm.
3. Tt will update tool offsets. A single Tt can only correct for position of
the feature. A double Ttt will correct for both the width and position of
the feature by adjusting both side faces.
4. Any Vv will activate the printer.
5. Variable #103 will always contain the Z axis feature.

NOTE: Some of the above outputs are only given when the relevant input is used.

Publication No. H-2000-6021

6-18

Measurment and setting programs

Program example 1 for macro O9016


START POSITION

15.0

External Feature Datum


6 Ball

Z0
60.0
Z-10.0

Figure 6.13 Example 1 for macro O9016


01234
G80 G0 G94

Cancel codes and select mm/min (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X70.0


Z-8.0 F1000

Protected positioning to
start position

G65 P9016 X30.0


D10.0 R-5.0 T1001

Inspect width and update offset 10


(nearest chuck) and offset 1

G65 P9010 X100.0

Protected position to safe position Z50.0 F1000

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

Measurment and setting programs

Program example 2 for macro O9016

15.0

Internal Feature Datum


6 Ball

Z-10.0
60.0
Z-20.0

Figure 6.14 Example 2 for macro O9016


01234
G80 G0 G94

Cancel codes and select mm/min (G94 or G98)

T0100

Index to probe

*********

Co-ordinate system setting


(refer to chapter 8, Co-ordinate systems used on lathes)

T0101 X100.0 Z50.0

Move to safe position and apply tool offset

G65 P9010 X70.0


Z-18.0 F1000

Protected positioning

G65 P9010 X30.0


F1000

Protected position into groove

G65 P9016 D10.0


E20.0 R-15.0

Measure width and store error of


position in offset 20

G65 P9010 X70.0


F1000

Protected positioning

G65 P9010 X100.0


Z50.0 F1000

Protected positioning

G28 U0 W0

Return to reference

M30

Publication No. H-2000-6021

6-19

6-20

Measurment and setting programs

This page is intentionally left blank

Publication No. H-2000-6021

Software alarms

Chapter 7

Software alarms

ERROR

MESSAGE

REASON

ACTION

84

PROBE NOT
DATUMED

The stylus ball


compensation values
are incorrect.

Calibrate probe using


macro O9021.

85

OUT OF
POSITION

An attempt to run the


cycle was made
following an error in
O9010 (this alarm is
not fitted to all
packages).

Clear the obstruction


which prevented the
probe from reaching its
target in O9010.

86

PATH
OBSTRUCTED

A collision has occurred.

Edit the program to


obstruction.

88

NO FEED RATE

Ff input missing from


O9010 call up.

Edit call up line to


include an Ff.

90

OUT OF
TOLERANCE

Part being measured is


out of tolerance (this
cycle allows a tool offset
correction to be made
prior to this measure).

Operator intervention is
required.

91

FORMAT
ERROR

Incorrect inputs on call


up line.

Edit call up line to


include correct inputs.

Publication No. H-2000-6021

7-1

7-2

Software alarms

ERROR

MESSAGE

REASON

ACTION

92

PROBE
OPEN

The probe was in


contact with a surface
before the cycle was
executed.

Edit the program to


reposition the probe. If
this does not cure the
problem check probe
operation.

93

PROBE
FAIL

The probe cycle failed


to find a surface within
4mm of the nominal
surface.

Edit the program.


Check for correct
target values on call up
line.

94

STEP LIMIT
EXCEEDED

The error found exceeds


the programmed limit
(This alarm prevents a
tool from being used if
broken.)

Check for broken tool.

Publication No. H-2000-6021

Co-ordinate systems used on lathes

8-1

Chapter 8

Co-ordinate systems used on lathes

Contained in this chapter


Example 1 Tool offset geometry ..................................................................................... 8-2
Example 2 Using G50 or G54 G59 to define the component zero............................... 8-3
G54 to G59 Method .................................................................................................. 8-3
G50 Method setting a program shift to the turret reference position......................... 8-4
Example 3 Using G10 to define the component zero...................................................... 8-5
Example 4 Using G92 or G50 to define the component zero-to-tool tip position ............ 8-6

Publication No. H-2000-6021

8-2

Co-ordinate systems used on lathes

CAUTION: The examples given here are commonly used, but might not be
suitable for your machine. Care must be taken if you change the method of coordinate system setting on your machine to one described here.

Example 1 Tool offset geometry


Boring Bar
b

TURRET

TURRET

Turning Tool

a = X Geometry of tool (2xa for diameter type offsets)


b = Z Geometry of tool

Figure 8.1 Example 1

Publication No. H-2000-6021

Co-ordinate systems used on lathes

8-3

Example 2 Using G50 or G54 G59 to define the


component zero

X tool offset

a = diameter or radius
Z tool offset

COMPONENT ZERO
b

Figure 8.2 Example 2

G54 to G59 Method


NOTES:
1 G54 - G59 work offsets can be collectively shifted by inputting data into the external
work shift co-ordinate system (offset 00 on work offset page).
2 a and b could be minus values if the machine zero is at the turret home position.

Publication No. H-2000-6021

8-4

Co-ordinate systems used on lathes

01234
G80 G0
G28 U0 W0

Return to the reference position

G55 T0101 X0 Z10

Select G55 and tool 1, offset 1. The tool tip will move to XO Z10.
in the program co-ordinate system.

where :
G55
X register = a (see note 2)
Z register = b (see note 2)

G50 method setting a program shift to the turret


reference position
01234
G80 G0
G28 U0 W0

Return to the reference position

G50 X (a) Z (b)

Set a program shift to the turret reference position.

T0101 X0 Z10

Select tool 1, offset 1. The tool tip will move to X0 Z10. in the
program co-ordinate system.

where :
G55
X = a (+ value to the turret reference)
Z = b (+ value to the turret reference)

NOTE: See example 4 in this chapter for an alternative G50 method.

Publication No. H-2000-6021

Co-ordinate systems used on lathes

8-5

Example 3 Using G10 to define the component zero

Machine zero (this position will vary from machine to machine)

COMPONENT ZERO

Figure 8.3 Example 3


NOTE:

G10 defines the distance and direction of the machine zero from the component
zero. Therefore in this example:
b = minus value
a = zero (0)

However, if the machine zero is at the turret home position then:


b = plus value
a = plus value
01234
G80 G0
G10 P0 X (a) Z (b)

Publication No. H-2000-6021

8-6

Co-ordinate systems used on lathes

NOTES:

The previous methods of co-ordinate system setting using either G54-G59 or


G10 can use geometry type offsets (see example 1). They are all methods of
setting the component zero relative to the turret face (ie. NOT, tool tip
position).
These methods will allow the same tool offsets to be used in another job set
up. All that is necessary is to redefine the new component zero.

Example 4 Using G92 or G50 to define the component


zero-to-tool tip position

a ()

COMPONENT ZERO
b

Figure 8.4 Example 4


G50 or G92
X = a (plus value)
z = b (plus value)

CAUTION: On some machines the G92 may be a minus value.

Publication No. H-2000-6021

Co-ordinate systems used on lathes

8-7

01234
G80 G0
G28 U0 W0
G50 X200.0 Z100.0
T0101 X30.0 Z3.0 (select tool and tool offset)
G28 U0 W0 T0100
G50 X250.0 Z75.0
T0202 X0 Z3.0
G28 U0 W0 T0200

NOTES:

Tool offsets for G50 (or G92) co-ordinate system will be small wear
compensation amounts and have no obvious relationship to the machine
turret.
When changing from job to job, all tools will need their new G50 values reset
unlike the other methods mentioned. This means that re-setting of the tools
will be needed for each job.

Publication No. H-2000-6021

8-8

Co-ordinate systems used on lathes

This page is intentionally left blank

Publication No. H-2000-6021

Glossary of terms

Glossary of terms abbreviations and definitions


Definitions of many of the terms used are provided here to assist your understanding of
the inspection software.

NOTE: This glossary also includes terms that are associated with probing but which have
not been used in this publication.

ATAN calculation
This describes a user transparent macro written by Renishaw to handle the ATAN function
in mathematical calculations.
User transparent
Macros which are used by the software but which do not get called directly by the user, i.e.
they are for internal use by the software only.
BRDO (ball radius directional offsets)
This is a term that is used to describe the stored software compensations for the stylus
ball radius. They are determined during calibration of the probe.
Bore/boss measure
This is a Renishaw measuring cycle type definition.
Bore is an internal-width feature measurement on a circle. Feature types consist
of holes or bores.
Boss this is an external-width feature measurement on a circle. Feature types
consist of shafts, bosses, and spigots.
Calibration
This is the method of establishing the probe trigger point compensations. They include the
probe and machine effects which the software must use to correct the results.
C.W.
Clockwise
C.C.W.
Counter-clockwise.
Datum, datuming
This is the method used to establish a part feature reference point which is subsequently
used for other measurement or machining operations. A datum defines any co-ordinate
value as a reference position.
DPRNT
This is a Fanuc control command. It outputs ASCII data to the RS-232 port of the
controller. It is used to output a part inspection report that is based on probe results.

Publication No. H-2000-6021

Glossary of terms

DTI (dial test indicator)


This instrument is traditionally used for aligning vices and fixtures with respect to the
machine axis.
Gauging move
This describes the movement of the probe onto the surface with data capture active, i.e. it
is a measurement move.
IMM (inductive module machine)
Together with the IMP, it forms part of the inductive transmission system that is used to
transmit signals back to the machine tool controller. The IMM is part of the inductive
coupling and is mounted on the machine. See also IMP.
IMP (inductive module probe)
Together with the IMM, it forms part of the inductive transmission system that is used to
transmit signals back to the machine tool controller. The IMP is part of the inductive
coupling and is mounted on the probe. See also IMM.
INHIBIT
This is a Renishaw interface input signal. It is used to either stop or inhibit the
transmission of the probe signal to the machine controller.
MDI (manual data input)
This is a commonly used term on Fanuc controllers (and controllers that emulate the
Fanuc). It means that operation of the machine is determined by data that is entered
through the keyboard.
MMS menu cycles (mazatrol monitoring system)
This is a standard Mazak probe option unit that is normally fitted as original equipment.
MI5 interface
This is the Renishaw probe interface that is used to condition and control the probe signal
to the machine tool.
M19 spindle orientation
This is the machine manufacturers M-code function that instructs the machine spindle to
rotate and orientate to a fixed position.
Nominal surface position
This is the expected surface position, or theoretical position. When used in relation to
tolerances, it refers to the mid-position of the upper and lower limit of the surface.
OMI (optical module interface)
This is a combined optical receiver and machine interface unit that forms part of the
Renishaw optical probe transmission system. The unit is mounted either on the guarding
or some other suitable position where it is within the transmission envelope and range of
the probe.

Publication No. H-2000-6021

Glossary of terms

OMM (optical module machine)


This is part of the Renishaw optical probe transmission system. The unit is mounted either
on the guarding or some other suitable position where it is within the transmission
envelope and range of the probe.
OMP (optical module probe)
This is part of the Renishaw optical probe transmission system. The unit is mounted on
the probe unit.
Optimisation macro
This is part of the Renishaw software package. It is used to establish the optimum fast
feed rates for probing and the optimum back-off distance.
PCD (pitch circle diameter)
This is a commonly used British term to mean a set of features placed in a circular pattern.
Probe trigger flag
This is a variable or diagnostic register which is set to a value when the probe is triggered.
Protected positioning
This is a means of moving the probe from place to place while the probe trigger signal is
monitored. In the event of an unexpected triggering signal, the machine axis is halted to
prevent damage to the probe stylus.
PTR (paper tape reader)
This is the machines interface which is used to load the stored part programs. It is now
largely superseded by the use of floppy disk drives, external PCs, and the RS-232 serial
interface.
RMM (receiver module machine)
This is part of the Renishaw radio probe transmission system. The unit is mounted either
on the guarding or some other suitable position where it is within the transmission
envelope and range of the probe.
RMP (radio module probe)
This is part of the Renishaw radio probe transmission system. The unit is mounted on the
probe.
SPC (statistical process control)
Some Renishaw software packages contain a macro which uses a simple form of SPC to
control tool offset update corrections in closed loop machining.
Stylus
This is the probe tip assembly that is used to trigger the probe on the tool during
measurement.
SSR (solid state relay)
The SSR converter terminal block is a Renishaw hardware unit which is used to convert
the signal from a signal conditioning module into an SSR output signal.

Publication No. H-2000-6021

Glossary of terms

Tolerance limits
These are the extreme upper and lower metal condition values from the nominal surface
position.
Vector cycle, vector measure / calibration
This is a probe move, which move one or more machine axes simultaneously to approach
the surface from the normal direction.
Vector stylus ball radius calibration
This is an extra set of probe stylus ball radius calibration values which must be determined
when using vector cycles. They are the probe software compensation values required for
probing in different directions.
Web pocket measure
This describes a Renishaw measuring cycle type definition.
Pocket is an internal-width feature measurement. Feature types consist of slots,
pockets, and internal recesses.
Web is an external-width feature measurement. Feature types consist of blocks,
plate widths, and upstanding keys.
Work zero point
This is a similar concept to Datum. It defines where the work co-ordinate system is set to
zero. A datum can define any co-ordinate value as a reference position.
Workpiece datum
This can be any workpiece feature or co-ordinate, which is chosen as a reference position.

Publication No. H-2000-6021

Renishaw plc
New Mills, Wotton-under-Edge,
Gloucestershire, GL12 8JR
United Kingdom

T +44 (0)1453 524524


F +44 (0)1453 524901
E uk@renishaw.com
www.renishaw.com

For worldwide contact details,


please visit our main website at
www.renishaw.com/contact

Anda mungkin juga menyukai