Strand detection system, control device, control method, and control program
The wire detection system addresses the challenge of accurately identifying target strands in coil springs by using a rotating support mechanism and advanced detection algorithms, ensuring precise measurement and coating application even in cases of overlapping strands.
Patent Information
- Application Number
- PCT/JP2024/017959
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-16
- Filing Date
- 2024-05-15
- Publication Date
- 2024-11-21
AI Technical Summary
Conventional shape measurement methods for coil springs struggle to accurately identify and measure target strands due to overlapping light sources and camera arrangements, leading to inaccurate shape determination.
A wire detection system that includes a support mechanism for rotating the coil spring, a sensor for measuring the outer shape of the wire, and a control device with a target strand detection unit that uses virtual lines and threshold settings to accurately identify the target strand from strand data, enabling precise detection and coating application.
The system effectively detects the target strand even when multiple strands are overlapping, allowing for accurate shape measurement and precise coating material application, enhancing the accuracy and reliability of coil spring inspection and processing systems.
Smart Images

Figure JP2024017959_21112024_PF_FP_ABST
Abstract
Description
Wire detection system, control device, control method, and control program
[0001] The present invention relates to a wire detection system, a control device, a control method, and a control program.
[0002] Conventionally, the following shape measurement method has been known as a method for measuring the shape of a coil spring (see, for example, Patent Document 1). In the shape measurement method described in Patent Document 1, a linear slit light that spreads in the axial direction of a coil spring fixed to a rotation stage is irradiated onto the surface of the coil spring, and the reflected light is captured by a camera to obtain wire data. In this shape measurement method, the wire data and the rotation angle when the coil spring is rotated around its axis are stored in association with each other, and the shape of the coil spring is measured by performing image processing on the wire data.
[0003] JP 2010-101693 A
[0004] However, in the shape measurement method described in Patent Document 1, depending on the position of the light source that irradiates the slit light and the camera, the captured wire data may include multiple adjacent wires of the coil spring. In such cases, it is difficult to identify the target wire among the multiple wires, and as a result, it is not possible to accurately measure the shape of the coil spring. For these reasons, there is a demand for technology that can detect the target wire from the wire data.
[0005] The present invention has been made in consideration of the above, and aims to provide a wire detection system, a control device, a control method, and a control program that can appropriately detect a target wire from wire data.
[0006] In order to solve the above-mentioned problems and achieve the object, the wire detection system of the present invention includes a support mechanism that supports a coil spring and allows the coil spring to rotate around a specific axis that follows the central axis of the coil spring, a sensor that measures the outer position of the wire of the coil spring and outputs wire data, and a control device that controls the operation of the support mechanism and the sensor, wherein the control device includes a support mechanism control unit that operates the support mechanism and rotates the coil spring around the specific axis, a sensor control unit that operates the sensor and acquires the wire data from the sensor, and a target wire detection unit that detects the outer position of a target wire from the outer positions of the wire of the coil spring included in the wire data.
[0007] Furthermore, in the wire detection system according to the present invention, in the above invention, the wire data includes contour equivalent points that correspond to the contour positions of the wire of the coil spring measured by the sensor on sensor coordinate axes that include a first axis extending from the sensor toward the object to be measured and a second axis that is perpendicular to the first axis, and the target wire detection unit refers to the wire data and executes a search process in which a virtual line parallel to the first axis is moved along the second axis from a specific search start position on the second axis to extract the contour equivalent points located on the virtual line, and detects the multiple contour equivalent points extracted consecutively by the search process as the contour positions of the target wire.
[0008] In addition, in the wire detection system of the present invention, in the above invention, the target wire detection unit detects as the outer contour position of the target wire the plurality of outer contour equivalent points including the outer contour equivalent point extracted when the virtual line is moved the smallest amount from the search start position, out of the outer contour equivalent points extracted when the virtual line is moved in a first direction along the second axis from the search start position and the outer contour equivalent points extracted when the virtual line is moved in a second direction opposite to the first direction along the second axis from the search start position.
[0009] In addition, in the wire detection system of the present invention, in the above invention, the target wire detection unit repeatedly detects the outer shape position of the target wire by the search process at a specific control period, and in the search process at the next control period after detecting the outer shape position of the target wire, the center position in the second axial direction at the outer shape position of the target wire is set as the search start position.
[0010] In addition, in the wire detection system of the present invention, in the above invention, the target wire detection unit extracts only those contour equivalent points that are adjacent to each other in the second axis direction and whose separation distance in the first axis direction is less than a specific first threshold value through the search process.
[0011] In addition, in the wire detection system of the present invention, in the above invention, if the number of the multiple contour equivalent points is less than a specific second threshold, the target wire detection unit redoes the search process and detects the contour position of the target wire again.
[0012] In addition, the wire detection system of the present invention, in the above invention, further includes an application device that applies a coating material to the coil spring, and the control device includes an application position calculation unit that calculates the application position of the coating material to the target wire based on the external position of the target wire, a movement control unit that moves the application device and the support mechanism relatively and positions the application device at a position where the coating material can be applied from the application device to the application position, and an application device control unit that operates the application device and causes the application material to be applied from the application device to the application position.
[0013] In addition, the bare wire detection system of the present invention, in the above invention, further includes a moving device that supports the coating device and moves the coating device, and the movement control unit operates the moving device to position the coating device at a position where the coating material is applied from the coating device to the application position.
[0014] In addition, in the wire detection system according to the present invention, in the above invention, the sensor measures the outer position of the wire of the coil spring from directions that intersect with the specific axis and a plane that is perpendicular to the specific axis.
[0015] In addition, the control device according to the present invention includes a support mechanism control unit that operates a support mechanism that supports a coil spring and rotates the coil spring around a specific axis that follows the central axis of the coil spring, a sensor control unit that operates a sensor that measures the outer position of the wire of the coil spring and outputs wire data, and acquires the wire data, and a target wire detection unit that detects the outer position of a target wire from the outer positions of the wire of the coil spring included in the wire data.
[0016] Furthermore, the control method of the present invention is a control method executed by a control device of a wire detection system, and includes a support mechanism control step of operating a support mechanism that supports a coil spring and rotating the coil spring around a specific axis that follows the central axis of the coil spring, a sensor control step of operating a sensor that measures the outer shape positions of the wires of the coil spring and outputs wire data, thereby acquiring the wire data, and a target wire detection step of detecting the outer shape position of a target wire from the outer shape positions of the wires of the coil spring included in the wire data.
[0017] Furthermore, the control program according to the present invention is a control program for causing a computer to execute the following steps: a support mechanism control step of operating a support mechanism that supports a coil spring and rotating the coil spring around a specific axis that follows the central axis of the coil spring; a sensor control step of operating a sensor that measures the outer positions of wires of the coil spring and outputs wire data, thereby acquiring the wire data; and a target wire detection step of detecting the outer position of a target wire from the outer positions of the wires of the coil spring included in the wire data.
[0018] According to the wire detection system, control device, control method, and control program of the present invention, it is possible to appropriately detect a target wire from wire data.
[0019] FIG. 1 is a diagram illustrating the configuration of a coating material application system according to an embodiment. FIG. 2 is a diagram illustrating the positional relationship between a sensor and a dispenser. FIG. 3 is a block diagram illustrating the configuration of a control device. FIG. 4 is a flowchart illustrating a control method executed by the control device. FIG. 5 is a flowchart illustrating a target strand detection step (step S4). FIG. 6 is a diagram illustrating the target strand detection step (step S4). FIG. 7 is a diagram illustrating step S5. FIG. 8 is a diagram illustrating step S4A in the next control cycle. FIG. 9 is a diagram illustrating a first modified example of the embodiment. FIG. 10 is a diagram illustrating a second modified example of the embodiment.
[0020] Modes for carrying out the present invention (hereinafter referred to as embodiments) will be described below with reference to the drawings. Note that the present invention is not limited to the embodiments described below. Furthermore, the same parts are given the same reference numerals throughout the drawings. The following describes an example in which the strand detection system according to the present invention is applied to a coating material application system that applies a coating material to a coil spring.
[0021] [Schematic Configuration of Coating Material Application System] FIG. 1 is a diagram showing the configuration of a coating material application system 1 according to an embodiment. As shown in FIG. 1, the coating material application system 1 includes a coating material application device 2 and a control device 3. In the coating material application system 1, the coating material application device 2 operates under the control of the control device 3, thereby applying a coating material such as a thermosetting resin or a thermoplastic resin to a specific position (application position) of the coil spring W. Here, the application position is a portion where the wires of the coil spring W come into contact with each other when the coil spring W is compressed. In other words, applying the coating material to the application position reduces contact damage between the wires of the coil spring W at the application position. In this embodiment, the cross-sectional shape of the wires of the coil spring W is rectangular (see FIGS. 6 and 7 ).
[0022] [Configuration of Coating Material Application Apparatus] First, the configuration of the coating material application apparatus 2 will be described. In describing the configuration of the coating material application apparatus 2, an axis along the vertical direction (the up-down direction in FIG. 1 ) is defined as the Z-axis ( FIG. 1 ), and one of two axes perpendicular to the Z-axis (the axis along the left-right direction in FIG. 1 ) is defined as the Y-axis ( FIG. 1 ). As shown in FIG. 1 , the coating material application apparatus 2 includes a support table 4, a sensor 5, a first moving device 6, a dispenser 7, and a second moving device 8.
[0023] The support base 4 corresponds to the support mechanism according to the present invention. As shown in FIG. 1 , the support base 4 supports a coil spring W. Specifically, the coil spring W is placed on the support base 4 in an orientation in which the central axis of the coil spring W follows the Z axis. The support base 4 includes a servo motor and the like, and is configured to be rotatable around a specific axis Ax ( FIG. 1 ) that follows the central axis of the coil spring W under the control of the control device 3. In this embodiment, the specific axis Ax is an axis parallel to the Z axis.
[0024] The sensor 5 measures the outer shape position of the wire of the coil spring W under the control of the control device 3. In the present embodiment, the sensor 5 is configured as a laser sensor. More specifically, the sensor 5 emits a laser beam in a line shape along the YZ plane from a direction tilted at 45° with respect to the Y-axis and Z-axis. The sensor 5 is configured to receive the laser beam reflected from the wire of the coil spring W using an imaging element such as a CMOS (Complementary Metal Oxide Semiconductor) to measure the profile of the portion of the wire that reflects the line-shaped laser beam. The sensor 5 also outputs wire data indicating the measured outer shape position of the wire of the coil spring W to the control device 3. The tilt angle of the sensor 5 with respect to the Y-axis and Z-axis is not limited to 45° and may be other tilt angles.
[0025] The first moving device 6 supports the sensor 5 and moves the sensor 5. As shown in FIG. 1 , the first moving device 6 includes a slider 61 that supports the sensor 5, a guide rail 62 that extends along the Z axis, a servo motor (not shown), and the like. In the first moving device 6, the slider 61 moves on the guide rail 62 along the Z axis under the control of the control device 3. That is, in this embodiment, the first moving device 6 moves the sensor 5 only along the specific axis Ax.
[0026] The dispenser 7 corresponds to the coating device according to the present invention, and applies the coating material to the coil spring W under the control of the control device 3. Note that the coating device according to the present invention is not limited to the dispenser 7, and other coating devices may also be used.
[0027] The second moving device 8 corresponds to the moving device according to the present invention, and supports the dispenser 7 and moves the dispenser 7. As shown in Fig. 1 , the second moving device 8 includes a slider 81 that supports the dispenser 7, a guide rail 82 that extends along the Y axis, a guide rail 83 that extends along the Z axis, and a servo motor (not shown), etc. In the second moving device 8, under the control of the control device 3, the slider 81 moves on the guide rail 82 along the Y axis, and the guide rail 82 moves on the guide rail 83 along the Z axis. That is, in this embodiment, the second moving device 8 moves the dispenser 7 only along the specific axis Ax and the Y axis.
[0028] [Regarding the Positional Relationship between the Sensor and the Dispenser] Next, the positional relationship between the sensor 5 and the dispenser 7 will be described. Fig. 2 is a diagram illustrating the positional relationship between the sensor 5 and the dispenser 7. Specifically, Fig. 2 is a diagram illustrating the sensor 5 and the dispenser 7 as viewed from above along the Z axis. As shown in Fig. 2, the position PM at which the sensor 5 measures the outer shape position of the wire of the coil spring W and the position PA at which the dispenser 7 applies the coating material to the coil spring W are shifted by a specific angle around a specific axis Ax.
[0029] In this embodiment, the sensor 5 emits a line-shaped laser beam as described above and measures the profile of the portion of the wire of the coil spring W that reflects the line-shaped laser beam. Therefore, the measurement position PM corresponds to the position of the portion. In this embodiment, the specific angle is 180°. Note that the specific angle is not limited to 180° and may be another angle.
[0030] [Configuration of the control device] Next, the configuration of the control device 3 will be described. Fig. 3 is a block diagram showing the configuration of the control device 3. The control device 3 controls the overall operation of the coating material application device 2. As shown in Fig. 3, the control device 3 includes an input unit 31, a storage unit 32, and a control unit 33. The input unit 31 is composed of buttons, switches, a touch panel, etc. that accept user operations, and outputs a signal corresponding to the user operation to the control unit 33.
[0031] The storage unit 32 stores various programs (including the control program according to the present invention) executed by the control unit 33, as well as data and the like required when the control unit 33 performs processing.
[0032] The control unit 33 is realized by a controller such as a central processing unit (CPU) or a micro processing unit (MPU) executing various programs stored in the memory unit 32, and controls the overall operation of the coating material application system 1. The control unit 33 is not limited to a CPU or an MPU, but may also be configured with an integrated circuit such as an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). As shown in FIG. 3 , the control unit 33 includes a support table control unit 331, a sensor control unit 332, a first movement control unit 333, a target fiber detection unit 334, a coating position calculation unit 335, a second movement control unit 336, and a coating device control unit 337. The support table control unit 331 corresponds to the support mechanism control unit according to the present invention. The second movement control unit 336 corresponds to the movement control unit according to the present invention. The detailed functions of the support table control unit 331, the sensor control unit 332, the first movement control unit 333, the target wire detection unit 334, the application position calculation unit 335, the second movement control unit 336, and the application device control unit 337 will be explained in the "Control method executed by the control device" section described below.
[0033] [Control Method Executed by Control Device] Next, a control method executed by the control device 3 will be described. Fig. 4 is a flowchart showing the control method executed by the control device 3. The worker places the coil spring W to be coated on the support base 4. Then, the worker performs a coating start operation on the input unit 31. This causes the control device 3 to execute the control method described below.
[0034] First, the support base control unit 331 rotates the support base 4 at a specific rotation speed around a specific axis Ax (step S1: support mechanism control step). Here, data indicating the specific rotation speed is stored in the storage unit 32. Then, in step S1, the support base control unit 331 reads the data from the storage unit 32 and rotates the support base 4 at a rotation speed based on the data. Note that the data is configured so that the value of the rotation speed can be changed by a user operation on the input unit 31.
[0035] After step S1, the sensor control unit 332 operates the sensor 5 and causes the sensor 5 to measure the outer shape position of the wire of the coil spring W. Then, the sensor control unit 332 acquires wire data from the sensor 5 (step S2: sensor control step). As described above, the sensor 5 is configured to be able to measure the profile of the wire of the coil spring W. Then, the sensor 5 outputs, as the wire data, the position coordinates of each portion of the wire of the coil spring W that reflects the line-shaped laser light output from the sensor 5 (outline equivalent points that correspond to the outer shape position of the wire of the coil spring W).
[0036] After step S2, the first movement control unit 333 operates the first movement device 6 to move the sensor 5 along the Z axis at a specific movement speed (step S3). For example, the sensor 5 is positioned at a position where it can measure the position of one upper end of the wire of the coil spring W placed on the support base 4, and by executing step S3, the sensor 5 moves downward at the specific speed. Note that in this embodiment, the sensor 5 is moved from above downward to apply the coating material from one upper end to the other lower end of the wire of the coil spring W, but the sensor 5 may also be moved from below upward to apply the coating material from the other lower end to one upper end of the wire of the coil spring W.
[0037] Here, the storage unit 32 stores data indicating the distance by which the sensor 5 is moved along the Z axis each time the support base 4 is rotated, for example, by 180°. Then, in step S3, the first movement control unit 333 reads the data from the storage unit 32 and moves the sensor 5 at a movement speed based on the data. Note that the data is configured so that the value of the movement distance can be changed by a user operation on the input unit 31.
[0038] After step S3, the target wire detection unit 334 detects the outer shape position of the target wire from among the outer shape positions of the wires of the coil spring W included in the wire data acquired in step S2 (step S4: target wire detection step).
[0039] FIG. 5 is a flowchart showing the target wire detection step (step S4). FIG. 6 is a diagram illustrating the target wire detection step (step S4). Specifically, FIGS. 6A and 6B show wire data. In addition, in FIGS. 6A and 6B, solid lines L1 to L3 indicate contour-equivalent points corresponding to the contour positions of adjacent wires W1 to W3 (located at different positions in the direction of the specific axis Ax) of the coil spring W in the wire data. Here, solid line L2 indicates a contour-equivalent point corresponding to the contour position of the target wire W2. In FIGS. 6A and 6B, the vertical axis is the first axis constituting the coordinate axis measured by the sensor 5 (hereinafter referred to as the sensor coordinate axis). The horizontal axis is the second axis constituting the sensor coordinate axis. Hereinafter, the Y-axis and Z-axis will be referred to as the device coordinate axis to distinguish them from the sensor coordinate axis. In this embodiment, as described above, the sensor 5 is installed so as to emit a laser beam in a line along the YZ plane from a direction tilted 45° relative to the Y and Z axes. Therefore, the first axis (Z'-axis) from the sensor 5 toward the measurement target (corresponding to the direction of the laser beam output from the sensor 5) and the second axis (Y'-axis) perpendicular to the first axis are rotated 45° relative to the Z and Y axes (see FIG. 7 ). Also, FIG. 6A illustrates a case where there is no contour-equivalent point on the virtual line VL passing through the search start position PS. FIG. 6B illustrates a case where there is a contour-equivalent point on the virtual line VL passing through the search start position PS.
[0040] In step S4, the target strand detection unit 334 first sets a specific search start position PS ( FIG. 6 ) on the second axis Y′ in the strand data acquired in step S2 (step S4A). Here, the control device 3 repeatedly executes a loop of steps S1 to S8. In the first loop of steps S1 to S8, the target strand detection unit 334 sets, for example, the center position of the measurement range of the sensor 5 on the second axis Y′ as the search start position PS in step S4A. The search start position PS is not limited to the center position of the measurement range of the sensor 5 on the second axis Y′, but may be another position on the second axis Y′. In the second or subsequent loops (next control cycles), the target strand detection unit 334 sets a specific position as the search start position PS in step S4A. Step S4A in the next control cycle will be described later in the section “Regarding Step S4A in the Next Control Cycle.”
[0041] After step S4A, the target wire detection unit 334 refers to the wire data acquired in step S2 and starts a search process (step S4B) in which a virtual line VL parallel to the first axis (Z'-axis) is moved sequentially from the search start position PS by a predetermined distance (hereinafter referred to as the virtual line movement pitch) along the second axis (Y'-axis) to extract contour-equivalent points located within a predetermined range (hereinafter referred to as the extraction range RE ( FIG. 6 )) on the virtual line VL. Here, the virtual line movement pitch is a value determined by the measurement resolution of the sensor 5. The extraction range RE is a range determined by the installation positions of the sensor 5 and the coil spring W, and is a range on the first axis (Z'-axis) in which the wire of the coil spring W is expected to exist.
[0042] After step S4B, the target strand detection unit 334 continues the search process until it extracts a contour-equivalent point (step S4C). If it extracts a contour-equivalent point (step S4C: Yes), the target strand detection unit 334 sets the contour-equivalent point as the strand start position and stores the position coordinates of the contour-equivalent point in the storage unit 32 (step S4D).
[0043] Specifically, in step S4D, the target wire detection unit 334 sets the wire start point position as follows. First, assume that there is no contour equivalent point within the extraction range RE on the virtual line VL passing through the search start position PS ((a) of FIG. 6). In this case, in step S4D, the target wire detection unit 334 sets as the wire start point position the contour equivalent point PA' extracted when the virtual line VL is moved the smallest distance from the search start position PS out of two contour equivalent points PA' extracted when the virtual line VL is moved in a first direction Ar1 along the second axis (Y'-axis) from the search start position PS, and another contour equivalent point PB' extracted when the virtual line VL is moved in a second direction Ar2 opposite to the first direction Ar1 along the second axis (Y'-axis).
[0044] Also, assume that the contour-equivalent point PC' is located within the extraction range RE on the virtual line VL passing through the search start position PS (FIG. 6B). In this case, in step S4D, the target strand detection unit 334 sets the contour-equivalent point PC' located within the extraction range RE on the virtual line VL passing through the search start position PS as the strand start position.
[0045] After step S4D, the target strand detection unit 334 sets a search direction in which to move the virtual strand VL (step S4E). Specifically, if there is no contour-equivalent point within the extraction range RE on the virtual strand VL passing through the search start position PS in step S4E (see FIG. 6A), the target strand detection unit 334 sets the direction in which the virtual strand VL is moved when finding the strand start position from the search start position PS as the search direction. That is, in the case of FIG. 6A, the target strand detection unit 334 sets the first direction Ar1 as the search direction ArS.
[0046] On the other hand, if the target wire detection unit 334 finds a contour-equivalent point PC' within the extraction range RE on the virtual line VL passing through the search start position PS ((b) of Figure 6), in step S4E, it sets both the first and second directions Ar1 and Ar2 from the contour-equivalent point PC' (wire starting point position) as search directions ArS.
[0047] After step S4E, the target wire detection unit 334 sets the direction in which the virtual line VL is moved from the wire starting point position as the search direction ArS set in step S4E, and continues the search process until it becomes impossible to extract an outline corresponding point when the virtual line VL is moved by the virtual line movement pitch (step S4F).
[0048] If a contour equivalent point is extracted (step S4F: No), the target strand detection unit 334 determines whether the extracted contour equivalent point satisfies a continuity condition (step S4G), where the distance between the extracted contour equivalent point and the previously extracted contour equivalent point in the first axis (Z'-axis) direction is equal to or less than a specific first threshold value (e.g., 1 mm).
[0049] If it is determined that the continuity condition is satisfied (step S4G: Yes), the target strand detection unit 334 stores the position coordinates of the contour equivalent point determined to satisfy the continuity condition in the storage unit 32, and returns to step S4F. On the other hand, if it is determined that the continuity condition is not satisfied (step S4G: No), or if it is not possible to extract a contour equivalent point when moving the virtual line VL by the virtual line movement pitch (step S4F: Yes), the target strand detection unit 334 ends the search process (step S4H).
[0050] Through the above steps S4A to S4H, the position coordinates of each contour equivalent point corresponding to the contour position of the target wire are stored in the storage unit 32. In the example of Fig. 6, the position coordinates of each contour equivalent point (including the contour equivalent point PA') corresponding to the contour position of the target wire W2 are stored in the storage unit 32.
[0051] After step S4, the application position calculation unit 335 calculates the position coordinates P2 (y, z) of the application position of the coating material on the target wire based on the position coordinates of each contour equivalent point corresponding to the contour position of the target wire detected in step S4 and stored in the memory unit 32 (step S5).
[0052] FIG. 7 is a diagram illustrating step S5. Specifically, FIG. 7 shows the emission area (YZ plane) of the linear laser light emitted from the sensor 5. Note that in FIG. 7, the emission area of the laser light is represented by dots. The Y'-axis and Z'-axis shown in FIG. 7 are sensor coordinate axes. The Y-axis and Z-axis shown in FIG. 7 are device coordinate axes. Specifically, the coating position calculation unit 335 extracts position coordinates P01' (y01', z01') and P02' (y02', z02') from the position coordinates of each outline-equivalent point that corresponds to the outline position of the target wire, which were detected in step S4 and stored in the memory unit 32. The position coordinates P01' (y01', z01') and P02' (y02', z02') are position coordinates on the sensor coordinate axis, and are the position coordinates of two edges with high coordinate values in the Z-axis direction on the region WR (represented by a thick line in FIG. 7) that reflects the linear laser light output from the sensor 5 in the target wire of the coil spring W. The application position calculation unit 335 then calculates the midpoint between the position coordinates P01' (y01', z01') and P02' (y02', z02') of the two edges as the position coordinate P1' (y1', z1') of the application position on the region WR (FIG. 7).
[0053] Next, the application position calculation unit 335 converts the position coordinate P1' (y1', z1') on the sensor coordinate axes into the position coordinate P1 (y1, z1) on the device coordinate axes using the following equation (1): In equation (1), θ is an angle corresponding to the installation position of the sensor 5, and is 45° in this embodiment.
[0054] (Equation 1) y1 = y1' · cos θ - z1' · sin θ z1 = y1' · sin θ + z1' · cos θ (1)
[0055] Finally, the application position calculation unit 335 calculates the position coordinate P2 (y2, z2) by rotating the position coordinate P1 (y1, z1) by 180° around a specific axis Ax (Z axis), and calculates the position coordinate P2 (y2, z2) as the application position.
[0056] After step S5, the second movement control unit 336 operates the second movement device 8 to move the dispenser 7 to a position where the coating material is applied from the dispenser 7 to the application position (position coordinates P2 (y2, z2)) (step S6).
[0057] After step S6, the coating device control unit 337 operates the dispenser 7 at a coating timing when the support base 4 has rotated 180° around the specific axis Ax from the measurement timing, and causes the dispenser 7 to apply the coating material to the coating position (position coordinates P2 (y2, z2)) (step S7). The measurement timing is the timing when the sensor 5 measured the outer shape position of the wire of the coil spring W in step S2.
[0058] After step S7, the second movement control unit 336 operates the second movement device 8 to move the dispenser 7 along the Z axis at a specific movement speed (step S8). The specific movement speed is the same as the specific movement speed of the sensor 5 in step S3.
[0059] By repeatedly performing the above steps S1 to S8, the coating material is applied to the wire of the coil spring W from one end to the other.
[0060] [Regarding Step S4A in the Next Control Cycle] Figure 8 is a diagram illustrating step S4A in the next control cycle. Specifically, Figure 8 corresponds to Figure 6. Figure 8(a) is a diagram illustrating the completion point of step S4 in a predetermined control cycle. Figure 8(b) is a diagram illustrating the start point of step S4 in the control cycle following the control cycle of Figure 8(a). In step S4A in the next control cycle after completing step S4 in the predetermined control cycle, the target wire detection unit 334 sets the center position CP in the second axis (Y'-axis) direction of the outer shape position of the target wire detected in step S4 in the predetermined control cycle as the search start position PS. In this way, the initially detected target wire is continuously tracked.
[0061] The present embodiment described above provides the following advantages. In the wire detection system according to this embodiment, the control device 3 rotates the support table 4 about a specific axis Ax. The control device 3 also operates the sensor 5 and acquires wire data from the sensor 5. Furthermore, the control device 3 detects the outer contour position of a target wire from among the outer contour positions of the wires of the coil spring W included in the wire data. More specifically, the control device 3 references the wire data and executes a search process in which the virtual line VL is moved from the search start position PS along a second axis (Y'-axis) to extract outer contour equivalent points located on the virtual line VL, and detects the multiple outer contour equivalent points consecutively extracted by the search process as the outer contour positions of the target wire. Therefore, even if the wire data includes multiple adjacent wires of the coil spring W (wires W1 to W3 in the example of FIG. 6 ), the outer contour position of the target wire (wire W2 in the example of FIG. 6 ) can be appropriately detected.
[0062] For example, in this embodiment, the wire data processing system is applied to a coating material application system 1 that applies a coating material to a coil spring W. The control device 3 calculates the application position of the coating material on the target wire based on the position coordinates of each contour-equivalent point that corresponds to the detected contour position of the target wire. The control device 3 also moves the second moving device 8 to move the dispenser 7 to a position where the coating material will be applied from the dispenser 7 to the application position, and operates the dispenser 7 to apply the coating material from the dispenser 7 to the application position. Therefore, even if the wire data includes multiple adjacent wires in the coil spring W (wires W1 to W3 in the example of FIG. 6 ), the coating material can be applied with high precision to the appropriate application position of the target wire (wire W2 in the example of FIG. 6 ).
[0063] In this embodiment, the control device 3 detects, as the outline position of the target wire, a plurality of outline equivalent points, including the outline equivalent point extracted when the virtual line VL is moved the smallest distance from the search start position PS (outline equivalent point PA' in the example of FIG. 6A ), out of the outline equivalent points extracted when the virtual line VL is moved from the search start position PS in the first direction Ar1 along the second axis (Y'-axis) and the outline equivalent points extracted when the virtual line VL is moved from the search start position PS in the second direction Ar2 along the second axis (Y'-axis) (outline equivalent point PB' in the example of FIG. 6A ). Then, in the search process in the next control cycle after detecting the outline position of the target wire, the control device 3 sets the center position CP in the second axis (Y'-axis) direction at the outline position of the target wire as the search start position PS. Therefore, the external position of the target wire that was initially detected can be quickly detected in subsequent control cycles, and the wire can be continuously tracked.
[0064] 6A, adjacent wires W1 and W2 may be measured in an overlapping state in the wire data, as indicated by the dashed-dotted line L4 for the wire W1. In such a case, the outline-equivalent point PD' corresponding to the outline position of the wire W2 and the outline-equivalent point PE' corresponding to the outline position of the wire W1 are separated by the imaginary line movement pitch in the second axis (Y'-axis) direction and are located within the extraction range RE. Therefore, the wire W2 and the wire W1 indicated by the dashed-dotted line L4 are detected as the outline position of the target wire. In contrast, in this embodiment, the control device 3 executes step S4G to search and extract only the outline-equivalent points PD' and PE' adjacent in the second axis (Y'-axis) direction (separated by the imaginary line movement pitch in the second axis (Y'-axis) direction) where the separation distance in the first axis (Z'-axis) direction is equal to or less than a specific first threshold. Therefore, the outer contour equivalent point PE' is not detected as the outer contour position of the target wire, and only the wire W2 can be detected as the outer contour position of the target wire.
[0065] Furthermore, in this embodiment, the sensor 5 measures the outer shape position of the wire of the coil spring W from directions that intersect the specific axis Ax and a plane orthogonal to the specific axis Ax. Therefore, the outer shape position of the upper or lower surface of the wire of the coil spring W can be accurately measured. In particular, when the sensor 5 is positioned in this manner, it is easy to measure the adjacent wires W1, W2 in an overlapping state, as described above. Therefore, by combining such an arrangement of the sensor 5 with step S4G, it is possible to appropriately detect the outer shape position of the target wire while accurately detecting the outer shape position of the upper or lower surface of the target wire.
[0066] Other Embodiments Up to this point, embodiments for carrying out the present invention have been described, but the present invention should not be limited to the above-described embodiments. In the above-described embodiments, the wire detection system according to the present invention is applied to the coating material application system 1, but the present invention is not limited to this. For example, the wire detection system according to the present invention may be applied to a coil spring inspection system that detects the outer position of a target wire, calculates position coordinates and dimensions of a specific location corresponding to the outer position of the target wire, and inspects the coil spring W. Furthermore, for example, the wire detection system according to the present invention may be applied to a coil spring processing system that detects the outer position of a target wire, calculates position coordinates of a specific location corresponding to the outer position of the target wire, and processes the coil spring W at the position of the coordinates.
[0067] In the above-described embodiment, the first moving device 6 moves the sensor 5 only along the Z axis, but the present invention is not limited to this and may be configured to move the sensor 5 in the Y axis or X axis direction in addition to the Z axis. Similarly, the second moving device 8 moves the dispenser 7 only along the Z axis and the Y axis, but the present invention is not limited to this and may be configured to move the dispenser 7 in the X axis direction in addition to the Z axis and the Y axis.
[0068] In the above-described embodiment, the first moving device 6 moves the sensor 5 along the Z axis relative to the coil spring W, but this is not limiting, and the coil spring W (support base 4) may be moved along the Z axis relative to the sensor 5. Furthermore, if the measurement range of the sensor 5 covers the entire coil spring W, the first moving device 6 may not be provided.
[0069] In the embodiment described above, the second movement control unit 336 operates the second moving device 8 to move the dispenser 7 to a position where the coating material is applied from the dispenser 7 to the application position (position coordinates P2 (y2, z2)), but this is not limiting. The second movement control unit 336 only needs to move the dispenser 7 and the support base 4 relatively to each other and position the dispenser 7 at a position where the coating material is applied from the dispenser 7 to the application position (position coordinates P2 (y2, z2)), and may, for example, move the support base 4 relative to the dispenser 7.
[0070] In the above-described embodiment, a laser sensor is used as the sensor 5. However, the present invention is not limited to this, and a camera, a TOF (Time Of Flight) sensor, or the like may be used as long as it is possible to measure the external position of the wire of the coil spring W.
[0071] In step S4 according to the embodiment described above, step S4G may not be executed. That is, when the target strand detection unit 334 extracts a contour-equivalent point (step S4F: No), the target strand detection unit 334 stores the position coordinates of the contour-equivalent point in the storage unit 32 and returns to step S4F. Note that, similarly, in Modification 1 described later, step S4G may not be executed.
[0072] In the above-described embodiment, the support base 4 is used as the support mechanism according to the present invention, but this is not limiting and other configurations may be used as long as they support the coil spring W and allow the coil spring W to rotate about a specific axis Ax that follows the central axis of the coil spring W. For example, a robot arm may be used as the support mechanism according to the present invention, and a configuration may be used in which the coil spring W is suspended by the robot arm and rotates the coil spring W about a specific axis that follows the central axis of the coil spring W. Furthermore, for example, a configuration may be used as the support mechanism according to the present invention in which the coil spring W is supported with its central axis facing horizontally and the coil spring W is rotated about a specific axis that follows the central axis.
[0073] The above-described embodiment may employ the following modified example 1. Fig. 9 is a diagram illustrating the modified example 1 of the embodiment. In the target strand detection step (step S4) according to this modified example 1, as shown in Fig. 9, steps S4I and S4J are added to the target strand detection step (Fig. 5) described in the above-described embodiment. Steps S4I and S4J will be mainly described below.
[0074] Step S4I is executed when it is determined that the continuity condition is not satisfied (step S4G: No), or when no contour-equivalent points can be extracted when the virtual line VL is moved by the virtual line movement pitch (step S4F: Yes). Specifically, in step S4I, the target strand detection unit 334 determines whether each contour-equivalent point extracted in the search process and stored in the storage unit 32 satisfies a non-noise condition. Here, the non-noise condition is that the number of contour-equivalent points extracted in the search process and stored in the storage unit 32 exceeds a specific second threshold.
[0075] If it is determined that the non-noise condition is not satisfied (step S4I: No), that is, if the number of contour equivalent points extracted in the search process and stored in the storage unit 32 is equal to or less than a specific second threshold, the target wire detection unit 334 determines that the contour equivalent points are noise, changes the search start position PS (step S4J), and returns to step S4B. Then, the target wire detection unit 334 redoes the search process and detects the contour position of the target wire again.
[0076] On the other hand, if it is determined that the non-noise condition is met (step S4I: Yes), that is, if the number of each contour equivalent point extracted by the search process and stored in the memory unit 32 exceeds a specific second threshold, the target wire detection unit 334 determines that each contour equivalent point is not noise and proceeds to step S4H.
[0077] The above-described first modification provides the same effects as the above-described embodiment, as well as the following effects. In the first modification, if the number of contour equivalent points extracted in the search process and stored in the memory unit 32 is equal to or less than a specific second threshold, the control device 3 redoes the search process and detects the contour position of the target wire again. This prevents noise contained in the wire data from being extracted as contour equivalent points, making it possible to more appropriately detect the contour position of the target wire.
[0078] The above-described embodiment may employ a second modified example, as described below. FIG. 10 is a diagram illustrating the second modified example of the embodiment. Specifically, FIG. 10 is a diagram corresponding to FIG. 7 . In this second modified example, the cross-sectional shape of the wire of the coil spring W is a circle. In this second modified example, the application position calculation unit 335 executes step S5 as described below. Specifically, the application position calculation unit 335 first extracts position coordinates P0′ (y0′, z0′) and a radius R from the position coordinates of each outline-equivalent point corresponding to the target outline position of the wire, which were detected in step S4 and stored in the memory unit 32. The position coordinates P0′ (y0′, z0′) are position coordinates on the sensor coordinate axis and are the position coordinates of the vertex of a portion WA (represented by a thick line in FIG. 10 ) in the wire of the coil spring W that reflects the linear laser light output from the sensor 5. The radius R is the radius of a virtual circle that includes the portion WA. Furthermore, the application position calculation unit 335 calculates the position coordinate P1' (y1', z1') of the application position on the area WA using the following equation (2) based on the position coordinate P0' (y0', z0') and the radius R. The position coordinate P1' (y1', z1') is a position coordinate on the sensor coordinate axes, and is the position coordinate with the highest coordinate value in the Z-axis direction on a virtual circle that includes the area WA ( FIG. 10 ). In equation (2), θ is an angle corresponding to the installation position of the sensor 5, and is 45° in this second modification.
[0079] (Math. 2) y1'=y0'-R・sinθ z1'=z0'-(R-R・cosθ) ...(2)
[0080] Next, the application position calculation unit 335 calculates the position coordinates P1 (y1, z1) and P2 (y2, z2) from the position coordinates P1' (y1', z1') calculated using equation (2), as in the above-described embodiment.
[0081] REFERENCE SIGNS LIST 1 Coating material application system 2 Coating material application device 3 Control device 4 Support table 5 Sensor 6 First moving device 7 Dispenser 8 Second moving device 31 Input unit 32 Memory unit 33 Control unit 61 Slider 62 Guide rail 81 Slider 82, 83 Guide rail 331 Support table control unit 332 Sensor control unit 333 First movement control unit 334 Target wire detection unit 335 Application position calculation unit 336 Second movement control unit 337 Application device control unit Ar1 First direction Ar2 Second direction ArS Search direction Ax Specific axis CP Center position L1 to L3 Solid line L4 Dot-dash line PA Application position PA' to PE' Outline equivalent point PM Measurement position PS Search start position RE Extraction range VL Virtual line W Coil spring W1 to W3 wire WA, WR part
Claims
1. A wire detection system comprising: a support mechanism that supports a coil spring and enables the coil spring to rotate around a specific axis that follows the central axis of the coil spring; a sensor that measures the outer position of the wire of the coil spring and outputs wire data; and a control device that controls the operation of the support mechanism and the sensor, wherein the control device comprises: a support mechanism control unit that operates the support mechanism and rotates the coil spring around the specific axis; a sensor control unit that operates the sensor and obtains the wire data from the sensor; and a target wire detection unit that detects the outer position of a target wire from the outer positions of the wire of the coil spring included in the wire data.
2. The wire detection system of claim 1, wherein the wire data includes an outline equivalent point corresponding to the outline position of the wire of the coil spring measured by the sensor on a sensor coordinate axis including a first axis from the sensor toward the object to be measured and a second axis perpendicular to the first axis, and the target wire detection unit refers to the wire data and executes a search process in which a virtual line parallel to the first axis is moved along the second axis from a specific search start position on the second axis to extract the outline equivalent point located on the virtual line, and detects the multiple outline equivalent points extracted in succession by the search process as the outline positions of the target wire.
3. The wire detection system of claim 2, wherein the target wire detection unit detects as the outer peripheral position of the target wire a plurality of outer peripheral equivalent points including the outer peripheral equivalent point extracted when the virtual line is moved the smallest amount from the search start position out of the outer peripheral equivalent point extracted when the virtual line is moved in a first direction along the second axis from the search start position and the outer peripheral equivalent point extracted when the virtual line is moved in a second direction opposite to the first direction along the second axis from the search start position.
4. The wire detection system of claim 3, wherein the target wire detection unit repeatedly executes the search process to detect the outer circumferential position of the target wire at a specific control period, and in the search process at the next control period after detecting the outer circumferential position of the target wire, the center position in the second axial direction at the outer circumferential position of the target wire is set as the search start position.
5. The wire detection system of claim 2, wherein the target wire detection unit extracts, through the search process, only those contour equivalent points whose separation distance in the first axial direction between adjacent contour equivalent points in the second axial direction is equal to or less than a specific first threshold value.
6. The wire detection system of claim 2, wherein the target wire detection unit, when the number of the multiple contour equivalent points is equal to or less than a specific second threshold, redoes the search process and detects the contour position of the target wire again.
7. The wire detection system of claim 1, further comprising an application device which applies a coating material to the coil spring, wherein the control device comprises: an application position calculation unit which calculates an application position of the coating material to the target wire based on the external position of the target wire; a movement control unit which moves the application device and the support mechanism relatively to one another, and positions the application device at a position where the coating material can be applied from the application device to the application position; and an application device control unit which operates the application device and applies the coating material from the application device to the application position.
8. The wire detection system of claim 7, further comprising a moving device that supports the coating device and moves the coating device, wherein the movement control unit operates the moving device to position the coating device at a position where the coating material is applied from the coating device to the coating position.
9. A wire detection system as claimed in claim 1, wherein the sensor measures the outer position of the wire of the coil spring from directions intersecting the specific axis and a plane perpendicular to the specific axis.
10. A control device comprising: a support mechanism control unit that operates a support mechanism that supports a coil spring and rotates the coil spring around a specific axis that follows the central axis of the coil spring; a sensor control unit that operates a sensor that measures the outer position of the wire of the coil spring and outputs wire data, thereby acquiring the wire data; and a target wire detection unit that detects the outer position of a target wire from the outer positions of the wire of the coil spring included in the wire data.
11. A control method executed by a control device of a wire detection system, comprising: a support mechanism control step of operating a support mechanism that supports a coil spring and rotating the coil spring around a specific axis that follows the central axis of the coil spring; a sensor control step of operating a sensor that measures the outer position of the wire of the coil spring and outputs wire data, thereby acquiring the wire data; and a target wire detection step of detecting the outer position of a target wire from the outer positions of the wire of the coil spring included in the wire data.
12. A control program for causing a computer to execute the following steps: a support mechanism control step of operating a support mechanism that supports a coil spring and rotating the coil spring around a specific axis that follows the central axis of the coil spring; a sensor control step of operating a sensor that measures the outer position of the wire of the coil spring and outputs wire data, thereby acquiring the wire data; and a target wire detection step of detecting the outer position of a target wire from the outer positions of the wire of the coil spring included in the wire data.
Citation Information
Patent Citations
Apparatus and method for measuring shape of coil spring
JP2010101693A
Suspension spring
JP2007308067A
Manufacturing method of resin coating spring, and resin coating spring
JP2017180537A
Shape measuring method for coil spring and shape measuring apparatus
WO2016104651A1
Method and spring winding machine for producing coil springs
WO2022017785A1
