tool wear 1
tool wear 1
tool wear 1
121-132 Chapter 10
Key words: tool wear, machine vision, camera, SICK AppStudio, measurement system
Authors´ data: MSc. Munđar, G[oran]*; Prof. Dr. Sc. Župerl, U[roš]*, * University
of Maribor, Faculty of mechanical engineering, Laboratory for Mechatronics,
Smetanova ulica 17, 2000 Maribor, Slovenia, [email protected],
[email protected]
This Publication has to be referred as: Mundar, G[oran] & Zuperl, U[ros] (2022).
Tool Wear Measurement Using Machine Vision System, Chapter 10 in DAAAM
International Scientific Book 2022, pp.121-132, B. Katalinic (Ed.), Published by
DAAAM International, ISBN 978-3-902734-34-1, ISSN 1726-9687, Vienna, Austria
DOI: 10.2507/daaam.scibook.2022.10
121
Mundar, G. & Zuperl, U.: Tool Wear Measurement Using Machine Vision System
1. Introduction
122
DAAAM INTERNATIONAL SCIENTIFIC BOOK 2022 pp. 121-132 Chapter 10
However, there are also some very serious limitations when using these methods.
To overcome these limitations, much research is currently being conducted to
determine the degree of tool wear by analysing different images acquired using
different optical sensors such as lasers, CCD and CMOS cameras, and thermal IR
cameras. There are a wide range of applications that combine optical sensors with
digital image processing and machine vision which are used for quality control, tool
wear measurement, workpiece surface measurement, etc. in machining processes such
as milling (Župerl et al., 2022).
As part of the work, we were involved in the development of an optical system
for the control of cutting tools in the Sick AppStudio software package and
implemented it in a prototype measuring model, which enables reliable measurements
of the dimensions of rotationally-symmetric cutting tools, tool wear and the detection
of possible damage to the tool. The measuring cell, consisting of aluminium profiles,
allows the tool to be clamped and fixed in the desired place, while allowing the tool to
rotate around its axis, so that each tile on the tool can be measured by rotating the tool.
A high-speed camera with appropriate lighting is fixed perpendicular to the work plate.
The position of the camera can be set according to the size of the tool we want to
measure by moving the camera via guides in the x and y directions.
2. Measuring cell
It was necessary to design, draw and manufacture a measuring cell that would
allow the camera to be attached and moved in the x and y directions. With this, we
were able to cover the entire measuring range and measure various tools regardless of
their size. It was also necessary to find a solution for clamping the tool, which will
ensure that it is always fixed at the same, precisely determined place, which we
determined according to the focal length of the camera. At the same time, it was
necessary to allow the tool to rotate around its axis in order to be able to measure each
individual cutting edge on the tool. The focal length of the camera lens had to be taken
into account in order to obtain a sufficiently high-quality image, which will then be
suitable for further processing. Since the measurement of tool wear with the help of a
camera is also significantly affected by light disturbances from the surroundings, it was
necessary to ensure constant lighting and to prevent the penetration of external light
into the measuring cell.
123
Mundar, G. & Zuperl, U.: Tool Wear Measurement Using Machine Vision System
124
DAAAM INTERNATIONAL SCIENTIFIC BOOK 2022 pp. 121-132 Chapter 10
The movement of the tool holder is possible in the x direction via the four screws
with which the bearing housing is attached to the aluminium profiles, or in the y
direction by moving two aluminium profiles along the T-groove. In principle there is
no need to move the tool, as this position can be set via camera movement, where the
position can be set more precisely and continuously.
We determined the position of the tool in the z direction at the beginning and
blocked it. The 3D model of the tool holder is shown in Fig. 2a. The actual
implementation of the clamping in the measuring cell is shown in Figure 2b.
125
Mundar, G. & Zuperl, U.: Tool Wear Measurement Using Machine Vision System
3. Machine vision system
This chapter will present the hardware and software used in the development of
a machine vision system for determining cutting edge wear.
3.1 Hardware
The built system consisted of the following hardware:
• Camera SICK picoCam304x
• Sensor integration machine SICK SIMx4000
• 24 V power supply
• LED backlight
• Telecentric lens
The tool's image will be captured by the SICK camera, which has a resolution of
2048 px x 2048 px and enables the capture of images at a speed of 19 fps. The camera
will be fitted with a telecentric lens that allows for 27mm x 27mm image capture.
The camera will be connected to the SICK SIMx4000 sensor integration machine
via an Ethernet communication interface. All machine vision algorithms will be
implemented inside the SICK SIMx4000, and at the same time the machine will also
take care of sending the data to online cloud, which can then be accessed via a personal
computer, tablet or phone. The 24 V power supply will provide power for the following
components: the camera, the sensor integration machine, and the LED backlight.
3.2 Software
SICK AppStudio software tool was used to create an application for determining
the wear of cutting edges. SICK AppStudio is used for developing customer-specific
applications on programmable SICK devices. It includes Flow Editor and Lua script
programming technologies for creation of sensor applications.
As part of the research, we used SICK AppStudio to create an application that
took care of capturing the image via the camera, processing the image, calculating the
diameter of the tool and sending the data to the cloud. At the same time, as part of the
development of the application, we also created a user interface that will allow users
to perform measurements more easily in the measuring cell. The developed application
will be described in more detail in the next chapter.
126
DAAAM INTERNATIONAL SCIENTIFIC BOOK 2022 pp. 121-132 Chapter 10
The second part consists of converting the camera coordinate system to the tool
coordinate system and finding the rotation angle of the image. A calibration grid with
a 20-mm grid, which was installed at the place where of tool holder, was used for
coordinate system conversion.
The third part consists of finding the cutting edge of the tool and performing
measurements of the cutting edge in the x and y directions. To analyse the measurement
of tool wear, it was necessary to properly pre-process the captured image and then,
using the functions included in AppStudio, obtain information about the x and y
components of the tool cutting edge.
127
Mundar, G. & Zuperl, U.: Tool Wear Measurement Using Machine Vision System
The coordinates of the intersection of the found lines and the angle of rotation
are displayed on the screen, as shown in Fig. 5a. The application then searches for any
numbers in the image. The numbers written on the grid represent the x and y distances
of the intersection on the calibration grid, located to the right below the numbers. The
upper number represents the x and the lower y distance of the intersection based on
tool coordinate system origin. The application in the image checks whether the
numbers are located on the right or on the left side of the found vertical line and
accordingly connects the coordinate system of the intersection in the image with the
coordinate system on the calibration grid. At the end of the second step, the application
rotates the image so that the horizontal line found is parallel to the bottom and top
edges of the image, as shown in Fig. 5b.
128
DAAAM INTERNATIONAL SCIENTIFIC BOOK 2022 pp. 121-132 Chapter 10
𝐷 = 2 ∙ (𝑟0 ± 𝑘 ∙ |𝑥1 − 𝑥0 |) (1)
where 𝐷 is the largest diameter (expressed in mm) of the cutting edge of the tool,
𝑟0 is the distance in the x direction between the vertical line from step 2 and the centre
of the tool holder (expressed in mm), 𝑘 is the resolution of the measurement system,
𝑥0 is the x coordinate on the image (expressed in px) of the intersection of the lines
from step 2 and 𝑥1 is the x coordinate on the image (expressed in px) of the point on
the tool with the largest diameter.
The resolution of the measurement system can be calculated from the resolution
of the camera and the field of view of the lens. The resolution of the camera we used
in the system is 2048px x 2048px. The field of view of the lens is 27 mm x 27 mm.
Equation 2 shows the calculation of the resolution of the used measurement system:
where 𝐹𝑂𝑉𝑥 is the field of view of the lens in the horizontal direction and 𝑟𝑐 is
the resolution of the camera in the horizontal direction. We can see that the resolution
of the developed system is 13,18 µm/px.
Using equations 1 and 2, the application calculates the tool diameter. Then the
application draws on the screen the found cutting edge, the point with the largest
diameter and prints the calculated diameter of the tool in mm as shown in Fig. 6.
129
Mundar, G. & Zuperl, U.: Tool Wear Measurement Using Machine Vision System
The control panel of the application consists of four images, three buttons and
instructions for performing measurements. It is shown in Fig. 7.
The left image named "Live image" shows the live image captured by the
camera. By pressing the "Grid" button, the vertical and horizontal lines can be turned
on or off.
The upper middle image named "Measuring grid" shows the image of the
calibration grid obtained by pressing the button "Find measuring grid" after placing the
calibration grid in the measuring cell. The coordinates of the found intersection point
and the image rotation angle are displayed on the image. In the middle image below,
with the name "Rotated measuring grid", a rotated image of the calibration grid and the
coordinates of the found intersection are shown.
The right image named "Diameter measurement" shows the image of the tool
when the "Measure diameter" button is pressed after calibration grid was successfully
found in the previous step and the tool was placed back into the measuring cell. The
image also shows the calculated diameter in mm.
In order to successfully measure all the cutting edges of the tool, it was necessary
to manually rotate the tool and measure each cutting edge separately by pressing the
"Measure diameter" button.
5. Results
The measurement results obtained with the developed measuring system were
compared with measurements using a caliper and with measurements on the Zoller
“smile 420” optical measuring system (***).
130
DAAAM INTERNATIONAL SCIENTIFIC BOOK 2022 pp. 121-132 Chapter 10
We compared the results of the measurements of the four cutting edges of the
tool and compared the results when using three different measurement systems. As a
reference, we used the Zoller measuring system, which allows a more accurate
measurement than caliper. The results of the measurements are shown in Table 1.
From the results, we can see that using the developed measuring system we
achieved better results than using a calliper. The relative measurement error of the
constructed system compared to the Zoller measuring system was 0.082%. The relative
error when using calliper was 0.219%, which is 2.6 times more than the error of our
developed system.
6. Conclusion
When we talk about the modernization of production and the fulfilment of the
requirements dictated by Industry 4.0 and Industry 5.0, which is fast approaching, the
need to achieve higher productivity, reducing wear and damage on the tool are crucial
for ensuring competitiveness on the market.
The test optical measuring cell for tool wear control that we have developed
meets all the needs for tool wear control, based on which we can perform tool
correction on a CNC machine. Regardless, it has certain drawbacks and allows for
additional expansions and upgrades. Based on the measurement accuracy calculation
we performed in Chapter 5, we found that our system does not give satisfactory results
in terms of measurement accuracy for serious tool wear measurements. However, the
resolution of the camera is quite sufficient for the needs of testing the tool condition
with the help of machine vision.
The optical tool wear monitoring system also offers other options for upgrading
the existing measuring cell. Using a motor drive to move the camera in the x and y
directions and using limit switches would simplify the determination of the tool
coordinate system and the conversion of the camera coordinate system to the tool
coordinate system, since the position in which both limit switches have a signal would
represent the reference position. Therefore, there would be no need to use a calibration
grid, as we did now. With each movement of the camera, system would know exactly
where it is located. Also, with the motor drive of the tool rotation, the measuring cell
would be fully automated and there would be no need for human intervention in the
measuring cell for each individual measurement.
131
Mundar, G. & Zuperl, U.: Tool Wear Measurement Using Machine Vision System
The implementation of a machine vision system to control tool wear in the
machining process on a CNC machine would also require the connection of the optical
system to the CNC machine controller and the installation of measuring system in the
CNC machine itself.
Future activities will be carried out to evolve the presented tool wear
measurement system with automation, such as automatic camera movement and
automatic tool rotation, which will simplify and speed up the measurement process for
the operator. The presented system will serve as a basis for the creation of a cognitive
cyber-physical control system for controlling the state of the tool during the machining
process, which we want to develop in the future.
7. References
Denkena, B., Bluemel, P., Roebbing, J., & Kroening, S. (2009). Condition-Based
Maintenance of Machine Tools. Annals of DAAAM & Proceedings.
Dutta, S., Pal, S. K., Mukhopadhyay, S., & Sen, R. (2013). Application of digital image
processing in tool condition monitoring: A review. CIRP Journal of Manufacturing
Science and Technology, 6(3), 212-232.
Li, D., & Tian, J. (2013). An accurate calibration method for a camera with telecentric
lenses. Optics and Lasers in Engineering, 51(5), 538-541.
Mohanraj, T., Shankar, S., Rajasekar, R., Sakthivel, N. R., & Pramanik, A. (2020).
Tool condition monitoring techniques in milling process—a review. Journal of
Materials Research and Technology, 9(1), 1032-1042.
Pfeifer, T., & Wiegers, L. (2000). Reliable tool wear monitoring by optimized image
and illumination control in machine vision. Measurement, 28(3), 209-218.
Rehorn, A. G., Jiang, J., & Orban, P. E. (2005). State-of-the-art methods and results in
tool condition monitoring: a review. The International Journal of Advanced
Manufacturing Technology, 26(7), 693-710.
Teti, R., Jemielniak, K., O’Donnell, G., & Dornfeld, D. (2010). Advanced monitoring
of machining operations. CIRP annals, 59(2), 717-739.
Wang, L., & Gao, R. X. (Eds.). (2006). Condition monitoring and control for intelligent
manufacturing. Springer Science & Business Media.
Župerl, U., Stepien, K., Munđar, G., & Kovačič, M. (2022). A Cloud-Based System
for the Optical Monitoring of Tool Conditions during Milling through the Detection of
Chip Surface Size and Identification of Cutting Force Trends. Processes, 10(4), 671.
*** ZOLLER Inc., Presetting and Measuring Machine »smile«: The Entry-Level for
the Professional Presetting and Measurement of Standard Tools, Accessed on: 2022-
09-09
132