Easy Probing Renishaw

29
Programming guide H-2000-6181-0B-B EasyProbe cycles for machining centres Z Z X Dd Rr Dd Z X Zz X (Y) 4 Dd Y X 3 1 5 2 6

Transcript of Easy Probing Renishaw

Page 1: Easy Probing Renishaw

Programming guide H-2000-6181-0B-B

EasyProbe cycles for machining centres

Z

Z

X

Dd

RrDd

Z

X

Zz

X (Y)

4

Dd

Y

X3

1

5

2

6

Page 2: Easy Probing Renishaw

© 1999 - 2006 Renishaw plc. All rights reserved.

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

RENISHAW® and the probe emblem used in the RENISHAW logo are registered trademarks of Renishaw plc in the UK and other countries.

apply innovation is a trademark of Renishaw plc.

All other 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-6181-0B-B

Issued: 07.2006

Page 3: Easy Probing Renishaw

Contents 1

Publication No. H-2000-6181

ContentsAbout the EasyProbe cycles.............................................................................................. 3

How much memory is required? ........................................................................................ 3

Control parameter setting – retaining the common variables on reset............................... 4

Calibrating a spindle probe ................................................................................................ 4When should a spindle probe be calibrated?.............................................................. 4How do I calibrate a probe?........................................................................................ 5Using the ‘C’ input....................................................................................................... 5Calibrating using experience values ........................................................................... 6

Program format.................................................................................................................. 6

Measuring a single surface................................................................................................ 7Example 1: Calibrating the probe length..................................................................... 8Example 2: Measuring the X surface (set G54 to the surface) ................................... 8Example 3: Measuring the Z surface (set G54 relative to the surface)....................... 9Example 4: Applying co-ordinate rotation to the Z axis (C axis) ................................. 9Example 5: Setting a 4th axis (B axis) ...................................................................... 10

Measuring a feature (boss, bore, web, or pocket) ........................................................... 11Example 6: Calibrating the probe XY offsets and stylus ball radii

(combined operation) ........................................................................... 11Example 7: Calibrating the probe XY offsets ............................................................ 12Example 8: Calibrating the probe stylus ball radii ..................................................... 12Example 9: Measuring a boss (set G54 to centre).................................................... 13Example 10: Measuring a bore (set G59 to a referred centre) ................................. 13Example 11: Measuring a Y axis web (set G54 to centre)........................................ 14Example 12: Measuring an X axis pocket (set G59 to a referred centre) ................. 14

Programming method ...................................................................................................... 15Inputs for protected positioning macro O9770.......................................................... 15Example 13: Setting a part origin in a bore and top face .......................................... 15Example 14: Setting a 4th axis (A axis) .................................................................... 16

Common retained variables ............................................................................................. 16Inspection Plus calibration data variables................................................................. 16Standard inspection calibration data variables ......................................................... 17

Customising the software ................................................................................................ 18

Testing the software ........................................................................................................ 19Test 1: Z axis moves................................................................................................. 19Test 2: Measuring accuracy...................................................................................... 20Test 3: Fast feedrate optimisation ............................................................................ 20Test 4: Updating the work offset ............................................................................... 20

Page 4: Easy Probing Renishaw

2 Contents

Publication No. H-2000-6181

Inputs ............................................................................................................................... 21For single surface setting – G65P9023 (no Dd input)............................................... 21For feature setting – G65P9023 (with Dd input) ....................................................... 21Optional inputs – G65P9023..................................................................................... 22

Angle data........................................................................................................................ 24Output – angle (#139)............................................................................................... 24Output – angle error (#144) ...................................................................................... 244th axis work offset adjustment ................................................................................ 24

Alarms.............................................................................................................................. 25

Common variables used for cycle output results ............................................................. 26

Page 5: Easy Probing Renishaw

About the EasyProbe cycles 3

Publication No. H-2000-6181

About the EasyProbe cyclesThis guide describes how to use the Renishaw EasyProbe cycles. They are intended forsetting up simple jobs and measuring tasks.

By using these cycles, you will not have to create a program to position the probe prior tothe setting cycle call. The software allows you to position the stylus at a suitable startposition, in either the jog or handwheel mode, before running the cycle. Alternatively, theEasyProbe custom cycles can be written into a part program for automatic programmingapplications.

The main cycle is:

O9023 (REN START/SETUP)

This cycle is supported by the service macros listed below. Together, they form acomplete standalone software package that can be loaded into the control part-programmemory area.

O9770 (REN PROTECTED MOVE)

O9771 (REN BASIC MEASURE)

O9772 (REN OFFSET TYPE)

O9773 (REN SURFACE)

O9774 (REN FEATURE)

O9775 (REN ANGLE/4TH AXIS)

CAUTION: The EasyProbe cycles should be carefully tested for safe operation inboth MDI’ and ‘program’ mode during the commissioning. This will ensure they

are compatible with your machine configuration. If you use the cycles without first testingthem thoroughly for compatibility, serious mispositioning and damage may be caused(see the section “Testing the software” later in this guide).

How much memory is required?Loading all the cycles requires approximately 6.0 KB (15.0 metres) of part programmemory.

If you do not expect to use any of the macros listed below, do not load them.

O9773 (REN SURFACE) 0.6 KB (1.5 metres) of memory

O9774 (REN FEATURE) 1.2 KB (3.0 metres) of memory

O9775 (REN ANGLE/4TH AXIS) 0.9 KB (2.3 metres) of memory

!

Page 6: Easy Probing Renishaw

4 Calibrating a spindle probe

Publication No. H-2000-6181

Control parameter setting – retaining the common variableson reset

Your machine controller must be set to retain common variables on reset. This is aparameter setting that allows the angle measure cycle to work, and lets you see theresults written to these variables after the cycle has finished. For detailed information, seethe Readme file that is supplied with the EasyProbe software.

Calibrating a spindle probeBefore a spindle probe is used on a machine tool, it must be calibrated. Calibrationensures that the length of the probe and the size and centre position of the stylus ball areknown. With this knowledge you can be sure that measurements taken with the probe willbe accurate.

The EasyProbe cycles have built-in calibration routines. Use these whenever a probeneeds to be calibrated.

When should a spindle probe be calibrated?

A probe should be calibrated in the following circumstances:

● Whenever a new stylus is fitted.

● Whenever the probe is exchanged with one from a different machine.

● Whenever a new shank is fitted to the probe.

● If it is suspected that the stylus has become distorted. For example, due to acollision with part of a feature.

● If any on-centre adjustment has been performed.

● If very tight tolerances are to be achieved during workpiece set-up.

Page 7: Easy Probing Renishaw

Calibrating a spindle probe 5

Publication No. H-2000-6181

How do I calibrate a probe?

Three steps are involved in calibrating a spindle probe.

Step 1 Determine the length of the probe stylus assembly. See “Example 1 –Calibrating the probe length”.

Step 2 Determine the relationship between the {x,y} centre of the stylus ball and themachine spindle (the X and Y stylus offsets). See “Example 7 – Calibrating theprobe XY offsets”.

Step 3 Determine the effective size of the stylus ball (the ball radii). See “Example 8 –Calibrating the probe stylus ball radii”.

Steps 2 and 3 can be carried out either as individual operations, as described above, orcombined into one operation (this is the recommended method). See “Example 6 –Calibrating the probe XY offsets and stylus ball radii (combined operation)”.

Using the ‘C’ input

Instead of having separate calibration routines, the standard measuring cycles are usedwith the ‘C’ input to calibrate the probe.

● C1. – use this input to calibrate the probe for either length or stylus offsets/radii.

● C2. – use this input to calibrate the probe stylus offsets.

● C3. – use this to calibrate the probe stylus radii.

Page 8: Easy Probing Renishaw

6 Calibrating a spindle probe

Publication No. H-2000-6181

Calibrating using experience values

Depending on circumstances, a probe might not always need to be calibrated precisely. Instead, experience values can be used. To calibrate using experience values, firstmechanically centre the probe stylus so that it runs true. Next, enter the values directlyvia the keyboard.

Do this as follows:

1. Enter experience values for the stylus ball radii.

● Actual (experience) stylus radii values are typically 0.030 mm (0.0011 in) lessthan the physical radii values.

● For details of where these values are stored, see the section “Commonretained variables”.

2. Set the XY offsets to zero (0).

● For details of where these values are stored, see the section “Commonretained variables”.

3. Set the probe tool offset register to the length of the probe/stylus assembly.

● Enter the length into the tool offset register that you have allocated to theprobe tool holder.

If you use this method, ignore the calibration procedures described previously and allfurther examples of probe calibration.

Program formatStandard call G65P9023....inputs....

M-code call M143....inputs....(recommended if an M-code shortcut is to be used).

Page 9: Easy Probing Renishaw

Measuring a single surface 7

Publication No. H-2000-6181

Measuring a single surface

Description

This cycle is used to measure a single surface feature. It is also used to calibrate thelength of a probe.

Application

Position the probe stylus (using either the jog or handwheel mode) to a start point that isclear of the surface. Run the cycle, either in MDI mode or by creating a simple partprogram.

Format

[ ] denotes optional inputs

X surface G65P9023Xx[AaC1.QqSsIi]

Y surface G65P9023Yy[AaC1.QqSsJj]

Z surface G65P9023Zz[AaC1.QqSsKk]

Page 10: Easy Probing Renishaw

8 Measuring a single surface

Publication No. H-2000-6181

Example 1: Calibrating the probe length

Inputs required: C1. and Zz (do not use input Dd)

YZ

X

You must set the active co-ordinate system (for example, G54) to the reference surfaceposition before running the cycle.

1. Position the probe stylus approximately 10 mm (0.394 in) above the surface.

2. Run the cycle, either in MDI mode or by creating a simple part program.

O0000;

G65P9023C1.Z-10.; The probe length is set.

Example 2: Measuring the X surface (set G54 to thesurface)

Inputs required: Xx and Ss

1. Position the probe stylus approximately 10 mm (0.394 in) in front of the surface.

O0000;

G65P9023X-10.S54.; Set the G54 to the X surface position.

Page 11: Easy Probing Renishaw

Measuring a single surface 9

Publication No. H-2000-6181

Example 3: Measuring the Z surface (set G54 relative tothe surface)

Inputs required: Zz and Ss

1. Position the probe stylus approximately 10 mm (0.394 in) above the surface.

O0000;

G65P9023Z-10.S54.K50.; Set the Z surface at 50 mm (1.968 in) relativeto the G54.

Example 4: Applying co-ordinate rotation to theZ axis (C axis)

The value of the actual angle recorded (in #139) depends on the order in which themeasurement points are taken, i.e. either P1 before P2 or P2 before P1.

1. Position the probe stylus approximately 10 mm (0.394 in) in front of the angledsurface at the first measuring point.

2. Take a measurement at point P1.

3. Move the probe to point P2, using the same Z position. Take a measurement at thispoint.

NOTE: An alarm is generated if the X, Y and Z positions are changed for P1 and P2.

Page 12: Easy Probing Renishaw

10 Measuring a single surface

Publication No. H-2000-6181

O0000;

G65P9023Y-10.; Y– single surface measure P1.

G0G91X50.Y15.; Move from P1 to P2. You can use either the jog orhandwheel mode to do this.

G65P9023A0Y-10.; Y– single surface P2 measure to find the angle error#144, relative to angle (A=0). The actual angle is in#139.

G68G90C0X0Y0R#144; Apply rotation around the C axis.

NOTE: G68 may be cancelled with G69. The measuring cycles will not run withG68 active.

Example 5: Setting a 4th axis (B axis)

1. Position the probe stylus approximately 10 mm (0.394 in) above the angled surfaceat the first measuring point P1.

2. Take a measurement at point P1.

3. Move the probe to point P2, using the same Y position. Take a measurement at thispoint.

O0000;

G65P9023Z-10.; Z– single surface measure P1.

G0G91X50.Z15.; Move from P1 to P2. You can use either the jog orhandwheel mode to do this.

G65P9023A0Z-10.S54; Z– single surface measure P2.

4. Adjust the G54 (B axis) by the angle error to set the surface to zero (0) degrees.

Page 13: Easy Probing Renishaw

Measuring a feature 11

Publication No. H-2000-6181

Measuring a feature (boss, bore, web, or pocket)

Description

This cycle is used to measure a feature. The feature can be a boss, bore, web, or pocket.The cycle is also used to calibrate the XY axis offsets of a probe and the radii of a probestylus ball.

Application

Position the probe stylus (using either the jog or handwheel mode) to a start point. Runthe cycle, either in MDI mode or by creating a simple part program.

Format

[ ] denotes optional inputs

Boss, bore G65P9023Dd[CcQqRrSsIiJjKk]

X (web, pocket) G65P9023DdXx[CcQqRrSsIiJjKk]

Y (web, pocket) G65P9023DdYy[CcQqRrSsIiJjKk]

Example 6: Calibrating the probe XY offsets and stylusball radii (combined operation)

Use a ring gauge as a reference feature for this operation. You must accuratelydetermine the centre position of the ring gauge before calibrating the probe.

Inputs required: C1. and Dd

1. Position the probe stylus ball in the ring gauge at the measuring height. Align thespindle axis with the exact centre of the gauge.

2. Run the cycle, either in MDI mode or by creating a program.

O0000;

G65P9023C1.D50.002; The size of the ring gauge is 50.002 mm. The XY offsetsand stylus ball radii calibration are set.

Page 14: Easy Probing Renishaw

12 Measuring a feature

Publication No. H-2000-6181

Example 7: Calibrating the probe XY offsets

Use a bored hole as the reference feature for this operation. The centre of the featuremust be generated for accuracy, but the size is not important.

Inputs required: C2. and Dd

1. Position the probe stylus ball in the reference feature at the measuring height. Alignthe spindle axis with the exact centre of the bore.

2. Run the cycle, either in MDI mode or by creating a program.

O0000;

G65P9023C2.D50.; The calibrated XY offsets are set.

Example 8: Calibrating the probe stylus ball radii

Use a ring gauge as a reference feature for this operation. The exact position of thereference feature is not important.

Inputs required: C3. and Dd

1. Position the probe stylus ball in the ring gauge at the measuring height. Align thespindle axis with the approximate centre of the gauge.

Page 15: Easy Probing Renishaw

Measuring a feature 13

Publication No. H-2000-6181

2. Run the cycle, either in MDI mode or by creating a program.

O0000;

G65P9023C3.D50.002; The size of the ring gauge is 50.002 mm. The stylus ballradii calibration is set.

Example 9: Measuring a boss (set G54 to centre)

Inputs required: Dd, Ss and Zz

1. Position the probe stylus on the approximate centre of the feature, andapproximately 10 mm (0.394 in) above the feature.

O0000;

G65P9023D50.Z-15.S54.; Set the G54 offset.

Example 10: Measuring a bore (set G59 to a referredcentre)

Inputs required: Dd and Ss

1. Position the probe stylus on the approximate centre of the feature, and in the boreat the measuring height.

O0000;

G65P9023D50.S59.I50.J50.; Set the centre at X=50 and Y=50 relative to theG59X0Y0.

Page 16: Easy Probing Renishaw

14 Measuring a feature

Publication No. H-2000-6181

Example 11: Measuring a Y axis web (set G54 to centre)

Inputs required: Dd, Ss, Y1. and Zz

1. Position the probe stylus on the approximate centre of the feature, andapproximately 10 mm (0.394 in) above the feature.

O0000;

G65P9023D50.Y1.Z-15.S54.; Set the G54 offset.

Example 12: Measuring an X axis pocket (set G59 to areferred centre)

Inputs required: Dd, Ss and X1.

1. Position the probe stylus on the approximate centre of the feature, and in the pocketat the measuring height.

O0000;

G65P9023D50.X1.S59.I50.; Recommend setting input X = 1. or Y = 1. (butany value can be used). Set the X surface atX = 50 relative to the G59X0.

Page 17: Easy Probing Renishaw

Programming method 15

Publication No. H-2000-6181

Programming methodMacro O9770 can be used for protected positioning moves as described in the followingexamples.

Inputs for protected positioning macro O9770Xx x = X target position.

Yy y = Y target position.

Zz z = Z target position.

Ff f = Feedrate (the default is set in O9023).

M1. = Set an error flag #148=1 (triggered) or =0 (no trigger). Noalarm generated. This can be used for testing whether a surfaceexists.

Examples 13 and 14 below describe how to use the cycles when they are written into apart program.

Example 13: Setting a part origin in a bore and top faceO????

M6T20; Select the probe.

G54;

G43Z100.0H20 Apply probe length offset.

G65P9023M1.; Switch probe on.

G65P9770X0Y0Z10.F5000.; Protected move to the centre of the bore.

G65P9770Z-10.; Protected move to the measuring position.

G65P9023D30.S54.M2.; Measure and set the bore to G54X0 Y0.

G65P9770Z10.; Protected move.

G65P9770X25.; Protected move.

G65P9023Z-10.S54.K1.M2.; Set the Z surface to 1 mm (0.040 in) above theG54Z0 position.

G65P9023M3.; Switch probe off.

G0Z100.; Retract.

Page 18: Easy Probing Renishaw

16 Common retained variables

Publication No. H-2000-6181

Example 14: Setting a 4th axis (A axis)O????;

M6T20; Select the probe.

G54;

G43Z100.0H20 Apply probe length offset.

G65P9023M1.; Switch probe on.

G65P9770X0Y-25.Z10.F5000.; Protected move to the first measurement point.

G65P9023Z-10.M2.; Z- single surface measure.

G65P9770Y25.; Move along the Y axis parallel to the surface.

G65P9023A90.Z-10.S54.M2.; Z- single surface measure.Adjust the G54 A axis by the angle error to setthe surface to zero (0) degrees.

G65P9023M3.; Switch probe off.

Common retained variablesThe common retained variables used depend upon the inspection software option that isselected during the initial generation of the EasyProbe software.

● Variables for Inspection Plus software are used when either:

● No Renishaw inspection software is currently installed, or

● Renishaw Inspection Plus software is currently installed.

● Variables for the standard Renishaw inspection software are used when thestandard inspection software is currently installed.

Inspection Plus calibration data variables

Each of the following values is found during the calibration process.

#500 = X axis stylus ball radius.

#501 = Y axis stylus ball radius.

#502 = X axis stylus ball centre offset.

#503 = Y axis stylus ball centre offset.

Page 19: Easy Probing Renishaw

Common retained variables 17

Publication No. H-2000-6181

#506 = Stylus backoff factor adjustment.This should be optimised during installation. Reducing the valuedecreases the distance the stylus will back off from the surface beforemaking a final measuring move. When the software is set for a one-touchmeasuring move, #506 is not used. (See the section “Customising thesoftware”, variable #118.)

Standard inspection calibration data variables

Each of the following values, with the exception of #506, is found during the calibrationprocess.

#500 = X+ axis stylus ball radius.

#501 = X– axis stylus ball radius.

#502 = Y+ axis stylus ball radius.

#503 = Y– axis stylus ball radius.

#504 = X axis stylus ball centre offset.

#505 = Y axis stylus ball centre offset.

#506 = Stylus backoff factor adjustment.This should be optimised during installation. Reducing the valuedecreases the distance the stylus will back off from the surface beforemaking a final measuring move. When the software is set for a one-touchmeasuring move, #506 is not used. (See the section “Customising thesoftware”, variable #118.)

NOTE: When EasyProbe files are generated using the Haas USA option, the rangeof common variables (#100) and common retained variables (#500) are differentfrom those shown above.

When using this option, all #100 variables are incremented by 50 and the #500variables by 56. For example, the 4th axis system number setting variable #115becomes #165 and the probe tool offset number variable #120 becomes #170.Similarly, the X+ axis stylus ball radius #500 becomes #556 and the backoff factor#506 becomes #562.

This is to comply with current Haas USA recommendations for probe variable useand should avoid conflicts with other systems on the machine.

Page 20: Easy Probing Renishaw

18 Customising the software

Publication No. H-2000-6181

Customising the softwareCustomising features are provided in the macro O9023 (REN START/SETUP). Thisinvolves adding suitable probe start and stop codes, and editing the default values ofsome of the common variables used in the software.

(START CODES) Enter suitable start-up codes at the top of the macro, whenapplicable, to switch on the probe. A spindle orientation code, M19,is already included to consistently position the spindle correctly eachtime the cycles are used.

Start codes will usually be M-codes.

(STOP CODES) Enter suitable stop codes at the end of the macro, when applicable,to switch off the probe.

Stop codes will usually be M-codes.

#115 = 4th axis system number setting and direction (i.e. clockwise orcounter-clockwise). This must be set during the installation if using a4th axis option (see the section “Testing the software”). The settingis dependent on the following factors:

● The type of 4th axis used.● Where it is located or how it has been installed.

NOTE: If no 4th axis is being used, it is important that the defaultvalue of zero (0) is left set.

#116 = This is used to read and apply the active tool offset values.

#118 = Measuring feedrate. The default value of 30 mm/min (1.181 in/min)is suitable for general applications on most machines using atwo-touch measuring move.

NOTES: Feedrate values must always be entered in mm/min, evenif the Imperial (inches) mode is being used on the machine.

Be aware that measurement accuracy can be compromised byincreasing the measuring feedrate (see the section “Testing thesoftware”).

Machines with an ‘High Speed Skip’ (fast) measuring input can berun at faster feedrates – typically 500 mm/min to 1000 mm/min(20 in/min to 40 in/min).

Page 21: Easy Probing Renishaw

Testing the software 19

Publication No. H-2000-6181

Once the feedrate is increased above 100 mm/min (3.94 in/min), thecycles change to one-touch measuring. Tests may be required tofind the optimum feedrate for your application.

#119 = Fast feedrate used for protected positioning in XY axis (default5000 mm/min).

Calculated: Z axis is (#119*.6=) 3000 mm/min.

First-touch measure is (#119*.3=) 1500 mm/min.

#120 = Fix the probe tool offset number used for the measuring cycles(default = 20). This must be set during installation (see the section“Testing the software”).

The common variables listed below are also used by the EasyProbe software.

#123 Used for internal calculation or a similar purpose. to = Not normally of concern to a user.#132

#135 Used for cycle output results to = (see "Common variables used for cycle output results" for details).#148

Testing the softwareAfter you have finished customising the software, or even if no changes have been made,you should carefully run the cycles to make sure they are compatible with the machine.You are recommended to carry out each of the tests described below as appropriate.

Test 1: Z axis moves

Run a Z measure cycle clear of any obstruction (ideally at the Z home position). Checkthat the axis only moves the incremental programmed distance, and not a large value thatincludes the probe length.

If the probe is not triggered, a ‘Probe Fail’ alarm should occur at the end of the move.

Run this test in MDI mode and under program operation. Also run this test immediatelyafter switching on the machine but before you have selected a tool offset.

Page 22: Easy Probing Renishaw

20 Testing the software

Publication No. H-2000-6181

Test 2: Measuring accuracy

Test that the measuring accuracy is suitable for your application. You must do this if youhave changed the default measuring feedrate.

This test is usually achieved by making repeated measurements on a surface, whilestarting the moves from different standoff positions.

Test 3: Fast feedrate optimisation

Test that the fast feedrates are optimised for your machine. For safe operation themachine must be able to stop during a measuring move within the overtravel of the probe.The default feedrate values used are usually suitable for small to medium size machines.

TIP: Test the feedrate by positioning the probe stylus to trigger during a skip move on theedge of a surface, so that the stylus will skid off the surface and prevent excessiveovertravel.

Test 4: Updating the work offset

If the 4th axis measuring feature is to be used, check that the correct work offset isupdated and that it is applied in the correct direction, i.e. clockwise or counter-clockwise.

The axis direction and axis number are set inside macro O9023 using #115 = 4, 5 etc. or#115 = -4, -5 etc.

.

Page 23: Easy Probing Renishaw

Inputs 21

Publication No. H-2000-6181

Inputs

For single surface setting – G65P9023 (no Dd input)

NOTES:[ ] denotes optional inputs

* denotes macro A keyboard inputs (Fanuc controllers only)

[Aa] a = Use this only when measuring an angle. Enter the nominal angle of the[Ba *] surface (±90 degree range). Make two surface measures along the

surface. This input must be used for the second measure (see the section“Angle data”).

[C1.] = Indicates a calibration cycle. This is used to adjust the probe tool length[Fc *] offset.

Xx x = Approximate distance and direction to the X surface.

Yy y = Approximate distance and direction to the Y surface.

Zz z = Approximate distance and direction to the Z surface (usually a minusvalue).

For feature setting – G65P9023 (with Dd input)

Dd d = The nominal size of the feature for measuring a bore/boss or aweb/pocket.

C1. = Complete calibration in one operation, as described in C2. and C3. below.orC2. = Calibrate the stylus in the XY axes for stylus ball-to spindle centre lineor offsets.C3. = Calibrate the stylus ball radius offsets in the XY axes.

X1. = Indicates measuring a web/pocket in the X axis.orY1. = Indicates measuring a web/pocket in the Y axis.

Zz z = Incremental distance and direction to the measuring position in the Z axis(usually a minus value). If this is omitted, a bore or pocket cycle isassumed.

Page 24: Easy Probing Renishaw

22 Inputs

Publication No. H-2000-6181

Optional inputs – G65P9023

Probe switch-on/switch-off codes

Mm 1. = Switch probe on only. (No measure cycle.)

2. = Inhibit probe on/off codes. (Run measure cycle.) Include this input in aprogram if the cycle is to be run a number of times. This will prevent theprobe from being switched on and off.

3. = Switch probe off only. (No measure cycle.)

Other codes

Qq q = The overtravel of the probe for use whenever the default value is notsuitable.

Default values =5 mm (0.197 in) for XYZ measurements.10 mm (0.394 in) for feature measurements.

Rr r = The radial clearance between the stylus and the side of the feature. Useonly to measure an external feature (i.e. web or boss).

Default value = 10 mm (0.394 in)

-r = Use a negative value to run an internal web or boss cycle.

Page 25: Easy Probing Renishaw

Inputs 23

Publication No. H-2000-6181

Ss s = The work offset number that is to be set.S54 to S59 (G54 to G59 Fanuc/Meldas, and G54P1 to G59P1 Yasnac)S53 external work offset (S52 on Haas)

Fanuc additional offsetsS101 to S400 (G54.1P1 to G54.1P300)

Meldas additional offsetsS101 to S148 (G54.1P1 to G54.1P48)

Haas additional offsetsS110 to S129 (G110 to G129)S154.01 to S154.99 (G54P1 to G54P99)

Yasnac additional offsetsS54.02 to S59.05 (G54P2 to G59P5) MX3, J50 seriesS54.02 to S59.05 (G54P2 to G59P5) I80, J300 series

Ii I = Required X set position of the feature.Default value = zero (0).

Jj j = Required Y set position of the feature.Default value = zero (0).

Kk k = Required Z set position of the feature.Default value = zero (0).

Page 26: Easy Probing Renishaw

24 Angle data

Publication No. H-2000-6181

Angle dataThe normal mathematical convention for angles is used. This means the specified angleor resultant angle is a positive (counter-clockwise) angle (see the following figures).

This may cause confusion on a machining centre where the normal operator viewpoint isfrom the Y– direction (typical) for rotations around the Y axis.

Output – angle (#139)

The cycle calculates the angle using the controller ATAN function, without anymanipulation of the result.

This is an absolute value that is measured as follows:

● ‘A axis’ rotation (around the X axis) is measured from the Y+ axis.

● ‘B axis’ rotation (around the Y axis) is measured from the X+ axis.

● ‘C axis’ rotation (around the Z axis) is measured from the X+ axis.

Output – angle error (#144)

The cycle calculates the angle error from the ‘Aa input’ angle. The result is always givenin the range ±90 degrees.

4th axis work offset adjustment

This is always adjusted by the #144 value, which means the shortest distance (angleerror) used for the update.

To change the update direction to the 4th axis, see the section “Customising thesoftware”, variable #115.

Page 27: Easy Probing Renishaw

Alarms 25

Publication No. H-2000-6181

AlarmsMessage 91 FORMAT ERROR

591 FORMAT ERROR

Action Correct the macro input line and run again.(This is a reset condition.)

Message 92 PROBE OPEN592 PROBE OPEN

Action The probe is not switched on, or the stylus is in contact with a surfacebefore trying to make the move, or the probe triggered during a move.Correct the error and try again.(This is a reset condition.)

Message 93 PROBE FAIL593 PROBE FAIL

Action The probe did not hit the surface during the measure move, or the signalis not received or actioned by the control.

This alarm is sometimes given if the surface is hit close to the targetovertravel limit. The condition gets worse with higher measuringfeedrates.

Correct the error and try again.(This is a reset condition.)

Message 95 ANGLE DATA ERROR595 ANGLE DATA ERROR

Action The macro could not process the angle data provided.

Reasons:

● Two surface measurements are taken at the same position.

● Only one axis positioning move is allowed (not counting themeasuring axis) between the two surface measuring points.

● Using the Aa input when not trying to measure an angle.

Position correctly from the current position, and try again. (This is a resetcondition.)

Page 28: Easy Probing Renishaw

26 Common variables used for cycle output results

Publication No. H-2000-6181

Common variables used for cycle output results#135 = X actual position output.

#136 = Y actual position output.

#137 = Z actual position output.

#138 = Size of feature output.

#139 = Absolute angle output (see the section “Angle data”).

#140 = X position error output.

#141 = Y position error output.

#142 = Z position error output.

#143 = Size error output (for feature measurement) or height difference output(for angle measurement).

#144 = Angle error. This is relative to the Aa angle specified. The result is alwaysin the range ±90 degrees (see the section “Angle data”).

#148 = Macro O9770 flag (0 = no trigger, 1 = triggered). Indicates whether theprobe has triggered during the move.

Page 29: Easy Probing Renishaw

Renishaw plc

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

T +44 (0)1453 524524 F +44 (0)1453 524901 E [email protected]

www.renishaw.com

For worldwide contact details,

please visit our main web site at

www.renishaw.com/contact

*H-2000-6181-0B*