CN113862907A - Method, device, equipment, storage medium and program product for controlling sewing mechanism - Google Patents

Method, device, equipment, storage medium and program product for controlling sewing mechanism Download PDF

Info

Publication number
CN113862907A
CN113862907A CN202111067416.1A CN202111067416A CN113862907A CN 113862907 A CN113862907 A CN 113862907A CN 202111067416 A CN202111067416 A CN 202111067416A CN 113862907 A CN113862907 A CN 113862907A
Authority
CN
China
Prior art keywords
sewing
instruction
preset
working state
stitch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111067416.1A
Other languages
Chinese (zh)
Other versions
CN113862907B (en
Inventor
裘乐波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahao Mingde Intelligent Control Equipment Co ltd
Original Assignee
Zhejiang Dahao Mingde Intelligent Control Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahao Mingde Intelligent Control Equipment Co ltd filed Critical Zhejiang Dahao Mingde Intelligent Control Equipment Co ltd
Priority to CN202111067416.1A priority Critical patent/CN113862907B/en
Publication of CN113862907A publication Critical patent/CN113862907A/en
Application granted granted Critical
Publication of CN113862907B publication Critical patent/CN113862907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/12Sewing machines having electronic memory or microprocessor control unit characterised by control of operation of machine
    • DTEXTILES; PAPER
    • D04BRAIDING; LACE-MAKING; KNITTING; TRIMMINGS; NON-WOVEN FABRICS
    • D04BKNITTING
    • D04B39/00Knitting processes, apparatus or machines not otherwise provided for
    • D04B39/08Sewing machines modified for knitting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

The application provides a control method, a device, equipment, a storage medium and a program product of a sewing head mechanism, wherein the method comprises the following steps: the working state signals of preset components in the sewing head mechanism are acquired and timed, when the first accumulated time obtained by timing is less than or equal to the first preset time and the real-time working state of the working state signals is consistent with the preset working state, the sewing head mechanism is controlled to work according to a pre-acquired sewing head instruction, and the stepping motor and the air valve in the sewing head mechanism are controlled to work according to the pre-acquired stepping motor instruction and the pre-acquired air valve instruction. According to the technical scheme, program codes do not need to be rewritten manually, processing time is saved, and processing efficiency is improved.

Description

Method, device, equipment, storage medium and program product for controlling sewing mechanism
Technical Field
The present application relates to the field of hosiery machine equipment technology, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for controlling a stitch mechanism.
Background
The cotton sock is generally manufactured by knitting from a needle cylinder part, and the sock head part of the cotton sock is opened after the needle cylinder part is knitted, and the sock head part is further sewn by a sewing mechanism, so that the cotton sock is manufactured.
In the prior art, a worker can write program codes for controlling the operation of the sewing mechanism in advance according to actual needs and store the program codes. When the sewing mechanism works, corresponding program codes are needed to be executed to sew the sock head part.
However, if the worker wants to modify the workflow of the stitch mechanism, the worker needs to rewrite the corresponding program code, which consumes a lot of time and has low processing efficiency.
Disclosure of Invention
The application provides a control method, a control device, control equipment, a storage medium and a program product of a stitching mechanism, and aims to solve the problems that a large amount of time is consumed and the processing efficiency is low when the work flow of the stitching mechanism needs to be modified.
In a first aspect, an embodiment of the present application provides a method for controlling a stitch mechanism, including:
acquiring a working state signal of a preset component in the sewing mechanism, and timing;
when the first accumulated time obtained by timing is less than or equal to a first preset time and the real-time working state of the working state signal is consistent with a preset working state, controlling a sewing mechanism to work according to a pre-acquired sewing instruction, wherein the preset working state is a state corresponding to the normal working of the preset component; the head sewing instruction comprises a head sewing action combination identifier, and the head sewing instruction is generated in advance in response to a click operation of a user on a head sewing action editing page;
and controlling the stepping motor and the air valve in the sewing head mechanism to work according to a pre-acquired stepping motor instruction and a pre-acquired air valve instruction, wherein the motor instruction and the air valve instruction are generated in response to the operation of a user in advance.
In a possible design of the first aspect, when the first accumulated time obtained by timing is less than or equal to a first preset time and the state is consistent with a preset state, controlling the stitch mechanism to operate according to a pre-obtained stitch instruction includes:
when the first accumulated time obtained by timing is less than or equal to the first preset time and the state is consistent with the preset state, timing again and controlling the sewing head mechanism to switch the mechanical valve to the air valve;
and controlling the stitching mechanism to work according to the pre-acquired stitching instruction after the second accumulated time length obtained by timing is equal to a second preset time length.
Optionally, the method further includes:
and when the first accumulated time length is greater than a first preset time length and the real-time working state of the working state signal is inconsistent with the preset working state, generating warning information, wherein the warning information is used for reminding a user to check the preset component.
Optionally, before timing in response to the operation of the user and acquiring the state of the preset signal, the method further includes:
generating a reset instruction in response to the operation of a user;
and resetting the sewing head mechanism according to the resetting instruction.
Optionally, the type of the step motor instruction includes at least one of pulse, return-to-zero, range, limit, parameter, pattern, delay, and frequency.
Optionally, the valve command includes a valve state, and the valve state includes a forward state and a reverse state.
In a second aspect, an embodiment of the present application provides a control device for a stitch mechanism, including:
the acquisition module is used for acquiring working state signals of preset components in the sewing mechanism and timing;
the processing module is used for controlling the sewing mechanism to work according to a pre-acquired sewing instruction when the first accumulated time obtained by timing is less than or equal to a first preset time and the real-time working state of the working state signal is consistent with a preset working state, wherein the preset working state is a state corresponding to the preset component when the preset component works normally; the head sewing instruction comprises a head sewing action combination identifier, and the head sewing instruction is generated in advance in response to a click operation of a user on a head sewing action editing page;
the processing module is further used for controlling the stepping motor and the air valve in the sewing head mechanism to work according to a pre-obtained stepping motor instruction and a pre-obtained air valve instruction, and the motor instruction and the air valve instruction are generated in response to the operation of a user in advance.
In a possible design of the second aspect, when the first accumulated time obtained by timing is less than or equal to a first preset time and the state is consistent with a preset state, the processing module is specifically configured to:
when the first accumulated time obtained by timing is less than or equal to the first preset time and the state is consistent with the preset state, timing again and controlling the sewing head mechanism to switch the mechanical valve to the air valve;
and controlling the stitching mechanism to work according to the pre-acquired stitching instruction after the second accumulated time length obtained by timing is equal to a second preset time length.
Optionally, the processing module is further configured to:
and when the first accumulated time length is greater than a first preset time length and the real-time working state of the working state signal is inconsistent with the preset working state, generating warning information, wherein the warning information is used for reminding a user to check the preset component.
Optionally, before timing in response to the operation of the user and acquiring the state of the preset signal, the processing module is further configured to:
generating a reset instruction in response to the operation of a user;
and resetting the sewing head mechanism according to the resetting instruction.
Optionally, the type of the step motor instruction includes at least one of pulse, return-to-zero, range, limit, parameter, pattern, delay, and frequency.
Optionally, the valve command includes a valve state, and the valve state includes a forward state and a reverse state.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and computer program instructions stored on the memory and executable on the processor for implementing the method of the first aspect and each possible design when the processor executes the computer program instructions.
In a fourth aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the method provided by the first aspect and each possible design when executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program that, when executed by a processor, is configured to implement the method provided by the first aspect and each possible design.
According to the control method, the control device, the control equipment, the control medium and the program product of the sewing head mechanism, the working state signal of a preset component in the sewing head mechanism is obtained and timing is carried out, when the first accumulated time obtained by timing is less than or equal to the first preset time and the real-time working state of the working state signal is consistent with the preset working state, the sewing head mechanism is controlled to work according to the pre-obtained sewing head instruction, and the stepping motor and the air valve in the sewing head mechanism are controlled to work according to the pre-obtained stepping motor instruction and the pre-obtained air valve instruction. According to the technical scheme, program codes do not need to be rewritten manually, processing time is saved, and processing efficiency is improved. And because the hardware components of the control system of the existing integrated sewing-up sock machine are basically consistent, the control method of the sewing-up mechanism can be suitable for the control systems of all integrated sewing-up sock machines on the market, and the popularization difficulty is greatly reduced. According to the method, the optimal sewing action is realized by responding to the clicking operation of the staff of the machinery factory, the advantages of the integrated sewing machine of the machinery factory are embodied, and the maximum working efficiency is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic view of a sewing process;
fig. 2 is a schematic flowchart of a first embodiment of a control method of a stitch head mechanism according to an embodiment of the present application;
fig. 3 is a schematic view of a stitch action editing page provided in the embodiment of the present application;
fig. 4 is a schematic flowchart of a second embodiment of a control method of a stitch head mechanism according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a control of the stitch mechanism provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before introducing the embodiments of the present application, an application context of the embodiments of the present application is explained first:
the integrated sewing-up sock machine needs to call a pattern file in the actual work, and works according to the jacquard patterns, chain actions and sewing-up actions preset in the pattern file. In the process of manufacturing the cotton socks, the integrated end sewing cotton sock machine needs to weave the cotton socks from the needle cylinder part, and after the needle cylinder part is woven, the sock head part of the cotton socks is opened, and the cotton socks need to be further moved to an end sewing mechanism of the integrated end sewing cotton sock machine to sew the sock heads, so that the cotton socks are manufactured.
A set of complete sewing action flow can be divided into four parts of sewing preparation, sewing moving socks, sewing sleeving socks and sewing ending. In the prior art, a worker can pre-write a program code for controlling the operation of the sewing head mechanism for each part according to actual needs and store the program code. When the sewing mechanism works, corresponding program codes are needed to be executed to sew the sock head part.
Illustratively, fig. 1 is a schematic view of a stitch flow. As shown in fig. 1, in the integrated toe-sewing cotton sock machine, in the process of sewing the toe, program codes corresponding to a sock-knitting chain operation 1, toe-sewing preparation, a sock-knitting chain operation 2, toe-sewing sock transfer, a sock-knitting chain operation 3, toe-sewing sock sewing, toe-sewing end, and sock-knitting end are sequentially executed.
In practical application, before the integrated sewing-up hosiery machine is put into production, a worker is required to test the performance of the integrated sewing-up hosiery machine for multiple times. If the test effect of a certain part is not expected, the improvement of the program code of the part is needed. However, since the program code that controls the operation of the stitch mechanism is generally not editable, the worker who writes the program code needs to rewrite the program code for the test result when the portion is modified. In the process of rewriting the program codes, a large amount of time of workers is consumed, and the correctness of the rewritten program codes cannot be guaranteed, so that the integrated sewing sock machine is long in development period, and low in processing efficiency and accuracy.
In view of the above problems, the inventive concept of the present application is as follows: when the work flow of a certain part of the stitching mechanism is modified, the program code of the part needs to be modified manually, so that the processing time cannot be ensured, and the processing efficiency is low. Based on this, the inventor finds that if the stitch operation editing page can be obtained in advance, so that the electronic device can respond to the operation of the user on each part of the stitch operation editing page to generate an instruction, and the instruction controls the stitch mechanism to work according to the workflow in the instruction, thereby replacing the process of manually rewriting the program code, and solving the problem of low processing efficiency in the prior art.
In a specific implementation, the execution main body of the control method of the stitch-end mechanism may be an electronic device having a processing function, such as a terminal device or a server, which can control the integral stitch-end cotton sock machine and can be in communication connection with the integral stitch-end cotton sock machine, for example.
For convenience of description, the technical solution of the present application will be described in detail below with reference to specific embodiments by taking the execution body of the above method as an integrated sewing machine for making a sock.
The technical solution of the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of a first embodiment of a control method of a stitch head mechanism according to an embodiment of the present application. As shown in fig. 2, the control method of the stitch mechanism may include the steps of:
s101: and acquiring working state signals of preset components in the sewing mechanism, and timing.
In this application embodiment, in order to facilitate the user to interact with the integrated sewing machine, the integrated sewing machine needs to provide a graphical user interface for the user, and the graphical user interface may be used to display a sewing action editing page.
Fig. 3 is a schematic view of a stitch action editing page provided in the embodiment of the present application. As shown in fig. 3, the stitch action edit page includes a combination name area, an action area, a motor area, and may further include a parameter area.
The sewing action is divided into four modules, namely a sewing preparation module, a sewing moving sock module, a sewing sleeving sock module and a sewing ending module, and the combined name area is used for displaying the names of the modules. The action area is used for displaying the type of the action, the name of the action and the state corresponding to the action, wherein the action type can comprise an air valve and a signal. The motor area is used for displaying the action name, the action type and the corresponding setting of the action of the stepping motor. The parameter area may include an action number, an action name, an action delay, an action command, a reset action, and a repeat execution section. The action delay part comprises two input boxes (a first input box and a second input box) which are respectively used for acquiring a first preset time length and a second preset time length input by a user.
Optionally, the stitch-head action editing page may further include an action insertion control, an action deletion control, an action clearing control, a stitch-head parameter control, a motor insertion control, a motor deletion control, and a motor clearing control. To facilitate user entry of parameter data, the stitch action edit page may include numeric controls (including 1, 2, 3, 4, 5, 6, 7, 8, 9, 0), and may also include add controls, subtract controls, and backspace controls. Besides, the system can also comprise an up-turning control, a down-turning control, an inserting control, a deleting control, a copying control, a pasting control and a saving control.
Illustratively, the stitch-head action editing page may further include a knitting control and a return control, and after the user sets the stitch-head action editing page, the user may click the knitting control. The integrated sewing-up sock machine responds to the clicking operation of a user on the knitting control, so that a sewing-up instruction, a stepping motor instruction and an air valve instruction are generated.
The preset part can be a hand grab door, a pressure plate, a hanging thorn and the like, and can be preset according to actual requirements, and the embodiment of the application does not specifically limit the situation.
In a specific implementation manner, the preset component is specifically described as an example of a hook. The integrated sewing-up cotton sock machine obtains the working state of the hanging stabs, if the working state of the hanging stabs is relaxed, the corresponding working state signals and the real-time working state can be used for loosening the hanging stabs and can also be used for tightening the hanging stabs and can not be used.
S102: and when the first accumulated time length obtained by timing is less than or equal to a first preset time length and the real-time working state of the working state signal is consistent with the preset working state, controlling the sewing mechanism to work according to a pre-acquired sewing instruction.
For example, the first preset duration is obtained in advance in response to an input operation of a user on the first input box of the action delay section in the stitch-head action editing page, and may be 1000 milliseconds, or may also be 950 milliseconds, 900 milliseconds, and may be determined according to an actual input operation of the user, which is not specifically limited in this embodiment of the application.
The preset working state is a state corresponding to the normal working of the preset part and is obtained in response to the click operation of the user on the action area in the stitch action editing page.
For example, a user may click a type control of an action area in a stitch action editing page in advance, select the type as a signal, click a name control, select the name as a hitching release, click a state control, and change a state corresponding to the signal to be valid. The integrated sewing-up sock machine responds to the operation of the user, obtains a preset state corresponding to the working state signal, and the preset state is effective.
The head sewing instruction comprises a head sewing action combination identifier, and the head sewing instruction is generated in response to a click operation of a user on a head sewing action editing page in advance.
Illustratively, a user can click the action command part of the parameter area in the stitch action editing page according to the requirement of the user, traverse all the action commands and click the sub-action command control meeting the requirement of the user. The integrated sewing-head cotton sock machine responds to the click operation of the user and generates a sewing-head instruction containing a sewing-head action combination identifier.
By way of example, the sub-action command controls may be a stitch command control, an add command control, a sock falling detection start control, a sock falling detection end control, a position detection control, a sock knitting wait control, a sock turning start control, a sock turning end control, a sock receiving start control, a sock receiving end control, a lift start control, a lift end control, a sock moving start control, a sock moving end control, a press ring start control, a press ring end control, a swing arm protection pause control, a swing arm protection resume control, a sock pushing plate start control, a sock pushing plate end control, a stop start control, a stop clear waste control, a press plate start control, a press plate end control, an execute stitch preparation control, a wait stitch end control, a longitudinal move start control, a longitudinal move end control, a scissors start control, and a scissors end control.
In another specific embodiment, when the first accumulated time obtained by timing is less than or equal to a first preset time and the state is consistent with the preset state, timing is performed again, and the sewing head mechanism is controlled to switch the mechanical valve to the air valve; and controlling the sewing mechanism to work according to the pre-acquired sewing instruction after the second accumulated time length obtained by timing is equal to the second preset time length. The integrated sewing-up hosiery machine calls a program code corresponding to the sewing-up action combination identification according to the sewing-up action combination identification in the sewing-up instruction, and controls the sewing-up mechanism to work according to the program code.
Wherein, the program code corresponding to the stitch operation combination mark is pre-stored in the integrated stitch cotton sock machine system and can not be modified.
For example, the second preset time length is obtained in advance in response to an input operation of the user on the second input box of the action delay section in the stitch-head action editing page, and may be 10 milliseconds, or may also be 15 milliseconds, or 5 milliseconds, and may be determined according to an actual input operation of the user, which is not specifically limited in this embodiment of the application.
Optionally, when the first accumulated time is longer than the first preset time and the real-time working state of the working state signal is inconsistent with the preset working state, generating warning information, where the warning information is used to remind a user to check the preset component.
For example, the warning message may be specific music, vibration with a specific frequency, or text message displayed on the screen of the all-in-one sewing machine, for example, "different state of the suspended stabs, please check the suspended stabs," or a combination of various manners thereof, which may be defined according to actual conditions, and the embodiment of the present application does not specifically limit this.
Further, when the user processes the warning message, the all-in-one sewing machine re-executes S101.
S103: and controlling the stepping motor and the air valve in the sewing head mechanism to work according to the pre-obtained instruction of the stepping motor and the pre-obtained instruction of the air valve.
Wherein the motor command and the gas valve command are generated in advance in response to the user's operation.
The type of the stepping motor instruction comprises at least one of pulse, return-to-zero, measuring range, limit, parameter, pattern, delay and frequency, the air valve instruction comprises an air valve state, and the air valve state comprises a forward state and a backward state.
For example, a user can click a motor region in the stitch motion editing page in advance, for example, for a machine head and a swing arm, motion name controls of the motor region can be clicked, a machine head lifting control, a swing arm left and right control, a swing arm up and down control and the like are respectively selected, and types corresponding to the machine head lifting control, the swing arm left and right control, and the swing arm up and down control are clicked. The integrated sewing-head cotton sock machine responds to the click operation of a user on the sewing-head action editing page, and generates a stepping motor instruction.
For example, the user may click an action area in the stitch action editing page in advance, for example, for a stitch and a stitch mechanism, may click a stitch mechanism backward control and a stitch release control, and click a state control corresponding to the stitch mechanism backward control and the stitch release control, where the state control includes a forward control and a backward control.
For example, the types of stepper motor commands and corresponding descriptions may be as shown in table 1:
TABLE 1
Type (B) Description of the invention
Pulse of light The stepping motor is operated to a certain preset position
Return to zero Probe position for stepping motor returning to zero position
Measuring range Step motor is executed to the maximum position
Extreme limit Stepping motor executing to limit probe position
Parameter(s) Preset and mechanically dependent parameter position of stepping motor
Flower type The stepping motor is executed to the parameter position set in the pattern
Time delay Waiting time of step motor
Frequency of Operating frequency of a stepping motor
It is understood that only a portion of the stepper motor command types and corresponding descriptions are shown in table 1. In practical applications, the type of the stepping motor instruction and the corresponding description may have other expression forms, and may be determined according to actual requirements, which are not described herein again.
In an implementation mode, the integrated sewing-head cotton sock machine simultaneously executes program codes corresponding to the commands of the stepping motor and the commands of the air valve, and controls the stepping motor and the air valve to work.
According to the control method of the sewing head mechanism provided by the embodiment of the application, the working state signal of the preset component in the sewing head mechanism is obtained and timing is carried out, when the first accumulated time obtained by timing is less than or equal to the first preset time and the real-time working state of the working state signal is consistent with the preset working state, the sewing head mechanism is controlled to work according to the pre-obtained sewing head instruction, and the stepping motor and the air valve in the sewing head mechanism are controlled to work according to the pre-obtained stepping motor instruction and the pre-obtained air valve instruction. According to the technical scheme, program codes do not need to be rewritten manually, processing time is saved, and processing efficiency is improved. And because the hardware components of the control system of the existing integrated sewing-up sock machine are basically consistent, the control method of the sewing-up mechanism can be suitable for the control systems of all integrated sewing-up sock machines on the market, and the popularization difficulty is greatly reduced. According to the method, the optimal sewing action is realized by responding to the clicking operation of the staff of the mechanical factory, the advantages of the integrated sewing machine of the mechanical factory are reflected, and the maximum working efficiency is achieved.
Optionally, in some embodiments, before S101, the method for controlling the stitch mechanism may further include: in response to an operation by a user, a reset instruction is generated. And resetting the sewing head mechanism according to the reset instruction.
The reset instruction can comprise reset marks, the reset marks can comprise a forbidden reset mark, a basic reset mark, a stitch reset mark 01, a stitch reset mark 02, a stitch reset mark 03, a stitch reset mark 04, a stitch reset 05, a stitch reset 06, a stitch reset mark 07, a stitch reset 08, a stitch reset 09, a stitch reset mark 10, a stitch reset mark 11, a stitch reset mark 12, a stitch reset mark 13, a stitch reset mark 14 and a stitch reset mark 15, and each reset mark corresponds to a corresponding program code.
Fig. 4 is a schematic flowchart of a second embodiment of a control method of a stitch head mechanism according to the embodiment of the present application. As shown in fig. 4, the control method of the stitch mechanism may include the steps of:
and 1, starting.
Step 2, whether a reset instruction exists or not is judged, and if yes, the step 3 is executed; if not, executing the step 4.
And 3, resetting the sewing head mechanism according to the reset instruction.
And 4, acquiring a working state signal of a preset component in the sewing mechanism, and timing.
Step 5, when the first accumulated time obtained by timing is less than or equal to a first preset time, judging whether the real-time working state of the working state signal is consistent with the preset working state, and if so, executing step 7; if not, go to step 6.
And 6, generating warning information, and after the user processes the warning information, re-executing the step 4.
And 7, timing again, and controlling the sewing mechanism to work according to the pre-acquired sewing instruction after the second accumulated time obtained by timing is equal to the second preset time.
And 8, simultaneously controlling the stepping motor and the air valve in the sewing head mechanism to work according to the pre-obtained instruction of the stepping motor and the pre-obtained instruction of the air valve.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 5 is a schematic structural diagram of a control device of the stitch head mechanism according to an embodiment of the present application. As shown in fig. 5, the control device of the stitch mechanism includes:
the acquisition module 51 is used for acquiring working state signals of preset components in the sewing mechanism and timing;
the processing module 52 is configured to control the stitch mechanism to work according to a pre-acquired stitch instruction when the first accumulated time obtained through timing is less than or equal to a first preset time and the real-time working state of the working state signal is consistent with a preset working state, where the preset working state is a state corresponding to when the preset component normally works; the head sewing instruction comprises a head sewing action combination identifier, and is generated in response to a click operation of a user on a head sewing action editing page in advance;
and the processing module 52 is further configured to control the stepping motor and the air valve in the stitch mechanism to operate according to the pre-obtained stepping motor instruction and the pre-obtained air valve instruction, where the motor instruction and the air valve instruction are generated in response to the operation of the user in advance.
In a possible design of the embodiment of the present application, when the first accumulated time obtained by timing is less than or equal to a first preset time and the state is consistent with the preset state, the processing module 52 is specifically configured to control the stitch mechanism to work according to a pre-obtained stitch instruction:
when the first accumulated time obtained by timing is less than or equal to a first preset time and the state is consistent with the preset state, timing again and controlling the sewing head mechanism to switch the mechanical valve to the air valve;
and controlling the sewing mechanism to work according to the pre-acquired sewing instruction after the second accumulated time length obtained by timing is equal to the second preset time length.
Optionally, the processing module 52 is further configured to:
and when the preset signal does not meet the preset state, generating warning information, wherein the warning information is used for reminding a user to check the preset component.
Optionally, in response to the operation of the user, before performing timing and acquiring the state of the preset signal, the processing module 52 is further configured to:
generating a reset instruction in response to the operation of a user;
and resetting the sewing head mechanism according to the reset instruction.
Optionally, the type of the step motor command includes at least one of pulse, return-to-zero, range, limit, parameter, pattern, delay, and frequency.
Optionally, the valve command comprises a valve state, the valve state comprising a forward state and a reverse state.
The control device of the stitch mechanism provided in the embodiment of the present application can be used to execute the control method of the stitch mechanism in any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device may include: a processor 61, a memory 62 and computer program instructions stored on the memory 62 and operable on the processor 61, the processor 61 implementing the control method of the stitch mechanism provided by any of the preceding embodiments when executing the computer program instructions.
Optionally, the electronic device may further include an interface for interacting with other devices.
Optionally, the above devices of the electronic device may be connected by a system bus.
The memory 62 may be a separate memory unit or a memory unit integrated into the processor. The number of processors is one or more.
It should be understood that the Processor 61 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
The system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The memory may include a Random Access Memory (RAM) and may also include a non-volatile memory (NVM), such as at least one disk memory.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (optical disc), and any combination thereof.
The electronic device provided in the embodiment of the present application can be used to execute the control method of the stitch mechanism provided in any one of the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
The embodiment of the application provides a computer-readable storage medium, wherein computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on a computer, the computer is enabled to execute the control method of the sewing head mechanism.
The computer readable storage medium may be any type of volatile or non-volatile storage device or combination thereof, such as static random access memory, electrically erasable programmable read only memory, magnetic storage, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
Alternatively, a readable storage medium may be coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Embodiments of the present application further provide a computer program product, which includes a computer program, where the computer program is stored in a computer-readable storage medium, and the computer program can be read from the computer-readable storage medium by at least one processor, and the at least one processor can implement the control method of the stitch mechanism when executing the computer program.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for controlling a stitch mechanism, comprising:
acquiring a working state signal of a preset component in the sewing mechanism, and timing;
when the first accumulated time obtained by timing is less than or equal to a first preset time and the real-time working state of the working state signal is consistent with a preset working state, controlling a sewing mechanism to work according to a pre-acquired sewing instruction, wherein the preset working state is a state corresponding to the normal working of the preset component; the head sewing instruction comprises a head sewing action combination identifier, and the head sewing instruction is generated in advance in response to a click operation of a user on a head sewing action editing page;
and controlling the stepping motor and the air valve in the sewing head mechanism to work according to a pre-acquired stepping motor instruction and a pre-acquired air valve instruction, wherein the motor instruction and the air valve instruction are generated in response to the operation of a user in advance.
2. The method according to claim 1, wherein when the first accumulated time obtained by timing is less than or equal to a first preset time and the state is consistent with a preset state, controlling the stitch mechanism to work according to a pre-acquired stitch instruction comprises:
when the first accumulated time obtained by timing is less than or equal to the first preset time and the state is consistent with the preset state, timing again and controlling the sewing head mechanism to switch the mechanical valve to the air valve;
and controlling the stitching mechanism to work according to the pre-acquired stitching instruction after the second accumulated time length obtained by timing is equal to a second preset time length.
3. The method of claim 2, further comprising:
and when the first accumulated time length is greater than a first preset time length and the real-time working state of the working state signal is inconsistent with the preset working state, generating warning information, wherein the warning information is used for reminding a user to check the preset component.
4. The method of claim 3, wherein before timing in response to the user operation and obtaining the state of the preset signal, the method further comprises:
generating a reset instruction in response to the operation of a user;
and resetting the sewing head mechanism according to the resetting instruction.
5. The method of any of claims 1 to 4, wherein the type of stepper motor command comprises at least one of pulse, return to zero, range, limit, parameter, pattern, delay, and frequency.
6. The method of any of claims 1 to 4, wherein the valve commands include valve states, the valve states including a forward state and a reverse state.
7. A control device for a stitch mechanism, comprising:
the acquisition module is used for acquiring working state signals of preset components in the sewing mechanism and timing;
the processing module is used for controlling the sewing mechanism to work according to a pre-acquired sewing instruction when the first accumulated time obtained by timing is less than or equal to a first preset time and the real-time working state of the working state signal is consistent with a preset working state, wherein the preset working state is a state corresponding to the preset component when the preset component works normally; the head sewing instruction comprises a head sewing action combination identifier, and the head sewing instruction is generated in advance in response to a click operation of a user on a head sewing action editing page;
the processing module is further used for controlling the stepping motor and the air valve in the sewing head mechanism to work according to a pre-obtained stepping motor instruction and a pre-obtained air valve instruction, and the motor instruction and the air valve instruction are generated in response to the operation of a user in advance.
8. An electronic device, comprising: processor, memory and computer program instructions stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program instructions, is adapted to implement a method of controlling a stitch mechanism according to any of claims 1 to 7.
9. A computer-readable storage medium having stored thereon computer-executable instructions for implementing a method of controlling a stitch mechanism as claimed in any one of claims 1 to 7 when executed by a processor.
10. A computer program product comprising a computer program, characterized in that the computer program is adapted to be executed by a processor for implementing a method of controlling a stitch mechanism as claimed in any one of claims 1 to 7.
CN202111067416.1A 2021-09-13 2021-09-13 Control method, device, equipment, storage medium and program product for stitch head mechanism Active CN113862907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111067416.1A CN113862907B (en) 2021-09-13 2021-09-13 Control method, device, equipment, storage medium and program product for stitch head mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111067416.1A CN113862907B (en) 2021-09-13 2021-09-13 Control method, device, equipment, storage medium and program product for stitch head mechanism

Publications (2)

Publication Number Publication Date
CN113862907A true CN113862907A (en) 2021-12-31
CN113862907B CN113862907B (en) 2023-10-31

Family

ID=78995445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111067416.1A Active CN113862907B (en) 2021-09-13 2021-09-13 Control method, device, equipment, storage medium and program product for stitch head mechanism

Country Status (1)

Country Link
CN (1) CN113862907B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5570286A (en) * 1978-11-20 1980-05-27 Brother Ind Ltd Abnormality alarm device of sewing machine
JP2004113419A (en) * 2002-09-26 2004-04-15 Brother Ind Ltd Sewing machine and thread cassette removal control program
CN101333733A (en) * 2007-06-28 2008-12-31 日星产业缝制机械株式会社 Sewing machine with device possessing connection additional function and its operation method
CN103510279A (en) * 2013-10-18 2014-01-15 浙江沪龙电机有限公司 Intelligent control system of pattern sewing machine
US20150128837A1 (en) * 2013-11-13 2015-05-14 Brother Kogyo Kabushiki Kaisha Sewing machine and non-transitory computer-readable medium storing sewing machine control program
CN105986367A (en) * 2014-09-04 2016-10-05 蛇目缝纫机工业株式会社 Sewing machine system, terminal device, and method of synchronizing embroidery data in sewing machine system
CN112522865A (en) * 2019-09-18 2021-03-19 浙江中捷缝纫科技有限公司 Control method and device of sewing equipment, storage medium and processor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5570286A (en) * 1978-11-20 1980-05-27 Brother Ind Ltd Abnormality alarm device of sewing machine
JP2004113419A (en) * 2002-09-26 2004-04-15 Brother Ind Ltd Sewing machine and thread cassette removal control program
CN101333733A (en) * 2007-06-28 2008-12-31 日星产业缝制机械株式会社 Sewing machine with device possessing connection additional function and its operation method
CN103510279A (en) * 2013-10-18 2014-01-15 浙江沪龙电机有限公司 Intelligent control system of pattern sewing machine
US20150128837A1 (en) * 2013-11-13 2015-05-14 Brother Kogyo Kabushiki Kaisha Sewing machine and non-transitory computer-readable medium storing sewing machine control program
CN105986367A (en) * 2014-09-04 2016-10-05 蛇目缝纫机工业株式会社 Sewing machine system, terminal device, and method of synchronizing embroidery data in sewing machine system
CN112522865A (en) * 2019-09-18 2021-03-19 浙江中捷缝纫科技有限公司 Control method and device of sewing equipment, storage medium and processor

Also Published As

Publication number Publication date
CN113862907B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN104731584B (en) A kind of customized configuration design method of Open Architecture CNC System of Display Interface
CN110387635B (en) Hosiery machine and pattern knitting method and storage medium thereof
CN102236621A (en) Computer interface information configuration system and method
CN101206614A (en) Simulator for simulating register with specific function
CN108829583A (en) A kind of page compatibility test method and device based on Selenium
CN115934566A (en) Debugging information display method and device, electronic equipment and storage medium
CN101751323A (en) Microprocessor chip emulator and breakpoint setting method
CN113862907A (en) Method, device, equipment, storage medium and program product for controlling sewing mechanism
EP3761127B1 (en) Display device, screen generation method, and screen generation program
EP1125199B1 (en) Method of debugging a program thread
JP2012027639A (en) Programmable controller and debug method of programmable controller
US7003761B2 (en) Multi-process display method in debugger system
WO2020073200A1 (en) Program debugging method and system
CN115843174A (en) Method, system and medium for controlling button enabling of chip mounter based on event driving
CN113986546A (en) Centralized LabVIEW processing method for appointed software and hardware resources
CN108396448A (en) A kind of storage of computer stocking pattern data, read method and system
CN107742010A (en) A kind of method for adding pin numbering in batches in encapsulation is established
CN112530615B (en) Variable forcing method and system suitable for nuclear power station equipment
US20160103439A1 (en) Production machine or machine tool and method for operating such a machine tool
CN105161044A (en) Display unit scanning driving method in electric appliance terminal control panel
JP2001022493A (en) Methods for automatic generation and deletion of shortcut button, and manufacturing device applying those methods
CN104317560A (en) Control program development method for special controller of two-layer architecture exposure machine
CN110750394B (en) Control method and terminal for realizing active/standby single board based on GPIO pin
CN117421106B (en) Task scheduling method, system and equipment for embedded software
CN114262979B (en) Zero point setting method for up-down jacquard of circular knitting machine, storage medium and circular knitting machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant