100% found this document useful (1 vote)
1K views52 pages

M&H Probing Manual

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views52 pages

M&H Probing Manual

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

USER MANUAL

m&h Touch Probes


Measuring Cycles for Milling Machines with FANUC-Control

UM-WP-V1.00-FAN-2612-EN.doc
Subject to change without notice
© 2012 Hexagon Metrology - Part of Hexagon Group. All rights reserved.
RO 2010 / CW 0511 / TH 4111 / GI2612

UM-WP-V1.00-FAN-2612-EN.doc
2
Table of Contents

Table of Contents

1 General Information ..........................................................................................................................................5

1.1 Procedure ......................................................................................................................................................5


1.2 General triggering procedure .........................................................................................................................5
1.3 Tool length compensation .............................................................................................................................7
1.4 Spindle orientation .........................................................................................................................................7
1.5 MDI Mode ......................................................................................................................................................7

2 Adjustment and Calibration of Touch Probe ..................................................................................................8

2.1 Aligning of stylus to spindle centre ................................................................................................................8


2.2 Calibration of Touch Probe ............................................................................................................................9

3 Start-up Cycle ..................................................................................................................................................10

3.1 O9100: Start-up cycle ..................................................................................................................................10


3.2 Internal settings and variables .....................................................................................................................11
3.3 Reading the start variables ..........................................................................................................................12

4 Calibration Cycles ...........................................................................................................................................13

4.1 Cycle O9107: Calibrate Length ...................................................................................................................13


4.2 Cycle O9108: Calibrate Radius ...................................................................................................................15
4.3 Example calibrate length and radius of probe .............................................................................................18

5 Positioning Cycle ............................................................................................................................................19

5.1 Cycle O9113: Protected Positioning ............................................................................................................19

6 Measurement Cycles .......................................................................................................................................20

6.1 Description of used common variables........................................................................................................21


6.1.1 Variable A_. Start Angle ......................................................................................................................21
6.1.2 Variable C_. Touch Counter ...............................................................................................................22
6.1.3 Variable E_. Measuring Path ..............................................................................................................23
6.1.4 Variable F_. Touching Function ..........................................................................................................23
6.1.5 Variable H_. Probe Number ................................................................................................................25
6.1.6 Variable U_. V_. W_. Tolerances........................................................................................................25
6.1.7 Variable T_. Tool Number ...................................................................................................................25
6.2 Cycle O9112: Measure single point.............................................................................................................26
6.3 Cycle O9110: Measure centre point ............................................................................................................30
6.3.1 Measuring a bore ................................................................................................................................32
6.3.2 Measuring a boss ................................................................................................................................32
6.3.3 Measuring a web .................................................................................................................................32
6.3.4 Measuring a pocket .............................................................................................................................33
6.3.5 Measuring a circle or an arc................................................................................................................33
6.4 Cycle O9114: Measure corner .....................................................................................................................34

UM-WP-V1.00-FAN-2612-EN.doc
3
Table of Contents
th th
6.5 Cycle O9115: Measure rotation in 4 or 5 axes ........................................................................................37
6.6 Examples .....................................................................................................................................................39
6.6.1 Measuring of distance between two bores .........................................................................................39
6.6.2 Measuring bores on a pitch circle diameter (PCD) .............................................................................40

7 Additional Cycles ............................................................................................................................................41

7.1 Cycle O9109: Printing of measurement results ...........................................................................................41


7.2 Cycle O9121: Modifying work coordinate system .......................................................................................42

8 Error Messages................................................................................................................................................43

8.1 Error messages from machine control.........................................................................................................44

9 Appendix ..........................................................................................................................................................45

9.1 Checks before installation ...........................................................................................................................45


9.2 List of cycles ................................................................................................................................................46
9.3 Used variables .............................................................................................................................................47

10 Information ..................................................................................................................................................48

10.1 Contact ........................................................................................................................................................48


10.2 Safety Guidelines.........................................................................................................................................48
10.3 Copy and Trademark Rights ........................................................................................................................49
10.4 Licensing Terms ..........................................................................................................................................49

UM-WP-V1.00-FAN-2612-EN.doc
4
General Information

1 General Information

This manual describes how to use a probe for measuring on a machining centre with a FANUC control. It shows
the conditions needed to achieve accurate probing results. There is a description for each measuring cycle plus
an example of using the cycle with different input values used. With these cycles it is possible to check a position,
a feature on your workpiece or update work coordinates. For better understanding, there are examples for using
the measuring results feature to feature to calculate the distance between two bores, check the deviation
tolerance between workpiece orientation and work coordinates or check the tolerance of a bore.
Up to three probes can be handled by the cycles. It is possible to measure using vectors in the X/Y plane. For
these features up to 134 free variables are needed in the range between #500 and #999. It is possible to measure
using programmable spindle orientation, if this feature is available on your machine.

1.1 Procedure

A touch probe is changed into the spindle of the machine like any other tool. After manually pre-positioning to the
workpiece, the desired measuring cycle is called from the machine control.
When the touch probe touches the workpiece,
■ it sends a signal to the control and the coordinates of the triggered positions are saved.
■ at the same time the moving axis stops and
■ the touch probe returns at a defined rapid traverse rate to the starting position of the triggering procedure.

1.2 General triggering procedure

The cycles are subroutines running automatically, depending on the assignment of several parameters.
Using measurement cycles, certain points of the workpiece are triggered with the touch probe and corresponding
coordinates are processed.

UM-WP-V1.00-FAN-2612-EN.doc
5
General Information

Routine:
1. Position the touch probe at the starting position
2. Input measuring parameters
3. Start / Call up the measurement cycle
4. Touching the workpiece / Measurement
5. Touch probe returns to starting position

Spindle

Workpiece
Z X
Touch
Probe
Y

Measuring start point

Measuring point

Probing cycles
This manual describes following main sections:
■ Calibration
■ Protected positioning and
■ Measuring

The measuring section shows cycles for measuring a single surface, centerlines, edge or corner and rotation
around B & C axes.
Different conditions must be met before a measuring cycle can run. The probe must be in the spindle and
calibrated in the correct measuring orientation. The probe must be calibrated before it can be used for measuring.
For measuring it is important to know the exact stylus ball radius and the tool length offset must have been
applied in the correct measuring orientation.

There are different machine requirements for the probe to work correctly
■ The cycles and programs are designed for a machining centre.
■ The software automatically detects the mode (inch/mm) the control is using.
■ Measuring data can be printed out via the RS232 port. A parameter needs to be set in the program call for
this function to work.

UM-WP-V1.00-FAN-2612-EN.doc
6
General Information

Attention
All cycles have to be started when the touch probe is positioned at the safe height set by the value R.
All movements of the probe to the start position of the cycle will first be in X/Y and then in Z to the
safe position R. The probe then moves to the measuring position set by Z. At the end of every measuring cycle
the probe moves to the safe position R. All movements of the probe should be done carefully using cycle O9113
“Protected positioning”.

1.3 Tool length compensation

Tool length compensation must be called by G43 command before any measuring cycle begins.
The command of the G43 call depends on the machine and control and must be done by the user.

1.4 Spindle orientation

The spindle orientation is called by M19 S[angle] command. If the control uses a different M code, the cycles must
be altered to suit the control.

1.5 MDI Mode

The cycles can also be used in MDI mode.


The probe must be moved by hand to the start position for measuring. The cycle finishes with the Z axis at the
original start position, if no additional Z value is set. To make cycle handling easier, there are several default
settings. They are described in the cycles.

You must type in MDI mode

G65 P[Program number] [additional variables]

and press the button “cycle-start”


If measuring in Z axis, it is first necessary to apply tool length compensation.

UM-WP-V1.00-FAN-2612-EN.doc
7
Adjustment and Calibration of Touch Probe

2 Adjustment and Calibration of Touch Probe

Before measuring, touch probe details must be entered into the tool table. For tool length, enter the approximate
length of the touch probe. For tool radius, enter the radius of the touch probe stylus ball. For special features such
as probe activation, check the specific machine features and machine manuals.

To achieve the best measuring accuracy, it is necessary to adjust and calibrate the touch probe system at:
■ Initial start-up after the probe has been installed
■ If the break shaft has been broken or changed
■ If the stylus has been broken or changed
■ If the value in the variable for measuring feedrate has been changed
■ External influences such as thermal growth have affected the machine.

2.1 Aligning of stylus to spindle centre

Before calibration can take place, it is necessary to examine and if necessary align
the stylus runout with a dial gauge. Information concerning alignment of the stylus
can be found in the operating instructions of the probe.
Ensure that the runout is less than 5µm.

UM-WP-V1.00-FAN-2612-EN.doc
8
Adjustment and Calibration of Touch Probe

2.2 Calibration of Touch Probe

Because there is a short delay between when the probe touches and axis movement is stopped, calibration of the
probe is necessary. By finding the amount of this movement, the switching characteristics of the probe are
determined.
During calibration the probe centre offset is established and stylus ball radius, effective probe length plus
response time between probe and control are determined.
The cycles are designed to run at 90 degree increments in the X and Y planes or at any angle in the X/Y plane
with vector measuring.
It is possible to use three different probes at the same time with these cycles.

X and Y coordinates
Y If you are working with programmable spindle orientation you only need to find the
approximate position of the centre of the calibration ring.
For machining centers without programmable spindle orientation it is necessary to
determine the exact X and Y axis centerline positions of the calibration ring. Use a
dial gauge in the machine spindle and find the centre of the ring and make a note
X of the values.

Z coordinate
Find the Z datum position using a setting tool with a known length or use the
dimension from the spindle nose to the top of the calibration ring.
Next, load the coordinates for the centre of the calibration ring and the ring
position in Z into an available work coordinate.
Z

UM-WP-V1.00-FAN-2612-EN.doc
9
Start-up Cycle

3 Start-up Cycle

3.1 O9100: Start-up cycle

The start-up cycle has to be run once to set all the defaults for the m&h measurement cycles.

O9100 B_.[ C1.] D_. [E5.] F_. [H0.01] R[4500.] S[250.]W[1.1]


FANUC-11/12 B3.
FANUC-15 with up to 200 tool offsets B4.
FANUC-15 with more than 200 tool offsets B5.
B_. FANUC Model
FANUC-16i/18i with one offset setting per tool B6.
FANUC-0i/16i/18i with geometry and wear offsets B7.
FANUC 30i/31i/32i B8.
This value is used to get the best result by making several
C1.-
touches and calculating the average. This value can be
C_. Touch Counter C7.
over-written by the probing cycles.
C1. by default
On FANUC only one entry possible D1.
(length or radius)
Selection of the offset One entry (length or radius) with one additional value D2.
D_.
Type of the control (wear)
Input of length and radius possible with additional values D3.
(wear)
Maximum measuring path to calculate measuring distance before
and after the touch point
E_. Measuring Path
This value can be overwritten by the probing cycles.
E5. by default.
X/Y Calibration without programmable spindle orientation F1.
X/Y Calibration with programmable spindle orientation F2.
F_. Kind of Calibration
Vector calibration without programmable spindle orientation F3.
Vector calibration with programmable spindle orientation F4.
If the difference between the minimum and the maximum exceed this
H_. Maximum Deviation value the cycle will stop and an error will occur.
H0.01 by default
Setting of positioning feedrate
R_. Positioning Feedrate
R4500. in mm/min by default.
Setting of actual measuring feedrate
S_. Measuring Feedrate
S250. in mm /min by default.
Distance the probe moves away from the trigger point. This
value is very important if the touch counter is greater than
1. and the reaction of the control is very slow. For example
W_. Retract Value 1.-E
if you are working with ordinary skip, the value must be
equal to or lower than the E-value and greater or equal to
1mm. Optional default is 1.1mm

After running the start-up cycle you must calibrate all probes under the new conditions using cycles O9107 (X/Y)
and cycle O9108 (Z).
The F variable specifies the behaviour for all measuring cycles. If possible, use vector calibration with
programmable spindle orientation (F4.).

UM-WP-V1.00-FAN-2612-EN.doc
10
Start-up Cycle

3.2 Internal settings and variables

The variables used by the probing cycles are saved in an area you can specify by changing the following line
inside the O9100 cycle:
The value of variable #32 (Value 500. see example) sets the start value of the first variable which is used for the
basic settings and the results.

N1 #32 = 500. (START-VALUE- USE-UP-TO-134-VARIABLES)

The following table shows the last possible start variable under the different conditions:
Type of Measuring Number of Probes Variables Needed Last Start Variable
X/Y direction only 1 24 500. small storage
X/Y direction only 1 24 975
vector 1 57 942
vector 2 95 904
vector 3 133 866

Reading measuring result and error flags.


The measuring results are located in the following variables
#500 Internal error number – this value will be set to 0 if no error is found
#501 Measuring result in X axis
#502 Measuring result in Y axis
#503 Measuring result in Z axis
#504 Diameter or angle of the measuring result
#505 Error flag (refers to the S-Value)

The start variable (#500) depends on the setting made in cycle O9100 on line N1. By default it will be 500.

Home Position
(******HOME-POS-Z******) If an error occurs, the probe will move with the command G28G91Z0
…. to the home position. This line is at the beginning of cycle O9103.
G28 G91 Z0. If the machine is not able to use this command then please change
N2 this line.

UM-WP-V1.00-FAN-2612-EN.doc
11
Start-up Cycle

3.3 Reading the start variables

You can use the following cycle to set the start variables to a variable of your choice and then work with this
variable. The value will be saved in the B-variable

Remember
Do not overwrite any variables or settings of other programs such as spindle probing, tool setter or 3D
Form Inspect cycles.

G65 P9100 A6.B___.

Example:
If you want to save the variable in your own Variable 110 you have to call the following cycle

G65P9100 A6.B110.

With #[#110+1.] you can read the measuring result in X


With #[#110+2.] you can read the measuring result in Y
With #[#110+3.] you can read the measuring result in Z
With #[#110+4.] you can read the measured diameter or angle.

UM-WP-V1.00-FAN-2612-EN.doc
12
Calibration Cycles

4 Calibration Cycles

If the startup settings have been loaded by running cycle O9100, you can now calibrate the probe length with the
Z calibration cycle O9107 and the probe radius or vector with calibration cycle O9108. A new probe or a new
probe configuration must be calibrated first in length and then in radius or vector. The cycles can be repeated at
any time.

4.1 Cycle O9107: Calibrate Length

This cycle is used to calibrate the length of the probe.

O9107 [H1.] [M_.] T_. [X0] [Y0] Z_. W_.


The probe number can be H1., H2. or H3..
H2. and H3. can only be set if you have the storage size
H_. Probe Number
from #500 to #999 and calibration using vector
H1. by default.
If you need a special M-code to activate the probe, set the value
here. By default no code is set. This value +1 will be used to switch
M_. Probe Activation Code
the probe off. If you use several probes this code will be the same for
all probes
T_. Tool Number The tool number is the number of the probe in the tool holder
Optional
X_. Position in X-axis X position where the probe is moved to calibrate in the Z axis
X0 by default
Optional
Y_. Position in Y-axis Y position where the probe is moved to calibrate in the Z axis
Y0 by default
Z_. Exact Position Z Z position in the work coordinate where calibration is made
The length of the probe can be found in the operating instructions of
the probe. You must add the shank and body length, break shaft,
W_. Approximate Probe Length
any extension, any adapters plus the stylus.
A positive value must be loaded.

UM-WP-V1.00-FAN-2612-EN.doc
13
Calibration Cycles

Example for MDI mode: G65P9107 T_. Z_._ W_._

The Probe moves in X/Y to a position above the measuring touch point. Next the
probe moves to the safe position Z+2*E. If the probe triggers against an obstacle,
the cycle will stop and an error will be shown. At measuring speed the probe
touches once on the surface of the calibration ring to find its true length. If there is
no trigger within a distance of Z – E the cycle will stop and an error message will
Z Z+2*E be shown. While the cycle is running tool length compensation must not be active.

Z
At the end of the cycle the tool length will be saved in the tool table.

X/Y
X/Y

During calibration, no tool length compensation should be active!

All axis moves of the probe inside the cycle are made in G31 (protect) mode. All movement above Z + 2 * E is
made at positioning feedrate.

The tool number will be saved in the value:

Start_Variable + 19. + (Probe_Number – 1) * 38

The tool length will be saved in the value:

Start_Variable + 20. + (Probe_Number – 1) * 38.

A bidirectional touch probe is switched ON and OFF by two M-Functions.


This M-Function is set by the variable M_. The probe will be switched ON by this M-Function and will be switched
OFF with the direct subsequent value.
(Example: M85 = ON / M86 = OFF)

This setting will be done for all probes. If the M-Function for switching OFF the probe is not the subsequent value
from the M-function used for switching ON, the user must set the M-function themselves before starting the
measuring cycle.

UM-WP-V1.00-FAN-2612-EN.doc
14
Calibration Cycles

4.2 Cycle O9108: Calibrate Radius

This cycle is used to calibrate the probe, determine the radius of the stylus ball and find the probe trigger point.

O9108 H[1.] X[0] Y[0] Z_. D_. W_.


The probe number can be H1., H2. or H3..
H2. and H3. can only be set if you have the storage size from #500 to
H_. Probe Number
#999 and you want use the vector calibration.
H1. by default.
X work coordinate position where the centre of the calibration ring is
located. Only needed precisely if your machine doesn’t have
X_. Position in X-Axis
programmable spindle orientation.
X0 by default.
Y work coordinate position where the centre of the calibration ring is
located. Only needed precisely if your machine doesn’t have spindle
Y_. Position in Y-Axis
programmable orientation.
Y0 by default.

Z_. Position in Z-Axis Position in Z where the radius calibration can take place

Diameter
D_. Diameter of the stylus ball is needed to set the calibration values
of the probe stylus ball
Exact diameter The exact diameter (normally printed on the calibration ring) is
W_.
of the calibration ring needed.

UM-WP-V1.00-FAN-2612-EN.doc
15
Calibration Cycles

Example for MDI mode: G65P9108 Z_._ D_._ W_._

The centre of the calibration ring can be found by the


calibration cycle. For this, the machine must have
programmable spindle orientation. The F value in the start-
up cycle O9100 must be set to 2. or 4. if you are using
programmable spindle orientation. The spindle orientation is
Y called in the cycle with M19S[angle].
R
Z The center point in X/Y must be less than 10 mm from the
W exact centre of the calibration ring. If no touch point is found
X
or the probe triggers against an obstacle, an error message
will be shown and the cycle will stop.

The probe moves in X/Y to the start position set by the input values then it moves in Z to the safe position Z+2*E
and from this point the probe moves down inside the calibration ring. The first two touches will be made in X+ and
in X-. The X value of the touch point will be used to calculate the centre of the calibration ring in X. This point will
be the new start position in Y. The procedure will be repeated for the Y direction to find the exact centre of the
ring in the Y direction. The exact position of the calibration ring in X will then be found by additional touches in X+
and X-. All movement inside the ring will be done at the measuring feedrate set by the startup cycle. This part of
the cycle will finish with the probe in the centre of the calibration ring.

If you calibrate without spindle orientation, the cycle starts by moving the probe in X/Y to the exact centre of the
calibration ring. Then the probe moves in Z to the safe height of Z + E. These movements are made at positioning
feedrate. All touches inside the ring will be made at measuring feedrate. The movement between the touch points
is done at positioning feedrate.

Two different calibration cycles are available


■ The movement of the probe into the calibration ring and between touches for both features is the same. All
movements are protected. If an obstruction is hit, the cycle will stop with an error message. An exception is
the move back away from the trigger point.
■ Touching will always start at the safe height of Z + E. The probe moves inside the calibration ring in Z and
touches several times depending on the C value set in the startup cycle. If you are working with
programmable spindle orientation (F2.) the probe will always touch on the same point of the stylus. The
average of the touch values will be used for the calibration result. The probe moves directly to the next touch
point. There must be no obstruction inside the calibration ring.

UM-WP-V1.00-FAN-2612-EN.doc
16
Calibration Cycles

Calibration on 4 points
Calibration of the probe on 4 points only is determined by the F
value in the start-up cycle if it is set to 1. or 2. Calibration will be
D made with 4 touches. The probe touches in X+, Y+, X- and Y-

X Z
inside the calibration ring. After touching the last point in Y- the
Z+E

Z
probe moves in Z to the safe position.
W

Y X/Y

The calibration trigger values will be saved in


X+: Start_Variable + 21.
Y+: Start_Variable + 22.
X-: Start_Variable + 23.
Y-: Start_Variable + 24.

Calibration by vector
Calibration by vector is used if measuring in X/Y plane at different
angles. It is possible to measure with up to three different probes.
The F value in the start-up cycle must be set to F3. or F4.
D
Measuring will be made every 10 degrees and starts in the X+
Z Z+
direction moving anti-clockwise. The probe may touch several
Z
W times depending on the C value set in the startup cycle.
X/

Calibration values will be saved in


Start_Variable + 20. + (Probe_Number – 1) * 38. + Angle / 10.

UM-WP-V1.00-FAN-2612-EN.doc
17
Calibration Cycles

4.3 Example calibrate length and radius of probe

After entering the approximate length of the probe into the tool offset, it is necessary to write and run the following
program in automatic mode. You must specify the values of the variables which are explained next.
Probe number 1 will be calibrated. For calibration, work offset G59 is used. The default start-up cycle is used. The
positioning feedrate will be 4500mm/min and measuring feedrate will be 250mm/min.

All probes will be calibrated with vector measuring. The maximum deviation allowed is 10µm. Each point will be
touched three times and the average will be used as the result.

The probe is tool number 4 and the distance between the spindle nose and the touch point in Z is 488.301mm. To
make it easier this value will be set in the G59 work offset. The Z touch position in X/Y is X25mm and Y0mm. The
approximate length of the probe is 195mm. The diameter of the calibration ring is 39.999mm.
The centre of the calibration ring is located at X0 Y0 and the top surface of the ring is at Z0

% Description
O1500 Program number
(CYCLES-CALIBRATION--G59-STARTUP-Z-X/Y)
G59 Work coordinate G59
T4 M6 Load probe into the spindle
G43H0 Cancel any tool length compensation
G65 P9100 B8. C3. D1. E5. F4. H0.01 R4500. Default setting for measuring cycles
S250.W1.
G65 P9107 H1. T4. W195. X25. Y0. Z0. Calibrate probe length in Z
G43H4G91Z-0.001F100 Apply tool length compensation
G65 P9108 D5. H1. W39.999 X0 Y0 Z-5. Calibrate stylus ball radius in X/Y plane
G28 G91 Z0. Move probe to home position
M30
%

UM-WP-V1.00-FAN-2612-EN.doc
18
Positioning Cycle

5 Positioning Cycle

5.1 Cycle O9113: Protected Positioning

Using O9113 the probe can move in a controlled way from one point A to another point B. If the stylus is deflected
during this move, the axis is stopped immediately.

O9113 [X_. ][Y_. ] [Z_. ] [M_.] [F_.]


X_. Required X axis position
Data is optional.
Y_. Required Y axis position
At least one coordinate must be written
Z_. Required Z axis position
M1. Move in Z first and then in the X/Y plane
M_. Type of movement M2. Move directly to the destination point in XYZ
M1. by default.
Optional: If no feedrate is used, the positioning feedrate already
F_. Moving feedrate
set is used

Example for MDI mode: G65 P9113 X_._ Y_._ Z_._ F_

■ O9113 is not modal.


■ The active unit (inch or metric) is used by O9113
■ If there is a probe trigger during a protected positioning move, EMERGENCY STOP occurs and an error
message appears on the screen.
■ If the actual Z value is below the programmed Z value and M1 is set, the probe moves first in Z to the
programmed Z value and then in X/Y.

UM-WP-V1.00-FAN-2612-EN.doc
19
Measurement Cycles

6 Measurement Cycles

In the following section the m&h measurement cycles for milling and machine centers are described.

There are four main cycles for probing.


1. Cycle O9112
Measure single point: to find the position of a point on a workpiece in X, Y or Z axes.

2. Cycle O9119
Measure center point: to determine the position of a bore, boss, web or pocket.

3. Cycle O9114
Measure corner: to find the position of a corner. Depending upon application, different measuring tasks
can be achieved with these functions.

4. Cycle O9115
th th
Measure rotation in 4 or 5 axes: If your machine has an A, B or C axis it is possible to correct the
orientation of a workpiece by probing points and then rotating the A, B or C axis.

The most usual tasks are:


■ Measurement of workpiece positions
■ Measurement of workpiece length or workpiece diameter (internal or external)
■ Setting work offsets
■ Checking position and size tolerances
■ Updating tool offsets

Measuring results are saved in described variables for further calculation and can be printed out through the
RS232 port on the machine. For moving safely between measuring features, use the protected positioning cycle
O9113.

Before measuring, the following conditions must be met:


■ The probe must be calibrated.
■ The probe must be in the spindle.
■ The probe should be positioned using cycle O9113 in the X/Y and Z axes at the start position of the cycle.

UM-WP-V1.00-FAN-2612-EN.doc
20
Measurement Cycles

6.1 Description of used common variables

Several variables are used by all cycles. The following description shows how to use these variables.

6.1.1 Variable A_. Start Angle


The start angle is used in all cycles to define the measuring direction. The value must be between 0 and 360
degrees. This is set anti-clockwise (ccw).

90

135 45 0° = 180

180 0° =

If you use the X/Y version without vector calibration, it is only possible to measure in the X and Y axes as shown
in the table below:
G65 P9112 A0. …. Measuring will be made in X+ direction
G65 P9112 A180. …. Measuring will be made in X- direction
G65 P9112 A90. …. Measuring will be made in Y+ direction
G65 P9112 A270. …. Measuring will be made in Y- direction

The cycle runs in MDI if no Z value is set.


Example MDI:
If you want to measure a point in Y, move the probe in front of the touch point and start the cycle G65 P9112 A90.
To measure a point in X+ direction you must run G65 P9112 A0.

The measured result will be found at #[500+2.]


If you are measuring in X+ or X- you can only update the X offset.
If you are measuring in Y+ or Y- you can only update the Y offset.
With the S-value you can manipulate the measuring result.

A0 S1
A180 S1
A90 S2
A270 S2
Anything else S3

UM-WP-V1.00-FAN-2612-EN.doc
21
Measurement Cycles

If you are measuring at an angle you can decide with the S value whether you want to update the X value only
(S1) or the Y value (S2) only.

If you want to update the work-offset G54 in Y, you must type G65 P9112 A90.F1.

If you want to measure in Z, call the tool length compensation (G43…) first.
If you want to update a tool with the measuring result it is important whether measuring is done internally or
externally.
With Z measurement there is no difference between internal and external. The tool will be always updated in the
correct way.

6.1.2 Variable C_. Touch Counter


The touch counter is set in the calibration cycle. If greater accuracy is needed, by calculating the average of more
touches than set by calibration, set the C value to a higher value than the default value. If you want to make a fast
check of a feature, set the C value lower than the default setting.
Notice:
Positioning feedrate Multiple touches take more
Probing feedrate
measurement time but it will
Retract
Value be more accurate.

1st Touch
2nd Touch
3rd Touch

Example: Touch counter C3.

UM-WP-V1.00-FAN-2612-EN.doc
22
Measurement Cycles

6.1.3 Variable E_. Measuring Path


The actual measuring point may not be in the position expected from the part drawing or cycle input. To allow for
this there is a moving tolerance that is calculated at double the E value.
Normally measuring will take place in the position expected. The E-parameter defines an area where the touch
point is expected to be. This area starts with the value defined by the E parameter before the expected touch
point and ends with the E parameter value after the expected touch point. This gives a deviation of 2*E where
measuring is expected to take place.

If no touch point is

Estimated touch point


found the cycle stops
and an error message
Touch point
is shown.
E E

6.1.4 Variable F_. Touchi ng Function


The Value F is set to F0 by default and is used in every measuring cycle to determine the results. Depending on
the function, additional inputs must be added.
With input F1.-F6 you can update work coordinates in G54 to G59.
The position tolerance in X, Y or Z is checked using F500.
Diameter or distances are checked using F600.
Form and positions are checked by F700.
For form and position tolerances, additional variables U/V/W must be input. An error will occur if the tolerance is
exceeded and the cycle will stop. The probe will then move to the home position.

By using F800, it is possible to update a tool offset. For this function it is necessary to set the T variable with the
tool number to be updated. If tool update and tolerances are set with F800, the cycle checks whether the tool can
be updated. If this is not possible an error flag will be set at variable #[500. + 5.]

With F500, F600 and F800 it is important to set the exact position as the input value. Running these F-functions
with wrong inputs can cause errors.

If F1000. is set, the measuring result will be printed out..

UM-WP-V1.00-FAN-2612-EN.doc
23
Measurement Cycles

It is not possible to make all evaluations on all cycles. The right column shows the cycle where the function is
possible and available.

Explanation Variable F_. Touching Function

Measuring Task Explanation Input Cycle


Measuring Save and look at the found measuring result F0.
Update work
coordinate The selected work coordinate will be updated F1. – F6.
G54-G59
The actual work coordinate will be shifted and
Shift and update the O9110
updated by the difference between the input values F7.
actual work coordinate O9111
and the measuring results
O9114
Update the actual work The actual work coordinate will be updated by the
F8.
coordinate measuring result
Update work
F101. –
coordinate The selected work coordinate will be updated
F400.
G54.1 P1-G54.1P300
O9110
Tolerance check Check position F500. O9112
O9114

Tolerance check Check size of diameter or distances F600. O9110

Tolerance check Check form and positions F700. O9110

Update tool offset O9110


Update tool F800.
Additionally add T value for tool number. O9112
Measuring results will be printed out from the F[value]+
Print out
RS232 serial port 1000.

UM-WP-V1.00-FAN-2612-EN.doc
24
Measurement Cycles

6.1.5 Variable H_. Probe Number


The measuring cycles can handle up to three probes. You can decide which probe you want to use with the cycle.
This parameter is optional and is set to H1, Probe 1 by default. This variable is only used if you set the F-
Parameter for vector calibration (F3.-F4.) in the startup cycle O9100.

6.1.6 Variable U_. V_. W_. Toler ances


The position tolerance compares the input value in X, Y or Z with the found measured result. If the difference
between the measuring and the input value exceeds the tolerance value, an error occurs. The cycle will stop. This
value will only be checked with the F-functions F500./F600. and F700.

6.1.7 Variable T_. Tool Number


You can update the tool specified by the T variable with the measuring result found. If the W parameter is set, the
tolerance in Z is checked before the tool is updated. If the tolerance is exceeded, variable # [500 +5] will be set to
1 and the user decides whether to continue the cycle.
The tool will be updated by the difference between the measured result and the input values.
If you are measuring a bore or pocket and the measured diameter or distance is smaller than expected, the radius
of the tool will be reduced by half of the difference.
If you are measuring a single point the radius of the tool will be reduced by the whole difference.
If you are measuring a web or boss outside and the measuring result is bigger than the expected size, the radius
of the tool will be reduced by half of the difference.

UM-WP-V1.00-FAN-2612-EN.doc
25
Measurement Cycles

6.2 Cycle O9112: Measure single point

This cycle is used for determining workpiece surfaces and individual


coordinates. Measurement generally takes place with one touch.
If you use the vector calibration , the measuring angle can be set at any angle
in relation to the surface.

UM-WP-V1.00-FAN-2612-EN.doc
26
Measurement Cycles
Cycle O9112: Measure single point

O9112[A_.][C_.][D_.][E_.][F_.][H_.] [R_.] [S_.][T_.][U_.][V_.][W_.][X_.][ Y_. ][ Z_.]


A_. Start Angle Angle measuring will be made at
Optional
C_. Touch Counter
If no value is set the default startup value C1.will be used
Distance to the touch point in X/Y.
D_. Safety Distance
Not necessary when touching in Z direction (S4.)
Optional:
E_. Measuring Path
If no value is set the default startup value E5. will be used
Refer to Variable F_.Touching function (see page 23)
F_. Touching Function F600. / F700. not possible
F800. only possible with S1. or S2.
Optional
H_. Probe Number
Probe 1 (H1) will be set by default
Safety position in Z-axis.
R_. Safety Position (The probe moves at positioning feedrate until it reaches
this position) If no R is set, R will default to Z+0.01mm
S1. X
S2. Y
S_. Touching Direction and Plane
S3. X/Y
S4. Z
Optional
Refer to Variable F_.Touching function (see page 23)
T_.[1/2] Tool Number
T[NR]. 1 Update tool inside measuring - default
T[NR]. 2 Update tool outside measuring
Optional
U_. Tolerance in X Direction
Refer to Variable F_.Touching function (see page 23)
Optional
V_. Tolerance in Y Direction
Refer to Variable F_.Touching function (see page 23)
Optional
W_. Tolerance in Z Direction
Refer to Variable F_.Touching function (see page 23)
Position of the surface to be measured. If no value is set
X_._ Measuring Point in X
the actual current X position will be used.
Position of the surface to be measured. If no value is set
Y_. Measuring Point in Y
the actual current Y position will be used.
Position in the Z-Axis at which the measurement is to be
Z_. Measuring Point in Z made. If no value is set the actual current Z position will
be used.

UM-WP-V1.00-FAN-2612-EN.doc
27
Measurement Cycles

Measuring in X/Y plane


When measuring in X/Y plane, the probe follows the sequence described below. It moves in X/Y to the position of
the touch point set by input D less the value E. Next, it moves in Z to the safety position set by R at positioning
feedrate. The probe moves at the angle set by A to the touch point. After measuring, the probe moves 1 mm from
the touch point at the same angle. This path can be changed by the W-Value. When the cycle is complete the
probe returns to the Z safety position set by the R value.

Positioning feedrate

Measuring feedrate

R
Touch point

z
Z

D E E
X/Y
Possible touch point

Measuring in Z
When measuring in Z, the probe moves first in X/Y to position. It then moves in Z to the safety position set by R at
positioning feedrate. It then moves to the defined measuring point set by Z at measuring feedrate. Finally the
probe returns to the Z safety position set by the R input value.

Positioning feedrate

R Touch feedrate

z
E
Z Possible
touch point
E

Touch point
X/Y

UM-WP-V1.00-FAN-2612-EN.doc
28
Measurement Cycles

Example
In this drawing we want to set in work coordinate G56 a
Z X new zero point at X100. and Y-100.
Z position at which measuring is made is Z-100.
3 Z X Safety height (R) is Z+5mm.
Y G56 The work coordinate to be updated is G54.1 P30.
Measuring takes place at an angle (A) of 0 degrees.

Y The distance to the measuring position (D) is 5mm.


The second measurement will take place in Y direction
2 G54.1P30
at an angle (A) of 270 degrees.

1
The measuring distance (D) to the measuring position
will be 5mm.
Measuring path (E) is set to 5mm by default.
The touch counter (C) is set by default in the startup
cycle O9100. The last touch will be made in Z direction.
The work coordinate will be updated with the measured point of each touch in X/Y/Z.

%
O1000

G56
(FIRST-TOUCH-AT-0-DEGREE-UPDATE-X-VALUE)
G65 P9112 A0. D5. F130. R5. X100. Y-80. Z -120.
(SECOND-TOUCH-AT-270-DEGREE-UPDATE-Y-VALUE)
G65 P9112 A270. D5. F130. R5. X 20. Y100 . Z -120.
(THIRD-TOUCH-UPDATE-Z-VALUE)
G65 P9112 F130. R5. S4. X 120. Y80. Z -100.

M30
%

UM-WP-V1.00-FAN-2612-EN.doc
29
Measurement Cycles

6.3 Cycle O9110: Measure centre point

Cycle O9110 is used for measuring diameters/widths and finding the centers of slots, holes, bosses and webs.
Depending on programming, measuring is made with either two, three or four touches.

O9110 [A_.] [C_.] D_. [E_.] [F_.] [H_.] [I_.] [J_.] [R_.] [S_.] [T_.] [U_.][V_.][W_.] [X_.] [Y_.] [Z_.]
Measuring angle.
A_. Start Angle Optional
Set to 0° by default
C_. Touch Counter Optional
If no value is set, the default startup value C1. will be used
D_. Diameter Estimated diameter of the feature being measured.
D must be exact if running F600, F 700, F800
E_. Measuring Path Optional
If no value is set, the default startup value E5. will be used
F_. Measuring Function Refer to Variable F_.Touching function (see page 23)
Set to 0 by default
H_. Probe Number Optional
Set to H1. by default
I_. Second angle Optional only for S21.
Set to A + 120° by default
J_. Third angle Optional only for S21.
Set to I + 120° degree by default
Safety position in Z-axis before and after probing.
R_. Safety distance (Until probe reaches this position, positioning feedrate is used )
If no R-, Z – Value is set, R will be set as the actual Z position + 0.01mm
S will be set to S11.
S1. Pocket without obstruction
S2. Pocket with obstruction
S3. Web
S11. Bore
S_. Measuring Feature S12. Bore with obstruction
S13. Boss
S21. Bore 3 point version
S22. Bore 3 point version with obstruction
S23. Boss 3 point version
T_. Tool Number Refer to Variable F_.Touching function (see page 23)
(Internal and external will be determined by S-function)
U_. Tolerance in X Direction Refer to Variable F_.Touching function (see page 23)
V_. Tolerance in Y Direction Refer to Variable F_.Touching function (see page 23)
W_. Diameter Tolerance Refer to Variable F_.Touching function (see page 23)
Estimated position of feature measured.
X_. Center Point in X If no value is entered the default will be the current X position.
Exact position needed for F600 and F700
Estimated position of feature measured.
Y_. Center Point in Y If no value is entered the default will be the current Y position.
Exact position needed for F600 and F700
Z_. Measuring Depth Position in Z axis at which measuring will be made.
Default is actual position in Z

UM-WP-V1.00-FAN-2612-EN.doc
30
Measurement Cycles

Measuring in the same position with different S-functions can result in differing values because of the
different calculations of the centre point in X and Y.
To accurately measure an arc, the total angle should be greater than 120°.

In MDI mode only bores or pockets can be measured. No web or boss measuring is possible. The minimum input
will be:

MDI: G65 P9110 D_._ (Measuring a bore )

With the F-function the work coordinate can be updated.


Measuring web or pocket in X (A0, A180) or in Y (A90, A270) will only update the coordinate in the measuring
direction.

UM-WP-V1.00-FAN-2612-EN.doc
31
Measurement Cycles

6.3.1 Measuring a bore


The centreline of the bore is expected at X20. Y0.
Measuring should take place at Z-5mm.
The diameter (D) of the bore is 40mm and the safety height (R)
X/Y
R is +10mm. Measuring angle A is 0 degrees.
The result will be printed out (F1000).
R
%

Z G65 P9110 A0. D40. F1000. X20. Y0. Z-5. R10. S11.

D

6.3.2 Measuring a boss


The centerline of the boss is expected at X0. Y0.
Measuring should take place at Z -5mm.
X/Y
The diameter (D) of the boss is 45 mm and the
Z safety height (R) is +10 mm.
Measuring angle (A) is 0 degrees. The work coordinate G54.1P31

R (F131.) will be updated with the centre of the boss in X and Y.

Z %

D
G65 P9110 A0. D45. F131. X0. Y0. Z-5. R10. S13.

6.3.3 Measuring a w eb
The centre of the web is expected at X0. Y0.
Measuring should take place at Z -5mm.
X/Y The width (D) of the web is 30mm and the safety height (R) is 10mm.
The measuring angle (A) is 0 degree.

R %

Z
G65 P9110 A0.D30. F0. X0. Y0. Z-5. R10. S3.

UM-WP-V1.00-FAN-2612-EN.doc
32
Measurement Cycles

6.3.4 Measuring a pocket


The centre of the pocket is expected at X0. Y0.
Measuring takes place at Z-5mm.
The width (D) of the pocket is 40 mm and the safety height (R) is
X/Y
10mm. The pocket will be measured (S1.) in X-Direction at an angle
(A) of 0 degrees.
R

Z …
G65 P9110 A0. D40. F0. X0. Y0. Z-5. R10. S1.

6.3.5 Measuring a circle or an arc


The centre of the bore is expected at X20. Y0.
Measuring takes place at Z-5mm.
X/Y
The diameter (D) of the arc is 40mm and the safety height
(R) is +10mm.
.
2 Antastung The start angle (A) is 0 degree.
3. Antastung 1. Antastung R
Second angle (I) is 90 degrees and last angle (J) is 120 degrees.
Z
The measurement takes place with 3 touches (S21.)

D
If you are running the cycle from an approximate centre and want
to get the exact diameter of the bore then run the cycle twice.
First to get the correct centre and second to get the correct
diameter.
%

G65 P9110 A0. D40. I90. J120. F0. X20. Y0. Z-5. R10. S21.

UM-WP-V1.00-FAN-2612-EN.doc
33
Measurement Cycles

6.4 Cycle O9114: Measure corner

This cycle is used to find the position of the corner/edge of a workpiece. This is done by making two touches on
each side of the corner. The touches will be made at the specified Z position. The distance between the corner
and the first touch point is set by the I/J value. The distance for the second touch point is set by M and T.

O9114 A_. B_. [C_.] [E_.] F_. [H_.] I_ .J_. M_. R_. [T_.] X_. Y_. Z_.
st
A_. Angle 1 side
nd
B_. Angle 2 side
Optional
C_. Touch Counter If no value is set, the default startup value C1. will be
used
Optional
E_. Measuring Path If no value is set, the default startup value E5. will be
used
Refer to Variable F_.Touching function (see page 23)
F_. Measuring Function F600. or F700. or F800. is not possible
F0. by default
H_. Probe Number Optional
H1. by default
I_. Distance between touch points 1 plane
st Any value to the right of the first touch point will be
positive
J_. Distance between touch points 2
nd
plane Any value to the right of the first touch point will be
positive
The distance between the first and second touch point
st
M_. Distance 1 plane in the first plane
Value always positive
Safety position in Z-axis before and after probing.
R_. Safety Position (Until probe reaches this position, fast feedrate is
used )

nd
The distance between the first and second touch point
T_. Distance 2 plane in the second plane
Value always positive
X_. Position in X X -position of edge/corner in X axis
Y_. Position in Y Y -position of edge/corner in Y axis
Z_. Position in Z Z -position at which measuring takes place

The probe moves in X/Y to the first point of the first side, and touches on the first side at the distance I.
After touching, the probe moves to the second touch point on the same side at the distance set by M and
measures again. It then moves up to the safety height R and then to the second side. The procedure is repeated
again with two touches. The first touch takes place at a distance J from the programmed X/Y centre and the
second touch takes place at a distance T from the first point. The cycle is finished when the probe has moved to
the safety height R.

Notice
The probe moves to the safety height set by value R after every touch.

UM-WP-V1.00-FAN-2612-EN.doc
34
Measurement Cycles
Example of inputs for an external corner

A270.
A270.
I-10. M10. M10 I10.

J-10.

T10. T10.

Y
B0 B180.
B180.
B0 X

T10. T10.

J-10. J10.

I10. M10. M10 I-10.


A90. A90.

Example of inputs for an internal corner

I10. M10 M10 I-10.

J-10. J10.
A90. A90.

T10. T10.

Y
B180.
B0
B180. X B0

T10.
T10.
J10.
A270. A270.
I-10. M10 M10 I10.

UM-WP-V1.00-FAN-2612-EN.doc
35
Measurement Cycles

I and J are the distance from the corner to first touchpoint and the values M and T set the distance to the second
touchpoint. The direction of the angle is as described before. The direction of the plane is defined by positive or
negative values of I and J. If you want to touch to the right side from the centre point of the corner, values for I
and J must be positive. If you want to touch to the left side from the centre of the corner, values for I or J must be
negative. The value of M and T is always positive.

Example
The corner of a workpiece should be set as a work coordinate.
The estimated position of the corner is at X100. and Y-100.
The touch will take place at Z-5mm.
X/Y The planes will touch at (A) 0 and (B) 90 degrees.
The distance in will be 10mm for both sides (I/J) on the first
touch.
R
The second touch will take place in the first plane (M) at 15mm
and in the second plane (T) at 20mm.
Z
The work coordinate G54.1 P46 (F146.) will be updated.
The cycle is written to make the touches externally.
The safety height (R) be at Z+10mm.

E E %

G65 P9114 A0 B90. F146. I10. J-10.
M15.T20.R10. X100. Y-100. Z-5.
T …
E
J
E

I M

UM-WP-V1.00-FAN-2612-EN.doc
36
Measurement Cycles

6.5 Cycle O9115: Measure rotation in 4 t h or 5 t h axes

th th
By using cycle O9115, workpiece orientation can be determined and corrected by rotation of the 4 or 5 axes.

O9115 A_. B_. [C_.] [E_.] F_. [H_.] I_.R_. X_. Y_. Z_.
A_. Start Angle

B_. Measuring Plane B1 X/Y-plane


B2 Z-plane
Optional
C_. Touch Counter
If no value is set, the default startup value C1. will be used
E_. Measuring Path Optional
If no value is set, the default startup value E5. will be used
Refer to Variable F_.Touching function (see page 23)
F_. Measuring Function F600. or F700. or F800. is not possible
F0. by default
H_. Probe Number Optional
H1. by default
Distance between
I_. Distance from the X/Y center position to the measurement
trigger point and centre position point. Total length = 2 x I

R_. Safety Position Safety position in Z-axis before and after probing. (Until
probe reaches this position, positioning feedrate is used )
X axis position
X_. Centre position between the two touch points
before measuring begins
Y axis position
Y_. Centre position between the two touch points
before measuring begins

Z_. Position in Z X/Y Plane  Z is the measurement depth


Z Plane  Z is the nominal coordinate

Measuring angle of a surface in Z plane


To find the angle of a surface in the Z plane (B2.) the following
X/Y movements will take place. The probe moves at positioning feed rate
to the position which is defined in the Variables X and Y.
I I Then it moves to the safety height (R).
R Next the probe moves at safety height (R) the distance (I) in
1st. Touch 2.nd. Touch direction of the specified angle (A) of 180 degree and touch in
Z
Z direction.
Z
It moves in safe height (R) to the second measurement point
(distance 2 x I) and make the second touch.
Each touch takes place at measuring feedrate.
2xI
X/Y
The Result is saved in #[#100+4.].
The angle A is 0 degree in Z+ direction. It is counted anti clock wise.

UM-WP-V1.00-FAN-2612-EN.doc
37
Measurement Cycles

Measuring angle of a surface in X/Y plane


To find the angle of a surface in the X/Y plane (B1.) the
following movements take place.
The probe moves in Z direction to the safety position (R)
R
Next it moves at positioning feed rate to the measurement
Z points in X/Y, which were defined with angle (A) and measuring
Z
path (E). It then moves at measuring feed rate to the
measurement depth (Z) and make the first touch. Next it moves
E
in positioning feed rate to the safety position (R) and parallel to
X/Y
the second position in X/Y plane.
It moves at measuring feedrate again in measuring depth (Z)
Y
and touch the second point.
2*I

The centre of the two touch points will be at X175. Y160. Z-5.
The safety height (R) is set to 10mm.
The distance between the two touches (2 x I) should be 20mm.
Measurement takes place in the X/Y plane (B1.).
%

G65 P9115 A0. B1. E5. F0. H1. I10. R10. X175. Y160. Z-5.

M30
%

If you need to rotate the work coordinate system with a basic rotation of G68 in the measured angle you find the
measured angle value in: #[#100+4.].

UM-WP-V1.00-FAN-2612-EN.doc
38
Measurement Cycles

6.6 Examples

6.6.1 Measuring of distance betw een tw o bores


Two bores are located on a workpiece. To find the
distance between the two bores in X and Y we measure
both bores. The difference of the two measuring results in
X X and Y will be the distance in the coordinate system.
The first bore is located at X10. Y20. The diameter (D) of
Y Y the bore will be 40mm. The second bore is located at
D X100. Y40. and the diameter (D) of the bore will be 20mm.
The safety height (R) is 10mm and all touches take place
X at measuring depth Z-5mm. The distance between the
bores in X will be saved in Variable #120 and in #121
for Y. The actual centerline distance between the bores
will be saved at variable #122.

%

G65 P9110 A0. D40. F0 X10. Y20. Z-5. R10. S11.
#110 = #501(SAVE-X-VALUE)
#111 = #502(SAVE-Y-VALUE)
G65 P9110 A0. D20. F0 X100. Y40. Z-5. R10. S11.
#120 = ABS [#110-#501](DISTANCE-X)
#121 = ABS [#111-#502] (DISTANCE-Y)
#122 = SQRT[#120 * #120 + #121 * #121](DISTANCE-BETWEEN-CENTRELINE)

UM-WP-V1.00-FAN-2612-EN.doc
39
Measurement Cycles

6.6.2 Measuring bores on a pitch circle diameter (PCD)


The centre of the PCD is located at X100. and Y20.
The touch will take place at Z-5.
B1 The safety height (R) is set at Z+10mm.
The radius of the PCD is 50mm.
The diameter of each bore (D) will be 20mm.
B2
B3 The centre and diameter of each bore will be saved
R

Y
between variables #110 to #118.
This task is done by calling the bore cycle O9110 three
times.

%

(MEASURE-BORE-1)
G65 P9110 A0. D20. F0. X[100.+50.*COS[90.]]Y[20.+50.*SIN[90.]] Z-5. R10. S11.
#110 = #501 (POSITION-X)
#111 = #502(POSITION-Y)
#112 = #504(DIAMETER)
(MEASURE –BORE-2)
G65 P9110 A0. D20. F0. X[100.+50.*COS[210.]]Y[20.+50.*SIN[210.]] Z-5. R10. S11.
#113 = #501 (POSITION-X)
#114 = #502(POSITION-Y)
#115 = #504(DIAMETER)
G65 P9110 A0. D20. F0. X[100.+50.*COS[330.]]Y[20.+50.*SIN[330.]] Z-5. R10. S11.
#116 = #501 (POSITION-X)
#117 = #502(POSITION-Y)
#118 = #504(DIAMETER)

M30
%

UM-WP-V1.00-FAN-2612-EN.doc
40
Additional Cycles

7 Additional Cycles

7.1 Cycle O9109: Printing of measurement results

The output cycle is called O9109. The output can be defined by the user. By default the output cycle prints out the
X, Y, Z value found by the probing cycles with the diameter or angle and the error code. Additionally you can print
out the following input values.

(PRINT-OUT-MH-V…)
(#7-D-DIAMETER)
(#8-E)
(#9-F-FUNCTION) Refer to F function
(#11-H-PROBE_NUMBER)
(#18-R-SECURE_HEIGHT)
(#19-S-) Refer to S-Function O9110
(#20-T-TOOL-UPDATE)
(#21-U-TOLERANCE)
(#22-V-TOLERANCE)
(#23-W-TOLERANCE)
(#24-X-CENTRE)
(#25-Y-CENTRE)
(#26-Z-TOUCH_POSITION_VALUE)

An example program O9109mod.txt is added to show how you can make your own printout.

UM-WP-V1.00-FAN-2612-EN.doc
41
Additional Cycles

7.2 Cycle O9121: Modifying w ork coordinate s ystem

This cycle is useful if you want to copy or/and modify a work offset.

O9121 F_. U_. [X_.] [Y_.] [ Z_.]


This value refers to the F-function
F_. Source coordinate
F1.-F6. and F101.-F300. are possible
This value refers to the F-function
U_. Destination coordinate
U1.-U6. and U101.-U300. are possible
X_. Amount to change in X offset Optional
Y_. Amount to change in Y offset Optional
Z_. Amount to change in Z offset Optional

Remember
If there is no change value set in X, Y or Z the actual value of the destination coordinate system will
be the same as the source coordinate. To work with the offset update program you must call the
original offset first.

Example 1 Copy G55 into G59 without any change in values

G55 X100.123 Y-140.454 Z-100.339


G59 X999.2 Y-999.0 Z-999.1
G65 P9121 F2.U6. X0 Y0 Z0
G59 X100.123 Y-140.454 Z-100.339

Example 2 Copy G55 into G59 with a change of X 10.mm Y 20.mm Z 30.mm

G55 X100.123 Y-140.454 Z-100.339


G59 X999.2 Y-999.0 Z-999.1
G65 P9121 F2. U6. X10. Y20. Z30.
G59 X110.123 Y-120.454 Z-70.339

Example 3 Copy G55 into G59 with a change of X 10.mm

G55 X100.123 Y-140.454 Z-100.339


G59 X999.2 Y-999.0 Z-999.1
G65 P9121 F2. U6. X10.
G59 X110.123 Y-999.0 Z-999.1

UM-WP-V1.00-FAN-2612-EN.doc
42
Error Messages

8 Error Messages

101 (ERROR*IN*FUNCTION*CALL*01)
102 (X-AXIS*HIT*AN*OBSTRUCTION)
103 (Y-AXIS* HIT*AN*OBSTRUCTION)
104 (Z-AXIS* HIT*AN*OBSTRUCTION)
105 (ERROR-MAX-DEVIATION)
111 (POSITION-TOLERANCE-X-EXCEEDED)
112 (POSITION-TOLERANCE-Y- EXCEEDED)
113 (POSITION-TOLERANCE-Z- EXCEEDED)
114 (FORM-TOLERANCE- EXCEEDED)
150 (B*VALUE*MUST*BE*1.-16.)
151 (C*VALUE*MUST* BE*1.-7.)
152 (D*MUST*BE*1.-3.)
153 (E*MUST*BE*BETWEEN 1.-20.)
156 (H*TOUCH*VALUE*WRONG)
157 (F*MUST*BE*1.-4.)
171 (H*VALUE*MUST*BE*1-3)
172(F*VALUE*IS*WRONG)
173(M*VALUE*IS*WRONG)
174(X*OR*Y*VALUE*MISSING)
175(Z*VALUE*MISSING)
176 (T*TOOLNUMBER*MISSING)
177 (W*VALUE*MISSING)
178 (X*VALUE*NEEDED)
179 (Y*VALUE*NEEDED)
180 (Z*VALUE*NEEDED)
181 (W*TOOLLENGTH*MISSING)
182(A*VALUE*MISSING)
183(B*VALUE*ERROR)
184 (C*VALUE*ERROR)
185 (D*VALUE*NEEDED)
186 (E*VALUE*NEEDED)
187(F*VALUE*MISSING*OR*WRONG)
188(R*VALUE*MISSING)
189(S*VALUE*MISSING*OR*WRONG)
190(I/J*VALUE*MISSING*OR*WRONG)
191(T*VALUE*MISSING*OR*WRONG)
192(U/V/W*VALUE*MISSING*OR*WRONG)
193(X*VALUE*MISSING)
194(Y*VALUE*MISSING)
195(Z*VALUE*MISSING)

UM-WP-V1.00-FAN-2612-EN.doc
43
Error Messages

8.1 Error messages from machine control

Probe moves in Z direction Check the probe battery


and error number 102 appears Please check the status LED’s of the receiver.

Please check #5006 Bit 6


Probe moves in Z direction
If this Bit is set to 1; than changes have to be done by the m&h
and error number 104 appears
Service.
Please check #6004 Bit 1
Calculation of the lower reaches If this Bit is set to 0, change it to 1.
This is needed for a correctly calculation of sin / cos / tan.

UM-WP-V1.00-FAN-2612-EN.doc
44
Appendix

9 Appendix

9.1 Checks before installation

The following checks should be done before installing the cycles into the control:

Calibration possible in X/Y only


Memory space #500-#531 or #500-#999
or vector

From the start variable there must be a


Contiguous free Set in cycle O9100 line
contiguous set of variables for all
memory #32= ----
calibration values
Calibration with spindle orientation is
Spindle orientation will be done by
Spindle orientation only possible if this M-function is
M-Function M19 S[angle]
available

The cycles use These programs Program numbers


Free program numbers
O9100-O9110,O9112-O9115, O9121 must be available

For error messages there are two files available.

O9103EN for English version


O9103DE for German version

Ensure that O9103EN is loaded into the control.

UM-WP-V1.00-FAN-2612-EN.doc
45
Appendix

9.2 List of c ycles

Cycle Compulsory X
Number Cycle Name Explanation Optional O Compressible

9100 Start-up Cycle Installation and set-up X

9101 Moving Moving / Positioning probe X

9102 Touching Touching workpiece X

1
9103 Error messages Error messages X X

9104 Evaluation Evaluation of measuring results X

1
9105 Check Plausibility check of inputs X X

9106 Output Output and analysis X

Calibration of probe in Z Direction


9107 Calibrate Length X
to determine probe length
Calibration of Probe in
1
9108 Calibrate Radius X/Y Direction to determine X X
the radius of the stylus ball
Printing out 1
9109 Print out of measurement results O X
measurement results

Measuring of bores, bosses, webs,


9110 Measure Centre Point O
pockets, circle, arc

9112 Measure Single Point Measuring single points in X/Y/Z O

9113 Protected Positioning Collision protected pre-positioning O

Measure corner/edge of a
9114 Measure Corner O
workpiece over intersection point

Measure rotation Measure rotation / Basic rotation


9115 O
in 4th or 5th axes in 4th or 5th axes

Modifying
9121 Modifying work coordinate O
work coordinate
1) Ask the m&h-Service

UM-WP-V1.00-FAN-2612-EN.doc
46
Appendix
9.3 Used variables

#100 Used on internal calculations #100 should not be changed inside the cycle

#[#100+0] Error Error number

#[#100+1] X Measuring result in X

#[#100+2] Y Measuring result in Y

#[#100+3] Z Measuring result in Z

#[#100+4] D/A Found diameter or angle

#[#100+5] Tool error Error in tool

#[#100+6] ProbeNr Probe Number

#[#100+7] T-Counter-F-NR Touch counter and function no.

#[#100+8] Maxdev Max. deviation on multiple touches

#[#100+9] E Error amount part feature may be miss-located

#[#100+10] Pos-feed Positioning feedrate

#[#100+11] Touchfeed Measuring feedrate

#[#100+12] FREE/Intern

#[#100+13] FREE/Intern

#[#100+14] INCH-MM Measuring unit INCH/MM

#[#100+15] #100 Saved #100

#[#100+16] Control Internal information to control the cycles

#[#100+17] Move back

#[#100+18] FREE

#[#100+19] Tool number

#[#100+20] Tool length

#[#100+21] Calibration values

UM-WP-V1.00-FAN-2612-EN.doc
47
Information

10 Information

10.1 Contact

m&h Inprocess Messtechnik GmbH


Am Langholz 11
D-88289 Waldburg
Germany
www.mh-inprocess.com
[email protected]

All brands and trademarks mentioned and, where applicable, protected by third parties are subject, without
limitation, to the provisions of the respectively applicable trademark legislation and the ownership rights of the
respectively registered owners.

10.2 Safety Guidelines

Due to the EC Machinery Directive and the German Product Liability Act, the safety guidelines take on a special
significance. Improper handling of machines can cause danger to man and machine. Protect your health and the
capital value of the business.

The safety instructions of the machine manufacturer must be complied with in full.
In addition, the following safety regulations must be followed:

■ Only trained and instructed persons may service the measuring system and the software.
■ The machine must be in perfect working condition.
■ Comply with the intended use of the machine and measuring system.
■ Safety devices should not be modified, bypassed or disabled.
■ Standard settings must not be arbitrarily changed.
■ Special attention should be paid to the concentration and attention of the operator. Drugs, alcohol and other
intoxicants will interfere with the work of the operator.
■ Appropriate clothing as well as protective goggles and safety shoes must be worn.
■ Follow instructions laid down by the machine manufacturer.
■ Follow the instructions for switching the machine on and off and this includes the measuring system.
■ Check the proper use of measuring systems and accessories.
■ Check the correct pocket allocation of the measuring sensor in the tool magazine.
■ There is a risk of collision between tools and the measuring sensor during automatic tool change.
■ There is a risk of jamming, squeezing and getting caught during manual handling of the measuring system.
There is also the risk of injury from falling tools.
■ Check the function ability of the measuring device (signal transmission and switching point).

UM-WP-V1.00-FAN-2612-EN.doc
48
Information

■ Never turn on the spindle if a measuring device is in the spindle and do not exceed maximum spindle speeds
if using a tool measuring system.
■ Observe the maximum permissible feedrate when using measuring devices in the spindle.
■ Check every program thoroughly before starting it in the machine.
■ Does the chosen work offset zero point correspond to the program? Check absolutely!
■ Try out every new program in single block if possible and with the lowest feedrate.
■ Move the measuring sensor out of the way after stopping or interrupting a program before continuing or
restarting a program.

10.3 Copy and Trademark Rights

■ m&h Inprocess Messtechnik GmbH strives to observe, in all publications, the copyright of the featured
graphics, video sequences and texts, to use its own graphics, video sequences and texts or to resort to
license-free graphics, video sequences and texts.
■ All brands and trademarks mentioned and, where applicable, protected by third parties are subject, without
limitation, to the provisions of the respectively applicable trademark legislation and the ownership rights of the
respectively registered owners. The mere mention of trademarks does not imply that they are not protected by
the rights of third parties.
■ Copyright for published objects created by the author remains in the sole possession of the author of the
pages. Any reproduction or use of such graphics, video sequences and texts in other electronic or printed
publications is not permitted without the author's express consent.

10.4 Licensing Terms

A) Parties
1. The “m&h Inprocess Messtechnik GmbH” company, with its head office in D - 88289 Waldburg,
Am Langholz 11, hereinafter “m&h GmbH“
2. The user of the supplied software, in the person of the legal representative, hereinafter "Customer”.
B) Subject of the license
m&h GmbH grants the Customer the user license for the supplied software, hereinafter "Program”. The
Customer is responsible for the selection of the Program and the check of its suitability for the purposes
pursued by him.
C) Ownership rights to the software
The Program and documentation are the property of m&h GmbH and are legally protected in terms of the
copyright law. The ownership rights to the Program, copies, parts or modifications of the Program are retained
by m&h GmbH.
D) Rights included in the user license
The Customer is entitled to:
1. Use of the Program on a computer
2. Creation of a copy for archiving or as a back-up.
UM-WP-V1.00-FAN-2612-EN.doc
49
Information

E) Prohibitions for the Customer


The Customer is prohibited from:
1. Transfer or handover of the Program, copying or modification of the Program, both in part or in full, except
for the purposes expressly permitted in this agreement.
Extracting information from the Program about the applied algorithms through coding, decoding etc.
2. Reproduction, distribution or modification of the documentation.
3. Use of the application with a measuring sensor that is provided not by m&h GmbH.
F) Scope of the warranty
1. The Program is supplied and licensed in the condition as is, without giving rise to further obligations or
guarantees that go beyond those agreed in the contract.
2. m&h GmbH guarantees that the data carriers are free from defects in workmanship or material under
normal usage, for a period of 90 days from the date of delivery to the Customer, and that m&h GmbH, in the
event of a defect, shall replace them if they are submitted within this period together with the proof of
purchase.
3. m&h GmbH guarantees the basic execution of designated functions by the Program as well as the general
compliance with the specifications of the program as they were published by m&h GmbH and included in the
original packing.
4. If the Program does not execute the basic functions or they do not correspond to the specifications of the
Program, the Customer can write to m&h GmbH and notify of any significant defect within 90 days from the
date of the delivery of the Program.
5. Should m&h GmbH not be able to rectify the defect within 90 days after the notification, the Customer may
withdraw from the contract.
6. m&h GmbH does not guarantee that the functions of the Program are able to satisfy the Customer’s needs
or that the performance of the Program is completely faultless, or fully conforms with the description included
in the documentation.
7. It is the Customer’s responsibility to ensure a faultless function of computers and basic software (operating
system, drivers, peripheral software and hardware etc...) as well as the compatibility of all components with
the requirements of the Program. If required, m&h GmbH can provide information on configuration and
suitability of hardware and software for the installation and use of the Program.
G) Limitation of liability
The Customer shall release m&h GmbH from any responsibility for any problems or damage of whatever
nature and extent, that is directly or indirectly connected with the installation and use of the Program.
H) General terms
The installation und use of this software constitutes the acceptance of this agreement.

UM-WP-V1.00-FAN-2612-EN.doc
50

You might also like