You are on page 1of 8

m&h UK

TOOL MEASUREMENT

G140 F_.T_.E._D._H_.R_.I_.U_.X_._Y_._Z_._A_.
G140 is the cycle used when dealing with tool measurements. The cycle is
used to calibrate the system, measure a tool length and/or radius or check for
a broken tool.

F FUNCTION TO PERFORM Value required

LETTER
DESIRED FUNCTION VALUE TO ENTER
ADDRESS
F CALIBRATE LENGTH + RADIUS – Spindle rotating 1.
F CALIBRATE LENGTH ONLY – No rotation 1.1
F SET TOOL LENGTH ONLY – Spindle rotating 2.
F SET TOOL RADIUS ONLY – Spindle rotating 3.
F SET TOOL LENGTH + RADIUS – Spindle rotating 4.
F BROKEN TOOL CHECK – No rotation 5.
F SET TOOL LENGTH ONLY – No rotation 6.
F SET LENGTH + RADIUS – No rotation for length setting 7.

OFFSET NUMBER IN WHICH TO LOAD TOOL LENGTH OR


TOOL OFFSET NUMBER TO READ WHEN F4 OR F7. IS
T INPUT. THIS VALUE MUST BE A POSITIVE WHOLE
Value required
NUMBER. NO T VALUE NEEDED FOR F1. OR F1.1

Z ESTIMATED TOOL LENGTH Value required

FOR F5. “E” IS ERROR AMOUNT FOR TOOL TO BE


CONSIDERED BROKEN. VALUE MUST BE POSITIVE. F5. - Value
FOR F3./F4./F7, “E” IS OPTIONAL ADDITIONAL AMOUNT required
E TO OFFSET THE TOOL BEFORE MEASURING IN “X”/”Y”
AXIS BEFORE MEASURING RADIUS, SUCH AS CHAMFER F3./F4./F7.
OR BUTTON CUTTER WHERE BASE DIAMETER IS Value optional
SMALLER THAN OUTSIDE DIAMETER

ANTICIPATED TOOL DIAMETER


D THIS VALUE MUST BE A POSITIVE NUMBER Value required
IF F2. OR F5. IS INPUT THEN D INPUT IS NOT REQUIRED

TYPE OF CUTTER STYLE


Set to 1 as
H 1. = RIGHT HAND CUTTER (NORMALLY USED)
standard default
2. = LEFT HAND CUTTER

1
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
HOW TO LOAD THE CUTTER RADIUS
1. = LOAD THE RADIUS FOUND Set to 1 as
R 2. = LOAD THE DIFFERENCE BETWEEN THE ACTUAL standard default
RADIUS FOUND AND ANTICIPATED RADIUS (D VALUE)

F UN C TION D ESC RIPTION ( CONT.)

INCREMENTAL DISTANCE FROM THE TOOL TIP AT


WHICH TO MEASURE THE TOOL RADIUS. EXAMPLES
I ARE CHAMFER & BUTTON TOOLS WHERE BOTTOM Optional
DIAMETER IS SMALLER THAN AT TOP. THIS VALUE MUST
BE A POSITIVE NUMBER. ONLY NEEDED FOR F3./F4./F7.

OFFSET NUMBER IN WHICH TO LOAD THE NEW


U MEASURED CUTTER RADIUS. ONLY NEEDED IF USING Value required
F3./F4. OR F7.

INCREMENTAL DISTANCE IN “X” AXIS TO OFFSET THE


TOOL FROM THE CENTERLINE OF THE TOOL PROBE TO
X REACH AND MEASURE A TOOTH. Optional
SET TO X1. OR X-1. TO DETERMINE MEASURING
DIRECTION DURING CALIBRATION

INCREMENTAL DISTANCE IN “Y” AXIS TO OFFSET THE


TOOL FROM THE CENTERLINE OF THE TOOL PROBE TO
Y REACH AND MEASURE A TOOTH. Optional
SET TO Y1. OR Y-1. TO DETERMINE MEASURING
DIRECTION DURING CALIBRATION

A IDENTIFIES RADIUS OFFSET TYPE – SEE PAGE 7 Calibration only

PROBE CALIBRATION LENGTH & RADIUS

G140 F1. D10.0 A3. X1.

1. The reference length tool must be loaded in the spindle


2. The length of the reference tool, in either Inch or Metric, must be loaded
in #526
3. The approximate distance from the spindle face to the probe tip, in either
Inch or Metric, must be loaded in #525. This needs to be accurate to +/-
10mm.

Example program for F1. Function is :-

:8888 (TABLE PROBE CALIBRATION-LENGTH+DIAMETER)


#505=3. (IDENTIFY CONTROL TYPE)
#528=0 (X AXIS PROBE C/LINE POSITION FROM M/C COORDINATE)

2
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
#529= -45.0 (Y AXIS PROBE C/LINE POSITION FROM M/C COORDINATE)
#526=150.27 (EXACT LENGTH OF CALIBRATION TOOL)
#525=420.0 (APPROX. DISTANCE BETWEEN PROBE FACE + SPINDLE)
G140 F1. D10. A3. X1. (OR X-1. / Y1. / Y-1.)
M30
RE SULT S G1 40 F1.

1. The spindle will retract to home position


2. #525 will be updated to show the exact distance to the probe surface
when triggered with spindle rotating. Calibration will be made in “X”+
direction.
3. #523 to #526 will hold the various trigger point values found for “X” or “Y”
and “Z”. See explanation on page 7.

PROBE CALIBRATION LENGTH ONLY

G140 F1.1 D10.0 A3.


1. The reference length tool must be loaded in the spindle
2. The length of the reference tool, in either Inch or Metric, must be loaded
in #526
3. The approximate distance from the spindle face to the probe tip, in either
Inch or Metric, must be loaded in #522

Example program for F1.1 function is :-

:8889 (TABLE PROBE CALIBRATION-LENGTH ONLY)


#505=3. (IDENTIFY CONTROL TYPE)
#526=150.27 (EXACT LENGTH OF CALIBRATION TOOL)
#522=420.00 (APPROX. DISTANCE BETWEEN PROBE FACE + SPINDLE)
G140 F1.1 D10. A3.
M30

RESU LTS G 14 0 F1 .1

1. The spindle will retract to home position when the cycle is completed
2. #522 will be updated to reflect the exact distance to the tip with no spindle
rotation

TOOL LENGTH MEASUREMENT-WITH ROTATION

G140 F2. T26. Z175. D50.


1. Calibration must have been performed
2. The tool to be measured must be in the spindle
3. The spindle will rotate at 300rpm for length measurement
4. The axis will move across by the radius of the tool to make sure the tooth
edge is on the probe stylus centerline
5. If “Z” value is omitted, the tool length in “T” offset will be used
3
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
6. The approximate tool length (+/- 10mm) should be loaded in the “Z” value

Example program for F2. function is :-

:8892 (TOOL LENGTH MEASUREMENT ONLY)


G140 F2. T26. Z175. D50. H1.
M30

RE SULT S G1 40 F2.

1. The spindle will go back to home position when the cycle is completed
2. The exact length of the tool will be loaded in offset 26.

TOOL RADIUS MEASUREMENT

G140 F3.D20. I.0 U11. R1. Z165. E5.

1. Calibration must have been performed


2. The tool to be measured must be in the spindle.
3. The spindle will find tool radius at 300rpm
4. The value set by “U” is the tool length number value that will be applied to
position the tool before radius measurement begins.

Example program for F3. function is :-

:8893 (TOOL RADIUS MEASUREMENT ONLY)


G140 F3. D20. H1. R1. I0. U11. Z165.
M30

RE SULT S G1 40 F3.

1. The spindle will go back to home position when the cycle is completed
2. The size of the tool will be loaded in the tool offset identified by the U
input value in a form specified by the R input value as a radius or a size
difference.

LENGTH/RADIUS MEASUREMENT WITH ROTATING


SPINDLE

G140 F4. T9. D12. I3. U9. R1. Z165. E5.


1. Calibration must have been performed
2. The tool to be measured must be in the spindle and will be rotating before
measuring begins. If “Z” value is omitted, the tool length in “T” offset will
be used

4
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
3. The radius value found will be loaded into the offset specified by “U” and
the length will be loaded into the offset specified by “T”

Example program for F4. function is :-

:8894 (TOOL LENGTH+RADIUS MEASUREMENT)


G140 F4. T9. D12. H1. R2. I3. U9. Z165.
M30

RE SULT S G1 40 F4.

1. The combined results of tool length and tool radius measurements will be
loaded into the values set by “T” and “U” for length and radius
respectively.

CHECK FOR BROKEN OR WORN TOOLS

G140 F5. T45. E.05 Y65.0


1. Calibration must have been performed
2. The length of the tool to be checked must be known
3. Tool number to be checked is set by “T” value
4. If tool needs to be offset from the stylus surface, move it incrementally by
giving “X” + “Y” values

Example program for F5. function is :-

:8895 (BROKEN TOOL DETECT)


G140 F5. T45. E.05 Y65.
M30
RE SULT S G1 40 F5.

1. Z axis will retract to home position.


2. The result of the compared measurement is saved in #148. If the
comparison was less than the amount specified by E input then #148 will
contain the value of 1.
3. If the comparison was equal to or greater than the amount specified by E
input then #148 will contain the value 2.

All tool length measurements move the spindle center line over the probe tip X/Y
center line. This probe tip center line position is written into the G140 macro as a
G53 (machine coordinate) position. This makes it unnecessary for the user to input
any axis motion prior to calling the G140 routine as it will all be done automatically.

TOOL LENGTH MEASUREMENT-NO ROTATION

5
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
G140 F6. T26. Z175.
1. Calibration must have been performed
2. The tool to be measured must be in the spindle. If “Z” value is omitted, the
tool length in “T” offset will be used
3. The approximate tool length (+/- 10mm) should be loaded in the “Z” value
Example program for F2. function is :-

:8892 (TOOL LENGTH MEASUREMENT ONLY)


G140 F6. T26. Z175.
M30

RE SULT S G1 40 F6.

1. The spindle will go back to home position when the cycle is completed
2. The exact length of the tool will be loaded in offset 26.

LENGTH/RADIUS MEASUREMENT-NO ROTATION


WHEN MEASURING LENGTH

G140 F7. T9. D12. I3. U9. R1. Z165. E5.


1 Calibration must have been performed
2 Length measurement will be made with the spindle stationary. If ”Z” value
is omitted, the tool length in “T” offset will be used
3 Base tool diameter must be smaller than stylus diameter

Example program for F7. function is :-

:8897 (TOOL LENGTH+RADIUS MEASUREMENT)


G140 F7. D12. H1. R2. I3. U9. Z165.
M30

RE SULT S G1 40 F7.

1 The combined results of tool length and tool radius measurements will be
loaded into length/radius offsets specified by “T” and “U”.

SUMMARY OF REQUIRED INPUTS

G140 T Z E D H R I U X Y
F1. X X X X
F1.1 X X OPT OPT

6
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
F2. X X OPT OPT OPT
F3. X OPT X X X X X OPT OPT
F4. X X OPT X X X X X OPT OPT
F5. X X OPT OPT
F6. X X X OPT OPT
F7. X X OPT X X X X X OPT OPT

SUMMARY OF MACRO VARIABLES USED

#505 Control type – see table below

#522 “Z” distance : gaugeline to stylus trigger position – non rotating

#523 Anti-clockwise rotation trigger value

#524 Clockwise rotation trigger value

“Z” distance : gaugeline to stylus trigger position – spindle


#525
rotating

#526 Value for length of calibration tool

#527 Saves offset value for macro calculations

#528 “X” axis machine coordinate dimension to probe centreline

#529 “Y” axis machine coordinate dimension to probe centreline

#530 Set by control to determine X/Y + or - measuring direction

#531 Set by control to determine X or Y measuring axis

#148 1 = tool not broken / 2 = tool considered broken

CONTROL MODEL CONTROL FEATURES VALUE TO


ENTER
6 NA 1.
10/11/12 NA 2.

7
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33
m&h UK
15 UP TO 200 TOOL OFFSETS 3.
15 OVER 200 TOOL OFFSETS 4.
16/18/21 1 VALUE PER OFFSET 5.
16/18/21 2/4 VALUE PER OFFSET 6.
0 NA 7.

The value to set for “A” depends on the type of tool offset installed on your control.

If your control has only 1 offset for both tool length and radius then set “A” to 1.
If your control has 2 offsets, one for length and one for radius then set “A” to 2.
If your control has 4 offsets, one for length, one for length wear, one for radius and
one for radius wear then set “A” to 3.

8
7 MO U N T BA TT EN W A Y, CH I LW EL L, N O T TI N GH A M N G9 6 NG

T EL : 0 11 5 97 35 4 59 ¨F A X : 0 1 15 9 73 54 5 9 ¨MO B : 0 77 74 6 1 55 33

You might also like