The present invention relates to a method for positioning a tool mounted on a spindle of a numerical control machine tool in the visual field of a visual system for measuring the tool.
The invention also concerns a machine tool that implements such method.
In particular, the present invention can advantageously, but not exclusively, be applied in a phase of displacing the tool preceding a process of automatically measuring the tool executed by means of the vision system, to which reference will be explicitly made in the specification without loss of generality.
As is common knowledge, a numerical control machine tool includes a mechanical structure with a spindle which carries a tool for machining objects and makes it rotate, and an electronic control unit to precisely control the spindle displacements along three or more axes of movement and the tool rotational speed.
The tool of a machine tool has to be measured, also while it is rotating, to determine its effective dimensions once it is mounted on the spindle or to determine its wear after some working hours. For this purpose, the machine tools are equipped by an automatic measuring system which enables to measure the dimensions of the tool also while it is rotating.
A known automatic measuring system includes a laser source coupled to an optical receiver able to detect when the laser beam emitted by the source is interrupted by an object. The measuring of a tool dimension, for instance the difference of the tool length with respect to a nominal length, is made first bringing the spindle to a reference position then moving the spindle towards the laser beam along a direction transverse to the laser beam, the latter standing at a known distance from the reference position. When the tip of the tool interrupts the laser beam, more specifically when the tip interrupts a determined amount of the laser beam cross-section, the control unit records the spindle new position relative to the reference position. The dimension of the tool is evaluated according to the difference between the known distance and the recorded new position.
The measuring system based on the interruption of a laser beam has the inconvenience of having a measuring precision that is very much variable with the variation of both the dimensions of the tool tip, compared to the diameter of the laser beam cross-section, and the shape of the tool tip. Furthermore, such kind of measuring system may misinterpret any dirt (e.g. oil drops) possibly present on the tool tip as a part of the tool, so causing measuring mistakes.
An automatic measuring system is also known, which comprises a vision system, i.e. a light source providing an unfocused beam of radiations and a CCD camera to acquire images of the shadow profile of objects interposed between the light source and the camera. Such measuring system enables to overcome the inconveniences of the measuring system based on laser beam, that is it provides a measuring uniform precision and enables to recognise the dirt present on the tool tip. The measuring is carried out when the tool, rotating about its own axis, is placed in the visual field. To ensure the correct positioning of the tool, the rotating spindle is advanced for instance step by step, and at each step the position of the tip is real time checked directly from the acquired images.
The images acquisition time of the vision system, however, is quite long. In fact, it is considerably limited by the refresh rate of the camera and this constrains to choose a very low speed of displacement of the tool, otherwise the vision system could not be able to precisely frame the tool. This limits very much the minimum time required to perform the tool measuring. Moreover, when it is required to position the tool with high precision at a specific area of the visual field, the time needed becomes even longer because a further reduced speed of advancement or, alternatively, an iterative process of fine positioning is necessary.
Object of the present invention is to provide a method for fast positioning a tool of a numerical control machine tool in the visual field of a visual system, such method being free from the previously described inconveniences and, concurrently, easily and cheaply implemented.
Object of the invention is also to realise a machine tool able to implement such positioning method.
According to the present invention, a method for positioning a tool mounted on a spindle of a numerical control machine tool in the visual field of a visual system for measuring the tool and a numerical control machine tool are provided, according to what is claimed in the attached claims.
The present invention is now described with reference to the attached sheets of drawings, given by way of non-limiting examples, wherein:
In
While the movements of the spindle 2 along the displacement axes are always started by means of machine code instructions being part of a program, such movements can be stopped under control of an external unit through a specific input 5 of the control unit 4, generally said “skip input”. The control unit 4 is also set up to record the position of the spindle 2 along the displacement axes, for instance when a control signal is received at the input 5. Besides, the control unit 4 includes a communication interface 6, e.g. a port of an Ethernet network.
The machine tool 1 is provided with a visual system 7 adapted to measure the dimensions of the tool 3 while the machine tool 1 keeps the spindle 2 rotating about its own rotation axis 2a. In particular, the visual system 7 comprises a light source 8 and an image sensor, typically a camera 9 placed in front of, and at a certain distance from, the light source 8 to acquire images of the shadow profile of the tool 3 when the latter is placed between the light source 8 and the camera 9 by means of the movements of the spindle 2 along the displacement axes. The light source 8 produces an unfocused light beam and the camera 9 is for instance a digital CCD camera.
The camera 9 features a visual field 20 that defines a measuring area for the tool 3. The measuring is performed by placing the rotating tool 3 in the visual field 20 of the camera 9, acquiring images of the visual field 20 and calculating the dimensions of the tool 3 from the acquired images.
According to the present invention, the visual system 7 comprises a second electronic control unit 10 connected to the control unit 4 to send controls to and exchange data with the control unit 4. In the schematic diagram of
According to the present invention, a target position for a determined portion of the tool 3, in particular a tip 13, is defined in the visual field 20. The target position is indicated in the figures as a vertical height Zobj and is typically centred in the visual field 20 along the direction of the axis Z, because the central portion of the visual field 20 is the portion which, usually, ensures the best performance.
The flowchart of
When the positioning procedure starts (block 30 of
Supposing that, in the reference position Z0 of the spindle 2, the occurrence schematically illustrated in
The spindle 2 first movement along the axis Z is stopped as soon as the visual system 7 detects, on the basis of one of the acquired images, that the tip 13 of the tool 3 has entered the visual field 20 (output Y from block 36). Such instance is illustrated in
As soon as the control unit 10 detects the image IM1 (while the spindle is advancing along the axis Z, as indicated by an arrow in
At this stage, the control unit 10 measures, on the basis of the image IM1, a first distance POS between the position of the tip 13 and the target position Zobj (block 39). The control unit 4 demands to and attains from the control unit 10—through the connection comprising the communication interface 6 and the communication port 12—the value of such first distance POS, and calculates a first final position Z2 (block 40) for the spindle 2 as the algebraic sum of the instant position Z1 of the spindle 2 and the distance POS. The first distance POS has a positive value if the tip 13 has not passed the target position Zobj (as in the arrangement of
After the real stop of the spindle 2 advancement along the axis Z (output Y from test block 41), at which the tip 13 of the tool 3 may be within the visual field 20 or may have passed through and gone beyond it, the control unit 4 controls the spindle 2 movement along the axis Z to bring the spindle 2 directly to such first final position Z2 (block 42 and
It may be considered that the real position of the tip 13 when the spindle 2 is actually stopped along the axis Z is not the position showed by the image IM1 (
In view of the above consideration and according to a preferred embodiment of the present invention, the method includes, in addition to the main positioning phase described above, an optional phase of “fine positioning” (output Y of test block 43 indicating that the fine positioning is required) during which the visual system 7 acquires a first further image IM2 of the visual field 20 (block 44) when the position along the axis Z of the spindle 2, always rotating, is fixed in the first final position Z2 of
It is pointed out that the second distance POS2 is shown in
As previously mentioned, at the end of the preliminary displacement of the spindle 2 along the axis Z, at the reference position Z0 of
When in the above described preliminary phase, that is at the end of the preliminary displacement of the spindle 2 along the axis Z, at the reference position Z0 of
If the speed of movement of the spindle 2 along the axis Z is too high, it may happen that the acquired image IM1 including the tip 13 of the tool 3 cannot be detected, for the tip 13 has gone beyond the visual field 20. Thus, the positioning cycle is stopped according to a security process controlled by the control unit 4 and indicated in
Once the positioning of the tool 3 is carried out by means of a method according to the invention, as thus far described, the tool 3 is subjected to cycles of dimension and/or shape checking through the visual system 7, cycles per se known and not discussed in here. Block 49 in
From the above description, it is clear that the positioning method of the invention can be applied also in cases where the tool 3 enters the visual field 20 by means of movements along different displacement axes, e.g. the axis X or the axis Y. In this cases, the target position is represented by an horizontal location along the relative axe X or Y.
Moreover, the positioning method of the invention can be used for positioning, in the visual field 20 of the visual system 7, rotating tools having irregular shape and/or dimensions greatly larger than those of the visual field 20, their rotation axis standing out of the visual field 20. In these cases, the aim of the positioning method is moving the spindle 2 in such way as to bring a determined portion, typically an edge point, of the tool in correspondence of the target position in the visual field 20.
The main advantage of the above described method for positioning a tool is getting a high speed of positioning, since only the processing of few images of the tool is required. At the same time, the method enables to get a highly precise positioning, since the final position of the spindle is adjusted according to the displacements between the tip of the stationary tool and the target position of the visual field directly calculated from the processed images. This is even more true when the additional fine positioning phase is carried out. Moreover, the dimensions of the tool in the machine have not to be necessarily known a priori.
Variations to what described and illustrated until now by way of non limiting example are possible, for instance as regards the operation of the control units 4 and 10, which can be integrated in a single unit or exchange between them some operations. For instance, it can be the control unit 10 of the visual system 7 that demands to and receives from the control unit 4 information about the position of the spindle (Z0, Z1, Z2) and processes it together with the values of the distances POS, POS2.
Number | Date | Country | Kind |
---|---|---|---|
BO 2012 A 000221 | Apr 2012 | IT | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2013/058117 | 4/18/2013 | WO | 00 |