Inspection Software For Lathes
Inspection Software For Lathes
Inspection Software For Lathes
H-2000-6021-0C-C
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.
January 1998
April 1998
January 1999
February 1999
July 2003
Form 1
MACHINE DETAILS
Machine description...........................................................................................................................
Machine type.................................................................................................................................
Controller.............................................................................................................................
Special control options.................................................................................................................................
..................................................................................................................................
..................................................................................................................................
RENISHAW HARDWARE
RENISHAW SOFTWARE
Inspection probe type .......................................
Inspection disk(s).....................................................
.....................................................................................
.....................................................................................
.....................................................................................
.........................................................................................
SPECIAL SWITCHING M CODES (OR OTHER) WHERE APPLICABLE
Dual systems only
Switch (Spin) probe on ....................................
Other ..........................................................................
.......................................................................................
ADDITIONAL INFORMATION
Form 2
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.
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
II
Table of contents
Chapter 1 Getting started explains why your probe must be calibrated before you
start using it.
Chapter 3 Input/output format provides a complete list of the optional inputs that are
required by some of the macro cycles.
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.
Pubblicazioni N. H-2000-6021
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
Software kit
Inspection software Renishaw part no. A-4012-0541
This comprises the following item:
Measuring cycles
(File 40120480)
O9007
O9010
O9013
O9015
O9017
O9018
O9019
O9021
O9022
O9023
O9024
O9100
O9101
Pubblicazioni N. H-2000-6021
Macro descriptions
Macro number
Function
Macro number
Function
Dwell macro.
Inch/metric detector.
Pubblicazioni N. H-2000-6021
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).
A description of what happened and what you were doing when the problem
occurred.
Pubblicazioni N. H-2000-6021
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.
1-2
Getting started
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 suspected that the stylus has become distorted or that the probe has crashed.
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.
Getting started
1-3
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.
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.
Getting started
1-5
NOTE: For further details, you should refer to chapter 5, probe stylus calibration.
1-6
Getting started
Software installation
2-1
Chapter 2
Software installation
This chapter describes how you should load and customise the inspection software.
2-2
Software installation
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.
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
T0101X0Z50.
G65P9010Z5.F1000
G65P9018Z0E2.
G28U0W0
M30
Software installation
2-3
Make a note of the G55Z value. It should be close to the G54 value.
If this is not the case, you must make adjustments to the software as described
below and then repeat the test.
#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:
#121=#5081
#122=#5082
GOTO1
#121=#5081+#5121
#122=#5082+#5122
N1
#148=#4005
IF[#148EQ94]GOTO2
G98
N2G40
2-4
Software installation
#500
#501
#502
#503
#504
#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
Software installation
2-5
(c)
(b)
d
X
a
b
c
d
=
=
=
=
Fast feed
Gauge feed (30mm/min)
Return
Recovery from surface in
proportion to the factor #504
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.
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.
2-6
Software installation
(G94 or G98)
T0100
*********
T0101 X100.0 Z50.0
M80*
M82*
G4 X1.0
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.
Software installation
2-7
G-CODE
G101
G106
G113
G107
G118
2-8
Software installation
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.
3-2
Input/output format
Code
Definition
G65
X, Z, D,
The number of a vacant tool offset that can be used to store errors of size.
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 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.
Input/output format
3-3
Definition
E
(as used in
O9018)
=
=
=
=
E
(as used in
O9019)
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.
3-4
Input/output format
Protected positioning
4-1
Chapter 4
Protected positioning
4-2
Protected positioning
Chuck
Required
position
Component
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
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.
Protected positioning
PROGRAM EXAMPLE
01234
G80 G40 G00
Cancel codes
G94
T0100
*********
Protected positioning to
measuring cycle start position.
4-3
4-4
Protected positioning
5-1
Chapter 5
5-2
Calibration on
outside diameter
Chuck
X+direction(#501)
Calibration on
inside diameter
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
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 =
5-3
60.014
(2)
X and Z datum
Cancel codes
G94
T0100
*********
Protected positioning to
Z- 10.0 F1000
start position
Datum X+ (point 1)
Protected position
Protected position
Protected position
Datum X+ (point 2)
Protected position
G28 U0 W0
Return to reference
M30
5-4
Reference diameter
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).
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
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.
q=
Rr
r=
1. or any value will indicate that the ball diameter values will be
updated.
Ss
s=
Tt
t=
the tool offset number of the probe which will be set relative to
the centreline position.
Zz
z=
5-6
PROGRAM OUTPUTS
#501 = X+
X and Z datum
Cancel codes
G94
T0100
*********
G65 P9010 X0
Z 10.0 F1000
Protected positioning to
start position
G28 U0 W0
Return to reference
M30
5-7
5-8
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
FORMAT
G65 P9017 Zz Tt
PROGRAM INPUTS
PROGRAM OUTPUTS
5-9
Tt
t =
Zz
z=
1.
5-10
R40.0
Cancel codes
G94
T0100
*********
Protected positioning to
Z 10.0 F1000
start position
G28 U0 W0
Return to reference.
M30
200.0
Turret datum at
machine reference
Cancel codes
G28 U0 W0
Return to reference
T0100
G65 P9010 X0
Protected positioning to
Z10.0 F1000
start position
G28 U0 W0
Return to reference
M30
5-11
5-12
R40.0
R50.0
Z0
Z-10.0
OFFSET 21
OFFSET 1
Cancel codes
G94
T0100
*********
Protected positioning to
start position
Protected positioning
T0121
Protected positioning
Protected positioning
G28 U0 W0
Return to reference
M30
5-13
5-14
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
FORMAT
5-15
PROGRAM INPUTS
Dd
d=
q=
Rr
r=
any value will indicate that the electronic ball diameter values
will be updated.
Ss
s=
Tt
t=
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
5-16
15.0
30.0
Z0
Z-10.1
T0100
*********
Protected positioning to
start position
G28 U0 W0
Return to reference
M30
15.0
30.0
Z-10.1
Z-20.2
T0100
*********
Protected positioning
Protected positioning to
start point
G65 P9022
D10.1 T1.0
Protected position
G28 U0 W0
Return to reference
M30
5-17
5-18
6-1
Chapter 6
6-2
APPLICATION
FORMAT
6-3
PROGRAM INPUTS
Hh
h=
80.000 0.2
Mm
m=
q=
Tt
t=
Uu
u=
Alarm 90
Alarm 94
PROGRAM OUTPUTS
Vv
v=
Xx
x=
6-4
30.0
Z0
Cancel codes
G94
T0100
Index to probe
*********
Protected positioning to
start position
G28 U0 W0
Return to reference
M30
30.0
Z0
Cancel codes
G94
T0100
Index to probe
*********
Protected positioning
Protected position
Protected position
G28 U0 W0
Return to reference
M30
6-5
6-6
Radius programming
Divide inputs Dd, Rr, Hh, Uu, Ss by 2 output.
Ee will be half the actual radial value.
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
6-7
PROGRAM INPUTS
PROGRAM OUTPUTS
Dd (Aa) d =
Ee (Ii)
e=
Hh
h=
e.g.
Mm
m=
q=
Rr
r=
Ss
s=
Tt
t=
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=
Zz
z=
6-8
START POINT
External Measure
feature on centreline
30.0
Z0
T0100
Index to probe
*********
G65 P9010 X0
Z5.0 F1000
Protected positioning to
start position
G28 U0 W0
Return to reference
M30
Internal Measure
feature on centreline
C/L
T0100
Index to probe
*********
G65 P9010 X0
Z5.0 F1000
Protected position
G28 U0 W0
Return to reference
M30
6-9
6-10
C/L
10mm
START
POSITION
Internal Measure
feature not on centreline
Feature offset 10mm (radius) and at C0
Feature size 10mm.
G28 C0
Reference C-axis/activate
T0100
Index to probe
*********
Protected positioning
G28 U0 W0
Return to reference
M30
6-11
This program is used to measure a Z surface. The error found can update
workshifts or tool offsets.
APPLICATION
FORMAT
6-12
PROGRAM INPUTS
Ee (Ii)
Hh
e=
h=
E1. to E6. =
G54 to G59
E10. =
E20. =
Mm
m=
Z110.05 H0.15
q=
Tt
t=
Uu
u=
Vv
v=
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.
20.0
Z0
Face measure or set Z minus direction
T0100
Index to probe
*********
G65 P9018 Z0
E20.0
G28 U0 W0
Return to reference
M30
6-13
6-14
20.0
Z-10.0
T0100
Index to probe
*********
Protected positioning
G28 U0 W0
Return to reference
M30
6-15
Radius Programming
Input Ss must be divided by 2
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
FORMAT
6-16
PROGRAM INPUTS
Dd (Aa) d =
Ee (Ii)
e=
Hh
h=
Mm
m=
Rr
r=
Ss
s=
Tt
t=
Ttt
tt =
Uu
u=
Vv
v=
Xx
x=
or
offset 30
offset 31
offset 31
offset 30
T3031
T3031
offset 30
T30
PROGRAM OUTPUTS
6-17
NOTE: Some of the above outputs are only given when the relevant input is used.
6-18
15.0
Z0
60.0
Z-10.0
T0100
Index to probe
*********
Protected positioning to
start position
G28 U0 W0
Return to reference
M30
15.0
Z-10.0
60.0
Z-20.0
T0100
Index to probe
*********
Protected positioning
Protected positioning
Protected positioning
G28 U0 W0
Return to reference
M30
6-19
6-20
Software alarms
Chapter 7
Software alarms
ERROR
MESSAGE
REASON
ACTION
84
PROBE NOT
DATUMED
85
OUT OF
POSITION
86
PATH
OBSTRUCTED
88
NO FEED RATE
90
OUT OF
TOLERANCE
Operator intervention is
required.
91
FORMAT
ERROR
7-1
7-2
Software alarms
ERROR
MESSAGE
REASON
ACTION
92
PROBE
OPEN
93
PROBE
FAIL
94
STEP LIMIT
EXCEEDED
8-1
Chapter 8
8-2
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.
TURRET
TURRET
Turning Tool
8-3
X tool offset
a = diameter or radius
Z tool offset
COMPONENT ZERO
b
8-4
01234
G80 G0
G28 U0 W0
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)
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)
8-5
COMPONENT ZERO
G10 defines the distance and direction of the machine zero from the component
zero. Therefore in this example:
b = minus value
a = zero (0)
8-6
NOTES:
a ()
COMPONENT ZERO
b
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.
8-8
Glossary of terms
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.
Glossary of terms
Glossary of terms
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.
Renishaw plc
New Mills, Wotton-under-Edge,
Gloucestershire, GL12 8JR
United Kingdom