Embroidery machine frame movement control method and system

By placing the origin positioning block in the embroidery machine, installing limit sensors, calculating the embroidery range and executing the interpolation algorithm, the problems of position adjustment deviation of the embroidery machine's limit switch, pattern aliasing and out-of-frame problems are solved, and an efficient and accurate embroidery machine is realized. Frame movement control improves embroidery precision and pattern change efficiency.

CN114563984BActive Publication Date: 2024-10-18ZHEJIANG XINSHENG SEWING EQUIP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210218435.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-04
Publication Date
2024-10-18
Estimated Expiration
2042-03-04

AI Technical Summary

Technical Problem

The existing embroidery machine frame drive system has problems such as limit switch position adjustment deviation, position recognition error after shutdown, pattern aliasing, pattern beyond the scope of the embroidery frame, and pattern origin offset, resulting in pattern scrapping and long changeover time.

Method used

By placing the origin positioning block, installing the limit sensor, calculating the embroidery range, judging that the pattern exceeds the embroidery frame, recording and verifying the motor code value, and executing the interpolation algorithm to achieve precise position control and automatic judgment, ensure that the pattern is within the embroidery range. And it will automatically return to the embroidery stop point after stopping the machine.

Benefits of technology

It realizes multi-pattern switching without recalibrating the origin, improves the efficiency of pattern change, prevents patterns from crossing the frame, improves embroidery precision and control efficiency, ensures that the origin of the embroidery machine is not offset, and increases embroidery speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_1
    Figure SMS_1
  • Figure SMS_2
    Figure SMS_2
  • Figure SMS_3
    Figure SMS_3
Patent Text Reader

Abstract

The present invention provides an embroidery machine frame movement control method and system for improving the frame movement efficiency and movement accuracy. An embroidery machine frame movement control method, the method specifically includes the following steps: determining the machine origin; fixing the negative limit sensor; fixing the positive limit sensor; calculating the embroidery range of the embroidery machine according to the positive limit position and the negative limit position; reading the pattern parameters to be embroidered through a control device; setting the embroidery starting point; making the frame move according to the pattern parameters to embroider, and each time a stitch in the pattern parameters is completed, the number of pattern stitches and the current coordinate position information L are recorded. n The corresponding absolute code value is written into the control device; it is confirmed whether the absolute code value of the current motor controller is consistent with the absolute code value recorded by the control device when the last stitch is completed before stopping, and the control device controls the frame to return to the stop embroidery point and perform subsequent pattern embroidery. The present invention improves the efficiency of changing patterns and increases the frame movement execution speed of the embroidery machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an embroidery machine control method, in particular to an embroidery machine frame movement control method and system, belonging to the technical field of embroidery machines. Background Art

[0002] The existing embroidery machine frame drive system consists of a servo motor and two limit switches, and the servo motor uses an incremental encoder. Specifically, it takes a limit switch as the origin, and the servo motor encoder feedback is used to drive the frame to move to a certain position after software calculation, but there are the following disadvantages: First, due to production needs, the position of the limit switch needs to be adjusted frequently, and after each position adjustment, the saved position parameters will deviate, and all patterns need to be repositioned; second, when the embroidery machine is turned off, the frame cannot recognize the current position after moving, and the position must be re-adjusted every time it is restarted, and the pattern often becomes distorted and scrapped; third, if the power is suddenly cut off during the embroidery process, manual positioning must be performed, otherwise the pattern will be scrapped due to distortion; fourth, the current control system cannot cover the embroidery range of the entire frame, and cannot automatically determine whether the embroidery pattern will exceed the range of the embroidery frame; fifth, the pattern origin position will be offset after a long time, and it is often necessary to recalibrate after switching between different patterns, resulting in a long time for pattern change. Summary of the invention

[0003] Based on the above background, the purpose of the present invention is to provide an embroidery machine frame movement control method and system that improve the frame movement efficiency and movement accuracy, and solve the problems described in the background technology.

[0004] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:

[0005] A method for controlling movement of an embroidery machine frame, the method specifically comprising the following steps:

[0006] Place the origin positioning block on the frame, move the frame so that the positioning point hole of the origin positioning block coincides with the head pin plate hole, determine the point position as the machine origin and write the point position coordinate information L0 into the machine origin parameter item of the control device;

[0007] The motor is operated to a position close to the negative limit so that the frame reaches the negative limit position, a negative limit sensor is installed to sense the negative limit position, the negative limit sensor is fixed, and the position coordinate information of the point is written into the negative limit parameter item of the control device;

[0008] The motor is operated to a position close to the positive limit so that the frame reaches the positive limit position, a positive limit sensor is installed to sense the positive limit position, the positive limit sensor is fixed, and the position coordinate information of the point is written into the positive limit parameter item of the control device;

[0009] Calculate the embroidery range of the embroidery machine based on the positive limit position and the negative limit position;

[0010] Read the pattern parameters to be embroidered through the control device;

[0011] Move the frame to the embroidery position so that the pattern is within the embroidery range. The control device determines whether the pattern exceeds the embroidery frame. If the pattern is determined to be beyond the embroidery frame, it is prompted that the embroidery start point needs to be reset. If the pattern is determined to be within the embroidery frame, the current frame position coordinate information L1 is written into the embroidery start point parameter item of the control device.

[0012] The frame moves according to the pattern parameters to embroider. Each time a stitch in the pattern parameters is completed, the number of pattern stitches and the current coordinate position information L n The corresponding absolute coding value is written into the control device; if the embroidery machine stops during embroidery, after restarting, confirm whether the absolute coding value of the current motor controller is consistent with the absolute coding value recorded by the control device when the last stitch was completed before the stop. If the two are offset, the control device prompts that the embroidery position has changed and requests to return to the stop point. The control device controls the frame to execute the return to the stop point. After the frame returns to the stop point, it continues to execute subsequent pattern embroidery until the pattern embroidery is completed.

[0013] Preferably, the frame is provided with an X-axis moving unit and a Y-axis moving unit for driving the frame to move along the X-axis and Y-axis directions, the X-axis moving unit includes an X-axis motor, an X-axis motor controller and an X-axis moving carrier, the Y-axis moving unit includes a Y-axis motor, a Y-axis motor controller and a Y-axis moving carrier, and the X-axis motor controller and the Y-axis motor controller are both absolute encoders.

[0014] Preferably, the method in which the control device controls the frame to execute the return to the embroidery stop point specifically comprises the following steps:

[0015] The control device reads the position coordinate information L0 of the machine origin parameter item and the frame position coordinate information L0 when the last needle is completed before stopping. n1 And the frame position coordinate information after restarting L n2 ,

[0016] According to L n2 -L0 calculation formula to get the motor rotation amount R1, according to L n1 The motor rotation amount R2 is obtained by the calculation formula of -L0, and the motor rotation amount R3 required to return to the stop embroidery point is obtained according to the calculation formula of R2-R1, and the motor is controlled to rotate at the rotation amount of -R3 to make the frame return to the stop embroidery point.

[0017] Preferably, the frame is moved according to the pattern parameters to perform embroidery by a control device executing an interpolation algorithm to control the operation of a motor, wherein the interpolation algorithm comprises the following steps:

[0018] Determine the starting point coordinates (x0, y0) and the ending point coordinates (x1, y1) according to the pattern parameters;

[0019] Calculate the determination variables of the starting point interpolation direction and the ending point interpolation direction. The determination variables of the starting point interpolation direction are calculated using the following formula:

[0020] d l =y0-mx0-0·5

[0021] Where, d l is the determination variable of the interpolation direction of the current point, m=d y / d x , d y =y1-y0,d x =x1-x0;

[0022] The determination variable of the end point interpolation direction is calculated using the following formula:

[0023]

[0024] Where, d l+1 is the determining variable for the interpolation direction of the next point, d l is the determination variable of the interpolation direction of the current point, d y =y1-y0, d x =x1-x0;

[0025] The motor movement is controlled according to the calculated value of the judgment variable and the value of m. If m<1, when d l >0, the X-axis motor and the Y-axis motor are controlled to move forward at the same time. l ≤0, only the X-axis motor is controlled to move forward. If m>1, when d l <0 controls the X-axis motor and the Y-axis motor to move forward at the same time. l When ≥0, only the Y-axis motor is controlled to move forward.

[0026] An embroidery machine frame movement control system, comprising:

[0027] A frame used to hold and tighten the fabric being embroidered;

[0028] A moving device connected to the frame, the moving device comprising an X-axis moving unit and a Y-axis moving unit, the X-axis moving unit comprising an X-axis motor, an X-axis motor controller and an X-axis moving carrier, the Y-axis moving unit comprising a Y-axis motor, a Y-axis motor controller and a Y-axis moving carrier, the X-axis motor controller and the Y-axis motor controller are both absolute encoders;

[0029] A control device, electrically connected to the mobile device, the control device comprising a storage unit and a processing unit;

[0030] The storage unit is used to store machine origin parameter items, negative limit parameter items, positive limit parameter items, embroidery starting point parameter items, and the number of stitches per stitch and current coordinate position information L n The corresponding absolute code value;

[0031] The processing unit is used to execute the steps of writing the machine origin position coordinate information L0 into the machine origin parameter item of the storage unit; making the motor run close to the negative limit so that the frame reaches the negative limit position and writing the position coordinate information of the point into the negative limit parameter item of the storage unit; making the motor run close to the positive limit so that the frame reaches the positive limit position and writing the position coordinate information of the point into the positive limit parameter item of the storage unit; calculating the embroidery range of the embroidery machine according to the positive limit position and the negative limit position; reading the pattern parameters to be embroidered; moving the frame to the embroidery position so that the pattern is within the embroidery range, judging whether the pattern exceeds the embroidery frame, if judging that the pattern exceeds the embroidery frame, prompting that the embroidery start point needs to be reset, and if judging that the pattern does not exceed the embroidery frame, writing the current frame position coordinate information L1 into the embroidery start point parameter item of the storage unit; making the frame move according to the pattern parameters to embroider, and each time a stitch in the pattern parameters is completed, the number of stitches of the pattern and the current coordinate position information L1 are stored in the embroidery start point parameter item of the storage unit. n The corresponding absolute code value is written into the storage unit; if the embroidery machine stops during embroidery, after restarting, confirm whether the absolute code value of the current motor controller is consistent with the absolute code value recorded in the storage unit when the last stitch was completed before the stop. If the two are offset, it is prompted that the embroidery position has changed and requests to return to the stop point. The control frame executes to return to the stop point. After the frame returns to the stop point, it continues to execute subsequent pattern embroidery until the pattern embroidery is completed.

[0032] Preferably, the processing unit is further used to read the position coordinate information L0 of the machine origin parameter item, the frame position coordinate information L1 of the last completed needle before stopping, and the frame position coordinate information L2 of the last completed needle before stopping. n1 And the frame position coordinate information after restarting L n2 , according to L n2 -L0 calculation formula to get the motor rotation amount R1, according to L n1 The motor rotation amount R2 is obtained by the -L0 calculation formula, and the motor rotation amount R3 required to return to the stop embroidery point is obtained according to the R2-R1 calculation formula, and the motor is controlled to rotate at the rotation amount of -R3 to make the frame return to the stop embroidery point.

[0033] Preferably, the processing unit is further used to execute an interpolation algorithm to control the operation of the motor, and the interpolation algorithm comprises the following steps:

[0034] Determine the starting point coordinates (x0, y0) and the ending point coordinates (x1, y1) according to the pattern parameters;

[0035] Calculate the determination variables of the starting point interpolation direction and the ending point interpolation direction. The determination variables of the starting point interpolation direction are calculated using the following formula:

[0036] d l =y0-mx0-0·5

[0037] Where, d l is the determination variable of the interpolation direction of the current point, m=d y / d x , d y =y1-y0,d x =x1-x0;

[0038] The determination variable of the end point interpolation direction is calculated using the following formula:

[0039]

[0040] Where, d l+1 is the determining variable for the interpolation direction of the next point, d l is the determination variable of the interpolation direction of the current point, d y =y1-y0, d x =x1-x0;

[0041] The motor movement is controlled according to the calculated value of the judgment variable and the value of m. If m<1, when d l >0 controls the X-axis motor and the Y-axis motor to move forward simultaneously. l ≤0, only the X-axis motor is controlled to move forward. If m>1, when d l <0 controls the X-axis motor and the Y-axis motor to move forward at the same time. l When ≥0, only the Y-axis motor is controlled to move forward.

[0042] Compared with the prior art, the present invention has the following advantages:

[0043] The present invention provides an embroidery machine frame movement control method and system, which realizes that when multiple patterns are switched, there is no need to re-determine and calibrate the pattern origin, thereby improving the efficiency of pattern change; automatically determines whether the pattern exceeds the embroidery range before embroidering, thereby preventing the pattern from crossing the frame; ensures that the embroidery machine origin is not offset, thereby improving the embroidery accuracy; improves the control efficiency of the control device for the motor during embroidery, improves the calculation efficiency of interpolation, and improves the frame movement execution speed of the embroidery machine. DETAILED DESCRIPTION

[0044] The technical solution of the present invention is further described in detail below through specific embodiments. It should be understood that the implementation of the present invention is not limited to the following embodiments, and any form of modification and / or change made to the present invention will fall within the protection scope of the present invention.

[0045] In the present invention, unless otherwise specified, all parts and percentages are weight units, and the equipment and raw materials used can be purchased from the market or are commonly used in the art. The methods in the following embodiments, unless otherwise specified, are conventional methods in the art. The components or equipment in the following embodiments, unless otherwise specified, are universal standard parts or components known to those skilled in the art, and their structures and principles are known to those skilled in the art through technical manuals or conventional experimental methods.

[0046] An embodiment of the present invention discloses a method for controlling movement of an embroidery machine frame, the method specifically comprising the following steps:

[0047] Place the origin positioning block on the frame, move the frame so that the positioning point hole of the origin positioning block coincides with the head pin plate hole, determine the point position as the machine origin and write the point position coordinate information L0 into the machine origin parameter item of the control device;

[0048] The motor is operated to a position close to the negative limit so that the frame reaches the negative limit position, a negative limit sensor is installed to sense the negative limit position, the negative limit sensor is fixed, and the position coordinate information of the point is written into the negative limit parameter item of the control device;

[0049] The motor is operated to a position close to the positive limit so that the frame reaches the positive limit position, a positive limit sensor is installed to sense the positive limit position, the positive limit sensor is fixed, and the position coordinate information of the point is written into the positive limit parameter item of the control device;

[0050] Calculate the embroidery range of the embroidery machine based on the positive limit position and the negative limit position;

[0051] Read the pattern parameters to be embroidered through the control device;

[0052] Move the frame to the embroidery position so that the pattern is within the embroidery range. The control device determines whether the pattern exceeds the embroidery frame. If the pattern is determined to be beyond the embroidery frame, it is prompted that the embroidery start point needs to be reset. If the pattern is determined to be within the embroidery frame, the current frame position coordinate information L1 is written into the embroidery start point parameter item of the control device.

[0053] The frame moves according to the pattern parameters to embroider. Each time a stitch in the pattern parameters is completed, the number of pattern stitches and the current coordinate position information L n The corresponding absolute coding value is written into the control device; if the embroidery machine stops during embroidery, after restarting, confirm whether the absolute coding value of the current motor controller is consistent with the absolute coding value recorded by the control device when the last stitch was completed before the stop. If the two are offset, the control device prompts that the embroidery position has changed and requests to return to the stop point. The control device controls the frame to execute the return to the stop point. After the frame returns to the stop point, it continues to execute subsequent pattern embroidery until the pattern embroidery is completed.

[0054] The frame is provided with an X-axis moving unit and a Y-axis moving unit for driving the frame to move along the X-axis and Y-axis directions. The X-axis moving unit includes an X-axis motor, an X-axis motor controller and an X-axis moving carrier. The Y-axis moving unit includes a Y-axis motor, a Y-axis motor controller and a Y-axis moving carrier. Both the X-axis motor controller and the Y-axis motor controller are absolute encoders.

[0055] The method for the control device to control the frame to return to the embroidery stop point specifically includes the following steps:

[0056] The control device reads the position coordinate information L0 of the machine origin parameter item and the frame position coordinate information L0 when the last needle is completed before stopping. n1 And the frame position coordinate information after restarting L n2 ,

[0057] According to L n2 -L0 calculation formula to get the motor rotation amount R1, according to L n1 The motor rotation amount R2 is obtained by the calculation formula of -L0, and the motor rotation amount R3 required to return to the stop embroidery point is obtained according to the calculation formula of R2-R1, and the motor is controlled to rotate at the rotation amount of -R3 to make the frame return to the stop embroidery point.

[0058] The above-mentioned process of making the frame move according to the pattern parameters to perform embroidery is realized by the control device executing the interpolation algorithm to control the operation of the motor, and the interpolation algorithm includes the following steps:

[0059] Determine the starting point coordinates (x0, y0) and the ending point coordinates (x1, y1) according to the pattern parameters;

[0060] Calculate the determination variables of the starting point interpolation direction and the ending point interpolation direction. The determination variables of the starting point interpolation direction are calculated using the following formula:

[0061] d l =y0-mx0-0·5

[0062] Where, d l is the determination variable of the interpolation direction of the current point, m=d y / d x , d y =y1-y0,d x =x1-x0;

[0063] The determination variable of the end point interpolation direction is calculated using the following formula:

[0064]

[0065] Where, d l+1 is the determining variable for the interpolation direction of the next point, d l is the determination variable of the interpolation direction of the current point, dy =y1-y0, d x =x1-x0;

[0066] The motor movement is controlled according to the calculated value of the judgment variable and the value of m. If m<1, when d l >0 controls the X-axis motor and the Y-axis motor to move forward simultaneously. l ≤0, only the X-axis motor is controlled to move forward. If m>1, when d l <0 controls the X-axis motor and the Y-axis motor to move forward at the same time. l When ≥0, only the Y-axis motor is controlled to move forward.

[0067] The embodiment of the present invention further discloses an embroidery machine frame movement control system, comprising:

[0068] A frame used to hold and tighten the fabric being embroidered;

[0069] A moving device connected to the frame, the moving device comprising an X-axis moving unit and a Y-axis moving unit, the X-axis moving unit comprising an X-axis motor, an X-axis motor controller and an X-axis moving carrier, the Y-axis moving unit comprising a Y-axis motor, a Y-axis motor controller and a Y-axis moving carrier, the X-axis motor controller and the Y-axis motor controller are both absolute encoders;

[0070] A control device, electrically connected to the mobile device, the control device comprising a storage unit and a processing unit;

[0071] The storage unit is used to store the machine origin parameter item, negative limit parameter item, positive limit parameter item, embroidery starting point parameter item, as well as the number of stitches per stitch and the current coordinate position information L n The corresponding absolute code value;

[0072] The processing unit is used to execute the writing of the machine origin position coordinate information L0 into the machine origin parameter item of the storage unit; the running of the motor close to the negative limit makes the frame reach the negative limit position and writes the position coordinate information of the point into the negative limit parameter item of the storage unit; the running of the motor close to the positive limit makes the frame reach the positive limit position and writes the position coordinate information of the point into the positive limit parameter item of the storage unit; the embroidery range of the embroidery machine is calculated according to the positive limit position and the negative limit position; the pattern parameters to be embroidered are read; the frame is moved to the embroidery position so that the pattern is within the embroidery range, and it is judged whether the pattern exceeds the embroidery frame. If it is judged that the pattern exceeds the embroidery frame, it is prompted that the embroidery start point needs to be reset. If it is judged that the pattern does not exceed the embroidery frame, the current frame position coordinate information L1 is written into the embroidery start point parameter item of the storage unit; the frame is moved according to the pattern parameters to perform embroidery, and each time a stitch in the pattern parameters is completed, the number of stitches of the pattern and the current coordinate position information L1 are written into the embroidery start point parameter item of the storage unit. nThe corresponding absolute code value is written into the storage unit; if the embroidery machine stops during embroidery, after restarting, confirm whether the absolute code value of the current motor controller is consistent with the absolute code value recorded in the storage unit when the last stitch was completed before the stop. If the two are offset, it is prompted that the embroidery position has changed and requests to return to the stop point. The control frame executes to return to the stop point. After the frame returns to the stop point, it continues to execute subsequent pattern embroidery until the pattern embroidery is completed.

[0073] In this embodiment, the processing unit is also used to execute the reading of the position coordinate information L0 of the machine origin parameter item, the frame position coordinate information L1 of the last completed stitch before stopping n1 And the frame position coordinate information after restarting L n2 , according to L n2 -L0 calculation formula to get the motor rotation amount R1, according to L n1 -L0 calculation formula gets the motor rotation amount R2, according to R2-R1 calculation formula gets the motor rotation amount R3 required to return to the stop embroidery point and controls the motor to rotate at -R3 rotation amount to make the frame return to the stop embroidery point.

[0074] In this embodiment, the processing unit is further used to execute an interpolation algorithm to control the operation of the motor, and the interpolation algorithm includes the following steps:

[0075] Determine the starting point coordinates (x0, y0) and the ending point coordinates (x1, y1) according to the pattern parameters;

[0076] Calculate the determination variables of the starting point interpolation direction and the ending point interpolation direction. The determination variables of the starting point interpolation direction are calculated using the following formula:

[0077] d l =y0-mx0-0·5

[0078] Where, d l is the determination variable of the interpolation direction of the current point, m=d y / d x , d y =y1-y0,d x =x1-x0;

[0079] The determination variable of the end point interpolation direction is calculated using the following formula:

[0080]

[0081] Where, d l+1 is the determining variable for the interpolation direction of the next point, d l is the determination variable of the interpolation direction of the current point, d y =y1-y0, d x =x1-x0;

[0082] The motor movement is controlled according to the calculated value of the judgment variable and the value of m. If m<1, when d l >0, the X-axis motor and the Y-axis motor are controlled to move forward at the same time. l ≤0, only the X-axis motor is controlled to move forward. If m>1, when d l <0 controls the X-axis motor and the Y-axis motor to move forward at the same time. l When ≥0, only the Y-axis motor is controlled to move forward.

[0083] Through the above technical scheme, the embroidery machine frame movement control method and system disclosed in the embodiment of the present invention solves the following problems existing in the prior art: the pattern deviation problem caused by sudden power failure during embroidery; the pattern deviation problem caused by frame shifting in the off state; the pattern origin drift problem when multiple patterns are switched; the pattern out of the frame causing scrapping; the embroidery machine origin deviation problem; the pattern deviation problem caused by the change of the limit switch position. The present invention realizes that there is no need to re-determine and calibrate the pattern origin when multiple patterns are switched, thereby improving the efficiency of pattern change; automatically judges whether the pattern exceeds the embroidery range before embroidering, and eliminates the phenomenon of pattern out of the frame; realizes that the embroidery machine origin is not deviated, thereby improving the embroidery accuracy; improves the control efficiency of the control device for the motor during embroidery, improves the calculation efficiency of interpolation, and improves the frame movement execution speed of the embroidery machine.

[0084] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for controlling movement of an embroidery machine frame, characterized in that: The method specifically comprises the following steps: Place the origin positioning block on the frame, move the frame so that the positioning point hole of the origin positioning block coincides with the head pin plate hole, determine the point position as the machine origin and write the point position coordinate information L0 into the machine origin parameter item of the control device; The motor is operated to a position close to the negative limit so that the frame reaches the negative limit position, a negative limit sensor is installed to sense the negative limit position, the negative limit sensor is fixed, and the position coordinate information of the point is written into the negative limit parameter item of the control device; The motor is operated to a position close to the positive limit so that the frame reaches the positive limit position, a positive limit sensor is installed to sense the positive limit position, the positive limit sensor is fixed, and the position coordinate information of the point is written into the positive limit parameter item of the control device; Calculate the embroidery range of the embroidery machine based on the positive limit position and the negative limit position; Read the pattern parameters to be embroidered through the control device; Move the frame to the embroidery position so that the pattern is within the embroidery range. The control device determines whether the pattern exceeds the embroidery frame. If the pattern is determined to be beyond the embroidery frame, it is prompted that the embroidery start point needs to be reset. If the pattern is determined to be within the embroidery frame, the current frame position coordinate information L1 is written into the embroidery start point parameter item of the control device. The frame moves according to the pattern parameters to embroider. Each time a stitch in the pattern parameters is completed, the number of pattern stitches and the current coordinate position information L n The corresponding absolute code value is written into the control device; if the embroidery machine stops during embroidery, after restarting, confirm whether the absolute code value of the current motor controller is consistent with the absolute code value recorded by the control device when the needle was last completed before stopping. If there is a deviation between the two, the control device prompts that the embroidery position has changed and requests to return to the stop point. The control device controls the frame to execute the return to the stop point. After the frame returns to the stop point, it continues to execute the subsequent pattern embroidery until the pattern embroidery is completed; The method of the control device controlling the frame to execute the return to the embroidery stop point specifically comprises the following steps: The control device reads the position coordinate information L0 of the machine origin parameter item and the frame position coordinate information L0 when the last needle is completed before stopping. n1 And the frame position coordinate information after restarting L n2 , According to L n2 -L0 calculation formula to get the motor rotation amount R1, according to L n1 -L0 calculation formula gets the motor rotation amount R2, and according to R2-R1 calculation formula gets the motor rotation amount R3 required to return to the stop embroidery point and controls the motor to rotate at -R3 rotation amount to make the frame return to the stop embroidery point; The frame is moved according to the pattern parameters to perform embroidery by the control device executing an interpolation algorithm to control the operation of the motor, and the interpolation algorithm includes the following steps: Determine the starting point coordinates (x0, y0) and the ending point coordinates (x1, y1) according to the pattern parameters; Calculate the determination variables of the starting point interpolation direction and the ending point interpolation direction. The determination variables of the starting point interpolation direction are calculated using the following formula: d l =y0-mx o -0.5 Where, d l is the determination variable of the interpolation direction of the current point, m=d y / d x , d y =y1-y0,d x =x1-x0; The determination variable of the end point interpolation direction is calculated using the following formula: Where, d l+1 is the determining variable for the interpolation direction of the next point, dl is the determining variable for the interpolation direction of the current point, and d y =y1-y0,d x =x1-x0; The motor movement is controlled according to the calculated value of the judgment variable and the value of m. If m < 1, when d l >0, the X-axis motor and the Y-axis motor are controlled to move forward at the same time. l ≤0, only the X-axis motor is controlled to move forward. If m>1, when d l When d < 0, the X-axis motor and the Y-axis motor are controlled to move forward at the same time. l When ≥0, only the Y-axis motor is controlled to move forward.

2. The embroidery machine frame movement control method according to claim 1, characterized in that: The frame is provided with an X-axis moving unit and a Y-axis moving unit for driving the frame to move along the X-axis and Y-axis directions. The X-axis moving unit includes an X-axis motor, an X-axis motor controller and an X-axis moving carrier. The Y-axis moving unit includes a Y-axis motor, a Y-axis motor controller and a Y-axis moving carrier. Both the X-axis motor controller and the Y-axis motor controller are absolute encoders.

3. An embroidery machine frame movement control system for executing the embroidery machine frame movement control method according to any one of claims 1 to 2, characterized in that: The embroidery machine frame movement control system includes: A frame used to hold and tighten the fabric being embroidered; A moving device connected to the frame, the moving device comprising an X-axis moving unit and a Y-axis moving unit, the X-axis moving unit comprising an X-axis motor, an X-axis motor controller and an X-axis moving carrier, the Y-axis moving unit comprising a Y-axis motor, a Y-axis motor controller and a Y-axis moving carrier, the X-axis motor controller and the Y-axis motor controller are both absolute encoders; and, A control device, electrically connected to the mobile device, the control device comprising a storage unit and a processing unit; The storage unit is used to store machine origin parameter items, negative limit parameter items, positive limit parameter items, embroidery starting point parameter items, and the number of stitches per stitch and current coordinate position information L n The corresponding absolute code value; The processing unit is used to execute the steps of writing the machine origin position coordinate information L0 into the machine origin parameter item of the storage unit; making the motor run close to the negative limit so that the frame reaches the negative limit position and writing the position coordinate information of the point into the negative limit parameter item of the storage unit; making the motor run close to the positive limit so that the frame reaches the positive limit position and writing the position coordinate information of the point into the positive limit parameter item of the storage unit; calculating the embroidery range of the embroidery machine according to the positive limit position and the negative limit position; reading the pattern parameters to be embroidered; moving the frame to the embroidery position so that the pattern is within the embroidery range, judging whether the pattern exceeds the embroidery frame, if judging that the pattern exceeds the embroidery frame, prompting that the embroidery start point needs to be reset, and if judging that the pattern does not exceed the embroidery frame, writing the current frame position coordinate information L1 into the embroidery start point parameter item of the storage unit; making the frame move according to the pattern parameters to embroider, and each time a stitch in the pattern parameters is completed, the number of stitches of the pattern and the current coordinate position information L1 are stored in the embroidery start point parameter item of the storage unit. n The corresponding absolute code value is written into the storage unit; if the embroidery machine stops during embroidery, after restarting, confirm whether the absolute code value of the current motor controller is consistent with the absolute code value recorded in the storage unit when the last stitch was completed before the stop. If there is a deviation between the two, it prompts that the embroidery position has changed and requests to return to the stop point. The control frame executes the return to the stop point. After the frame returns to the stop point, it continues to execute subsequent pattern embroidery until the pattern embroidery is completed; The processing unit is also used to read the position coordinate information L0 of the machine origin parameter item, the frame position coordinate information L0 of the last completed needle before stopping n1 And the frame position coordinate information after restarting L n2 , according to L n2 -L0 calculation formula to get the motor rotation amount R1, according to L n1 -L0 calculation formula gets the motor rotation amount R2, and according to R2-R1 calculation formula gets the motor rotation amount R3 required to return to the stop embroidery point and controls the motor to rotate at -R3 rotation amount to make the frame return to the stop embroidery point; The processing unit is also used to execute an interpolation algorithm to control the operation of the motor, and the interpolation algorithm includes the following steps: Determine the starting point coordinates (x0, y0) and the ending point coordinates (x1, y1) according to the pattern parameters; Calculate the determination variables of the starting point interpolation direction and the ending point interpolation direction. The determination variables of the starting point interpolation direction are calculated using the following formula: d l =y0-mx0-0.5 Where, d l is the determination variable of the interpolation direction of the current point, m=d y / d x , d y =y1-y0,d x =x1-x0; The determination variable of the end point interpolation direction is calculated using the following formula: Where, d l+1 is the determining variable for the interpolation direction of the next point, d l is the determination variable of the interpolation direction of the current point, d y =y1-y0,d x =x1-x0; The motor movement is controlled according to the calculated value of the judgment variable and the value of m. If m < 1, when d l >0, the X-axis motor and the Y-axis motor are controlled to move forward at the same time. l ≤0, only the X-axis motor is controlled to move forward. If m>1, when d l When d < 0, the X-axis motor and the Y-axis motor are controlled to move forward at the same time. l When ≥0, only the Y-axis motor is controlled to move forward.

Citation Information

Patent Citations

  • Embroidery sewing machine and embroidery start position setting method

    CN101166860A

  • An Embroidery Sewing Machine

    TW541379B