CN113862907B - Control method, device, equipment, storage medium and program product for stitch head mechanism - Google Patents
Control method, device, equipment, storage medium and program product for stitch head mechanism Download PDFInfo
- Publication number
- CN113862907B CN113862907B CN202111067416.1A CN202111067416A CN113862907B CN 113862907 B CN113862907 B CN 113862907B CN 202111067416 A CN202111067416 A CN 202111067416A CN 113862907 B CN113862907 B CN 113862907B
- Authority
- CN
- China
- Prior art keywords
- working state
- preset
- stitch
- instruction
- timing
- 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.)
- Active
Links
- 230000007246 mechanism Effects 0.000 title claims abstract description 100
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000003860 storage Methods 0.000 title claims abstract description 21
- 238000012545 processing Methods 0.000 claims abstract description 33
- 230000009471 action Effects 0.000 claims description 62
- 230000004044 response Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 241000309551 Arthraxon hispidus Species 0.000 claims description 5
- 238000009825 accumulation Methods 0.000 claims description 5
- 238000009958 sewing Methods 0.000 abstract description 21
- 229920000742 Cotton Polymers 0.000 description 33
- 238000010586 diagram Methods 0.000 description 8
- 238000009940 knitting Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000013461 design Methods 0.000 description 6
- 238000002360 preparation method Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
- 238000009941 weaving Methods 0.000 description 1
Classifications
-
- D—TEXTILES; PAPER
- D05—SEWING; EMBROIDERING; TUFTING
- D05B—SEWING
- D05B19/00—Programme-controlled sewing machines
- D05B19/02—Sewing machines having electronic memory or microprocessor control unit
- D05B19/12—Sewing machines having electronic memory or microprocessor control unit characterised by control of operation of machine
-
- D—TEXTILES; PAPER
- D04—BRAIDING; LACE-MAKING; KNITTING; TRIMMINGS; NON-WOVEN FABRICS
- D04B—KNITTING
- D04B39/00—Knitting processes, apparatus or machines not otherwise provided for
- D04B39/08—Sewing machines modified for knitting
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total 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 stitch head mechanism, wherein the method comprises the following steps: the method comprises the steps of obtaining working state signals of preset parts in the sewing head mechanism, timing, and controlling the sewing head mechanism to work according to a pre-obtained sewing head instruction when a first accumulated time length obtained by timing is smaller than or equal to a first preset time length and a real-time working state of the working state signals is consistent with the preset working state, and controlling a stepping motor and an air valve in the sewing head mechanism to work according to the pre-obtained stepping motor instruction and the pre-obtained air valve instruction. According to the technical scheme, the program codes do not need to be manually rewritten, so that the processing time is saved, and the processing efficiency is improved.
Description
Technical Field
The application relates to the technical field of hosiery machine equipment, in particular to a control method, a device, equipment, a storage medium and a program product of a stitch mechanism.
Background
The cotton sock is generally manufactured by knitting from the 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 stitched by the stitch mechanism, so that the cotton sock is manufactured.
In the prior art, a worker can pre-write and store program codes for controlling the work of the stitching mechanism according to actual needs. When the stitch mechanism works, corresponding program codes are required to be executed to stitch the sock head part.
However, if the worker wants to modify the workflow of the stitching mechanism, the worker needs to re-write the corresponding program code, which takes a lot of time and has low processing efficiency.
Disclosure of Invention
The application provides a control method, a device, equipment, a storage medium and a program product of a stitch head mechanism, which are used for solving the problems that a great deal of time is required to be consumed and the processing efficiency is low when the work flow of the stitch head mechanism needs to be modified.
In a first aspect, an embodiment of the present application provides a method for controlling a stitch head mechanism, including:
acquiring a working state signal of a preset part in the stitch head mechanism, and timing;
when the first accumulated time length obtained by timing is smaller than or equal to a first preset time length and the real-time working state of the working state signal is consistent with a preset working state, the joint mechanism is controlled to work according to a joint instruction obtained in advance, and the preset working state is a state corresponding to the normal working state of the preset part; the stitch head instruction comprises a stitch head action combination mark, and is generated in advance in response to clicking operation on a stitch head action editing page by a user;
and controlling the stepping motor and the air valve in the stitch 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 advance in response to the operation of a user.
In one possible design of the first aspect, when the first accumulated duration obtained by timing is less than or equal to a first preset duration and the state is consistent with the preset state, the control stitch head mechanism works according to a pre-acquired stitch head instruction, including:
when the first accumulated time length obtained by timing is smaller than or equal to the first preset time length and the state is consistent with the preset state, timing is performed again, and the joint mechanism is controlled to switch the mechanical valve to the air valve;
and after the second accumulated time length obtained by timing is equal to the second preset time length, controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction.
Optionally, the method further comprises:
and when the first accumulation time is longer than a first preset time, 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 part.
Optionally, before the timing is performed in response to the operation of the user and the state of the preset signal is obtained, the method further includes:
responding to the operation of a user, and generating a reset instruction;
and resetting the stitch head mechanism according to the resetting instruction.
Optionally, the type of the stepper motor command 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 head mechanism, including:
the acquisition module is used for acquiring a working state signal of a preset part in the stitch head mechanism and timing;
the processing module is used for controlling the joint mechanism to work according to a joint instruction acquired in advance when the first accumulated time length obtained by timing is smaller than or equal to a first preset time length 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 normal working of the preset component; the stitch head instruction comprises a stitch head action combination mark, and is generated in advance in response to clicking operation on a stitch head action editing page by a user;
the processing module is also used for controlling the stepping motor and the air valve in the stitch mechanism to work according to the pre-acquired stepping motor instruction and the pre-acquired air valve instruction, and the motor instruction and the air valve instruction are generated in advance in response to the operation of a user.
In one possible design of the second aspect, when the first accumulated duration obtained by timing is less than or equal to a first preset duration and the state is consistent with the preset state, the stitch head control mechanism is controlled to work according to a stitch head instruction obtained in advance, and the processing module is specifically configured to:
when the first accumulated time length obtained by timing is smaller than or equal to the first preset time length and the state is consistent with the preset state, timing is performed again, and the joint mechanism is controlled to switch the mechanical valve to the air valve;
and after the second accumulated time length obtained by timing is equal to the second preset time length, controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction.
Optionally, the processing module is further configured to:
and when the first accumulation time is longer than a first preset time, 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 part.
Optionally, before the timing is performed in response to the operation of the user and the state of the preset signal is obtained, the processing module is further configured to:
responding to the operation of a user, and generating a reset instruction;
and resetting the stitch head mechanism according to the resetting instruction.
Optionally, the type of the stepper motor command 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 provided by 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 which, when executed by a processor, are adapted to carry out the method provided by the first aspect and each possible design.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program for implementing the method provided by the first aspect and each possible design when executed by a processor.
According to the control method, the device, the equipment, the storage medium and the program product of the stitch head mechanism, through acquiring the working state signals of the preset components in the stitch head mechanism and timing, when the first accumulated time length obtained through timing is smaller than or equal to the first preset time length and the real-time working state of the working state signals is consistent with the preset working state, the stitch head mechanism is controlled to work according to the pre-acquired stitch head instructions, and the stepper motor and the air valve in the stitch head mechanism are controlled to work according to the pre-acquired stepper motor instructions and the pre-acquired air valve instructions. According to the technical scheme, the program codes do not need to be manually rewritten, so that the processing time is saved, and the processing efficiency is improved. And because the hardware components of the control system of the existing integrated stitch cotton stocking machine are basically consistent, the control method of the stitch mechanism can be suitable for all control systems of the integrated stitch cotton stocking machines in the market, and the popularization difficulty is greatly reduced. According to the method, the optimal head sewing action is realized by responding to the clicking operation of the staff of the mechanical factory, the advantages of the self-integrated head sewing cotton stocking machine of the mechanical factory are reflected, 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 application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a stitch flow;
fig. 2 is a schematic flow chart of a first embodiment of a control method of a stitching mechanism according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a stitch motion editing page provided by an embodiment of the present application;
fig. 4 is a schematic flow chart of a second embodiment of a control method of the stitch head mechanism according to the embodiment of the present application;
FIG. 5 is a schematic diagram of a control structure of a stitching mechanism according to 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.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Before describing the embodiments of the present application, an application background of the embodiments of the present application will be explained first:
the integrated stitch cotton sock machine needs to call a pattern file in actual work, and works according to jacquard patterns, chain actions and stitch actions which are preset in the pattern file. In the process of manufacturing the cotton socks, the integrated stitch cotton sock machine needs to firstly weave the cotton socks from the needle cylinder part, and as the sock head part of the cotton socks is open after the needle cylinder part is woven, the cotton socks are further required to be moved to the stitch mechanism of the integrated stitch cotton sock machine to carry out stitch work of sock heads on the cotton socks, so that the cotton socks are manufactured.
A complete stitch flow can be split into four parts of stitch preparation, stitch sock moving, stitch head sock covering and stitch end. In the prior art, a worker can pre-write and store program codes for controlling the work of the stitch head mechanism for each part according to actual needs. When the stitch mechanism works, corresponding program codes are required to be executed to stitch the sock head part.
Exemplary, fig. 1 is a schematic diagram of a stitch flow. As shown in fig. 1, in the integrated toe-sewing cotton stocking machine, in the process of sewing the stocking toe, program codes corresponding to the stocking-knitting chain action 1, the toe-sewing preparation, the stocking-knitting chain action 2, the toe-sewing moving stocking, the stocking-knitting chain action 3, the toe-sewing head stocking, the toe-sewing ending and the stocking-knitting ending need to be executed in sequence.
In practical applications, a worker is required to perform multiple tests on the performance of the integrated stitch cotton stocking machine before it is put into production. If the test effect of a certain part is not expected, the program code of the certain part needs to be improved. However, since the program code that controls the operation of the stitch mechanism is generally not editable, when modifying this portion, it is necessary for the operator who writes the program code to re-write the program code for the test results. In the process of re-writing the program codes, a great deal of time is required to be consumed by workers, and the correctness of the re-written program codes cannot be ensured, so that the integrated stitch cotton stocking 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: because when the workflow of the stitch head mechanism of a certain part is modified, the program code of the part needs to be manually modified, the processing time cannot be ensured, and the processing efficiency is low. Based on the above, the inventor finds that if the stitch head action editing page can be obtained in advance, so that the electronic device can generate an instruction in response to the operation of the user on the stitch head action editing page of each part, and the stitch head mechanism is controlled to work according to the workflow in the instruction by the instruction, thereby replacing the process of manually re-writing the program code, and solving the problem of lower processing efficiency in the prior art.
In particular, the main body of execution of the control method of the above-described stitch sewing mechanism may be, for example, an integrated stitch sewing machine, or an electronic device having a processing function, such as a terminal device or a server, which can control the integrated stitch sewing machine and can be in communication connection with the integrated stitch sewing machine.
For convenience of description, the technical scheme of the present application will be described in detail with reference to specific embodiments by taking the above-mentioned method execution body as an example of a cotton stocking sewing machine.
The technical scheme of the application is described in detail through specific embodiments.
It should be noted that the following 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 flow chart of a first embodiment of a control method of a stitch sewing mechanism according to an embodiment of the present application. As shown in fig. 2, the control method of the stitch head mechanism may include the following steps:
s101: and acquiring a working state signal of a preset part in the stitch head mechanism, and timing.
In the embodiment of the application, in order to facilitate the interaction between a user and the integrated stitch cotton stocking machine, the integrated stitch cotton stocking machine needs to provide a graphical user interface for the user, and the graphical user interface can be used for displaying a stitch action editing page.
Fig. 3 is a schematic diagram of a stitch motion editing page according to an embodiment of the present application. As shown in fig. 3, the stitch head action editing page includes a combination name area, an action area, a motor area, and may further include a parameter area.
The stitch head action is divided into four modules, namely a stitch head preparation module, a stitch head sock moving module, a stitch head sock covering module and a stitch head ending module, and a 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 corresponding state of 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 settings corresponding to the actions 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 repeated 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 duration and a second preset duration input by a user.
Optionally, the stitch head action editing page may further include an action insertion control, an action deletion control, an action emptying control, a stitch head parameter control, a motor insertion control, a motor deletion control, and a motor emptying control. In order to facilitate the user to input parameter data, the stitch motion editing page can comprise numerical controls (including 1, 2, 3, 4, 5, 6, 7, 8, 9 and 0) and can also comprise an increase control, a decrease control and a backspace control. Besides, the method can also comprise an upturning control, a downturning control, an inserting control, a deleting control, a copying control, a pasting control and a storing control.
The stitch head action editing page can also comprise a knitting control and a return control, and the user can click the knitting control after setting the stitch head action editing page. The integrated stitch cotton stocking machine generates a stitch command, a stepping motor command and an air valve command by responding to clicking operation of a user on a knitting control.
The preset component can be a gripper door, a pressure plate, a hanging thorn and the like, and can be preset according to actual requirements, and the embodiment of the application is not particularly limited.
In a specific implementation manner, a preset component is taken as an example of hanging thorn for specific explanation. The integrated stitch cotton sock machine obtains the working state of the hanging thorn, if the working state of the hanging thorn is relaxed, the corresponding working state signal and the real-time working state can be the hanging thorn loosening-effective state or the hanging thorn tightening-ineffective state.
S102: when the first accumulated time length obtained through timing is smaller than or equal to the first preset time length and the real-time working state of the working state signal is consistent with the preset working state, the joint head mechanism is controlled to work according to the joint head instruction which is acquired in advance.
The first preset duration is obtained in advance in response to an input operation of the user to the first input box of the action delay part in the stitch action editing page, and may be 1000 ms, 950 ms or 900 ms, and may be determined according to an actual input operation of the user, which is not particularly limited in the embodiment of the present application.
The preset working state is a state corresponding to the normal working state of the preset part, and is obtained in response to clicking operation of a user on an action area in the stitch action editing page.
The user may click the type control of the action area in the stitch action editing page in advance, select the type as a signal, click the name control, select the name as a hook to relax, click the state control, and change the state corresponding to the signal to be valid. The integrated stitch cotton stocking machine responds to the operation of a user, and obtains a preset state corresponding to the working state signal, wherein the preset state is effective.
The stitch head instruction comprises a stitch head action combination mark, and the stitch head instruction is generated in advance in response to clicking operation on a stitch head action editing page by a user.
For example, the user may click on the action command portion of the parameter area in the stitch action editing page according to the own requirement in advance, and traverse all the action commands to click on the sub-action command control that meets the own requirement. The integrated stitch cotton stocking machine responds to clicking operation of a user and generates a stitch instruction containing a stitch action combination mark.
For example, the sub-action command control may be a stitch command control, an additional command control, a sock falling detection start control, a sock falling detection end control, a positioning detection control, a sock weaving waiting control, a sock turning start control, a sock turning end control, a sock receiving start control, a sock receiving end control, a lifting start control, a lifting 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 disc start control, a sock pushing disc end control, a parking start control, a parking cleaning waste sock control, a pressing disc start control, a pressing disc end control, a stitch head executing preparation control, a sock falling waiting end control, a longitudinal movement start control, a longitudinal movement end control, a scissors start control, and a scissors end control.
In another specific embodiment, when the first accumulated time length obtained by timing is smaller than or equal to the first preset time length and the state is consistent with the preset state, timing is performed again, and the joint mechanism is controlled to switch the mechanical valve to the air valve; and after the second accumulated time length obtained by timing is equal to the second preset time length, controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction. And calling a program code corresponding to the stitch motion combination mark according to the stitch motion combination mark in the stitch command, and controlling the stitch mechanism to work according to the program code.
The program codes corresponding to the stitch combination marks are prestored in the integrated stitch cotton stocking machine system and cannot be modified.
The second preset duration is obtained in advance in response to an input operation of the user to the second input box of the action delay part in the stitch action editing page, and may be 10 ms, 15 ms or 5 ms, and may be determined according to an actual input operation of the user, which is not particularly limited in the embodiment of the present application.
Optionally, when the first accumulation 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, a warning message is generated, and the warning message is used for reminding a user to check the preset part.
The warning information may be specific music, vibration with specific frequency, text information displayed on the screen of the integrated stitch cotton sock machine, such as "the hanging state is different, please check the hanging state", or a combination of various modes, and may be defined according to the actual situation, which is not particularly limited by the embodiment of the present application.
Further, when the user processes the warning message, the integrated stitch cotton stocking machine re-executes S101.
S103: and controlling the stepping motor and the air valve in the stitch head mechanism to work according to the pre-acquired stepping motor instruction and the pre-acquired air valve instruction.
Wherein the motor command and the air valve command are generated in advance in response to an operation of a user.
The type of the stepping motor instruction comprises at least one of pulse, zeroing, 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.
The user can click the motor area in the stitching action editing page in advance, for example, aiming at the machine head and the swing arm, the action name control of the motor area can be clicked, the machine head lifting control, the swing arm left and right control, the swing arm up and down control and the like are respectively selected, and the 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 stitch cotton sock machine responds to click operation of a user on a stitch action editing page, and a stepping motor instruction is generated.
For example, the user may click on the action area in the stitch action editing page in advance, for example, for the hanging thorn and stitch mechanism, may click on a stitch mechanism back control and a hanging thorn loosening control, and click on a state control corresponding to the stitch mechanism back control and the hanging thorn loosening control, where the state control includes a forward control and a back control.
By way of example, the type of stepper motor instructions and corresponding description may be as shown in Table 1:
TABLE 1
Type(s) | Description of the application |
Pulse | The stepper motor is operated to a certain preset position |
Return to zero | The stepping motor returns to the zero position of the probe |
Measuring range | The stepper motor executing to the maximum position |
Limit of | The stepper motor is operated to the limit probe position |
Parameters (parameters) | Preset and mechanically related parameter positions of stepper motor |
Flower type | The stepper motor is executed to the parameter position set in the pattern |
Delay time | Waiting time of stepper motor |
Frequency of | Operating frequency of stepper motor |
It will be appreciated that only a portion of the stepper motor command types and corresponding description are shown in table 1. In practical application, the type of the stepper motor instruction and the corresponding description may also have other expression forms, and may be determined according to the actual requirement, which is not described herein.
In one implementation, the integrated stitch cotton stocking machine executes program codes corresponding to the stepping motor command and the air valve command simultaneously, and controls the stepping motor and the air valve to work.
According to the control method of the stitch head mechanism, through acquiring the working state signals of the preset parts in the stitch head mechanism and timing, when the first accumulated time length obtained through timing is smaller than or equal to the first preset time length and the real-time working state of the working state signals is consistent with the preset working state, the stitch head mechanism is controlled to work according to the pre-acquired stitch head instructions, and the stepper motor and the air valve in the stitch head mechanism are controlled to work according to the pre-acquired stepper motor instructions and the pre-acquired air valve instructions. According to the technical scheme, the program codes do not need to be manually rewritten, so that the processing time is saved, and the processing efficiency is improved. And because the hardware components of the control system of the existing integrated stitch cotton stocking machine are basically consistent, the control method of the stitch mechanism can be suitable for all control systems of the integrated stitch cotton stocking machines in the market, and the popularization difficulty is greatly reduced. According to the method, the optimal head sewing action is realized by responding to the clicking operation of the staff of the mechanical factory, the advantages of the self-integrated head sewing cotton stocking 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 head mechanism may further include: and responding to the operation of the user, and generating a reset instruction. And resetting the stitch head mechanism according to the reset instruction.
The reset instruction may include a reset flag, where the reset flag may include a reset prohibition, a basic reset, a stitch reset 01, a stitch reset 02, a stitch reset 03, a stitch reset 04, a stitch reset 05, a stitch reset 06, a stitch reset 07, a stitch reset 08, a stitch reset 09, a stitch reset 10, a stitch reset 11, a stitch reset 12, a stitch reset 13, a stitch reset 14, and a stitch reset 15, and each reset flag corresponds to a corresponding program code.
Fig. 4 is a schematic flow chart of a second embodiment of a control method of the stitch head mechanism according to the embodiment of the present application. As shown in fig. 4, the control method of the stitch head mechanism may include the following steps:
step 1, starting.
Step 2, whether a reset instruction exists or not, if yes, executing step 3; if not, executing the step 4.
And step 3, resetting the stitch head mechanism according to the reset instruction.
And 4, acquiring a working state signal of a preset part in the stitch head mechanism, and timing.
Step 5, judging whether the real-time working state of the working state signal is consistent with the preset working state or not when the first accumulated time length obtained by timing is smaller than or equal to the first preset time length, and executing step 7 if the real-time working state of the working state signal is consistent with the preset working state; if not, executing step 6.
And 6, generating warning information, and re-executing the step 4 after the user processes the warning information.
And 7, re-timing, and controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction after the second accumulated time length obtained by timing is equal to the second preset time length.
And 8, simultaneously controlling the stepping motor and the air valve in the stitch head mechanism to work according to the pre-acquired stepping motor instruction and the pre-acquired air valve instruction.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 5 is a schematic structural diagram of a control device of a stitch sewing mechanism according to an embodiment of the present application. As shown in fig. 5, the control device of the stitch head mechanism includes:
the acquiring module 51 is configured to acquire a working state signal of a preset component in the stitch head mechanism and perform timing;
the processing module 52 is configured to control the stitch mechanism to operate according to a stitch instruction obtained in advance when the first accumulated time length obtained by timing is less than or equal to a first preset time length and the real-time operating state of the operating state signal is consistent with a preset operating state, where the preset operating state is a state corresponding to a normal operation of the preset component; the stitch head instruction comprises a stitch head action combination mark, and the stitch head instruction is generated in advance in response to clicking operation on a stitch head action editing page by a user;
the processing module 52 is further configured to control the stepper motor and the air valve in the stitch mechanism to operate according to a pre-acquired stepper motor command and a pre-acquired air valve command, where the motor command and the air valve command are generated in response to a user operation in advance.
In one possible design of the embodiment of the present application, when the first accumulated duration obtained by timing is less than or equal to the first preset duration and the state is consistent with the preset state, the stitch head control mechanism works according to the stitch head instruction acquired in advance, and the processing module 52 is specifically configured to:
when the first accumulated time length obtained by timing is smaller than or equal to the first preset time length and the state is consistent with the preset state, timing is performed again, and the joint mechanism is controlled to switch the mechanical valve to the air valve;
and after the second accumulated time length obtained by timing is equal to the second preset time length, controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction.
Optionally, the processing module 52 is further configured to:
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 part.
Optionally, in response to a user operation, before timing and acquiring the state of the preset signal, the processing module 52 is further configured to:
responding to the operation of a user, and generating a reset instruction;
and resetting the stitch head mechanism according to the reset instruction.
Optionally, the type of stepper motor command includes at least one of pulse, zero, range, limit, parameter, pattern, delay and frequency.
Optionally, the valve command includes a valve state including a forward state and a reverse state.
The control device for the stitch head mechanism provided by the embodiment of the application can be used for executing the control method for the stitch head mechanism in any embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. In addition, all or part of the modules may be integrated together or may be implemented independently. 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 a software form.
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: the control method of the stitch head mechanism provided by any one of the previous embodiments is realized when the processor 61 executes the computer program instructions, which are stored in the memory 62 and can be executed on the processor 61.
Optionally, the electronic device may also include interfaces to interact with other devices.
Alternatively, the above devices of the electronic apparatus may be connected by a system bus.
The memory 62 may be a separate memory unit or may be a memory unit integrated into the processor. The number of processors is one or more.
It should be appreciated that the processor 61 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (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 for execution, or in a combination of hardware and software modules in a processor for execution.
The system bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The system bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus. The memory may include random access memory (random access memory, RAM) and may also include non-volatile memory (NVM), such as at least one disk memory.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including 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, floppy disk, optical disk, and any combination thereof.
The electronic device provided by the embodiment of the application can be used for executing the control method of the stitch head mechanism provided by any one of the method embodiments, and the implementation principle and the technical effect are similar, and are not repeated here.
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 run on a computer, the computer is caused to execute the control method of the stitch head mechanism.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as static random access memory, electrically erasable programmable read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
In the alternative, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC). The processor and the readable storage medium may reside as discrete components in a device.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is stored in a computer readable storage medium, the computer program can be read from the computer readable storage medium by at least one processor, and the control method of the stitch head mechanism can be realized when the computer program is executed by the at least one processor.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (7)
1. A method of controlling a stitch head mechanism, comprising:
acquiring a working state signal of a preset part in the stitch head mechanism, and timing;
when the first accumulated time length obtained by timing is smaller than or equal to a first preset time length and the real-time working state of the working state signal is consistent with a preset working state, the joint mechanism is controlled to work according to a joint instruction obtained in advance, and the preset working state is a state corresponding to the normal working state of the preset part; the stitch head instruction comprises a stitch head action combination mark, and is generated in advance in response to clicking operation on a stitch head action editing page by a user;
controlling a stepping motor and a gas valve in the stitch mechanism to work according to a pre-acquired stepping motor instruction and a pre-acquired gas valve instruction, wherein the motor instruction and the gas valve instruction are generated in advance in response to the operation of a user;
when the first accumulated time length obtained by timing is smaller 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, the joint head control mechanism is controlled to work according to a joint head instruction acquired in advance, and the joint head control mechanism comprises the following steps:
when the first accumulated time length obtained by timing is smaller than or equal to the first preset time length and the real-time working state of the working state signal is consistent with the preset working state, timing is performed again, and the joint mechanism is controlled to switch the mechanical valve to the air valve;
after the second accumulated time length obtained by timing is equal to the second preset time length, controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction;
when the first accumulation time is longer than a first preset time, 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 part; the warning information is music and/or vibration with specific frequency and/or text display.
2. The method of claim 1, wherein the timing is performed in response to a user operation, and wherein the method further comprises, prior to the acquiring the state of the preset signal:
responding to the operation of a user, and generating a reset instruction;
and resetting the stitch head mechanism according to the resetting instruction.
3. The method of any one of claims 1 to 2, wherein the type of stepper motor command includes at least one of pulse, zero, span, limit, parameter, pattern, delay, and frequency.
4. The method of any one of claims 1 to 2, wherein the valve command comprises a valve state comprising a forward state and a reverse state.
5. A control device for a stitch head mechanism, comprising:
the acquisition module is used for acquiring a working state signal of a preset part in the stitch head mechanism and timing;
the processing module is used for controlling the joint mechanism to work according to a joint instruction acquired in advance when the first accumulated time length obtained by timing is smaller than or equal to a first preset time length 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 normal working of the preset component; the stitch head instruction comprises a stitch head action combination mark, and is generated in advance in response to clicking operation on a stitch head action editing page by a user;
the processing module is also used for controlling a stepping motor and an air valve in the stitch mechanism to work according to a pre-acquired stepping motor instruction and a pre-acquired air valve instruction, and the motor instruction and the air valve instruction are generated in advance in response to the operation of a user;
the processing module is specifically configured to, when a first accumulated duration obtained by timing is less than or equal to the first preset duration and a real-time working state of the working state signal is consistent with the preset working state, re-perform timing, and control the joint mechanism to switch the mechanical valve to the air valve; after the second accumulated time length obtained by timing is equal to the second preset time length, controlling the stitch head mechanism to work according to the pre-acquired stitch head instruction;
the processing module is further configured to generate warning information when the first accumulation time is longer than a first preset time period and the real-time working state of the working state signal is inconsistent with the preset working state, where the warning information is used to remind a user to check a preset component; the warning information is music and/or vibration with specific frequency and/or text display.
6. An electronic device, comprising: a processor, a memory and computer program instructions stored on the memory and executable on the processor, characterized in that the processor is adapted to implement the method of controlling a stitch head mechanism according to any one of claims 1 to 4 when executing the computer program instructions.
7. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, which when executed by a processor, are adapted to carry out the method of controlling a stitch head mechanism according to any one of claims 1 to 4.
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 CN113862907A (en) | 2021-12-31 |
CN113862907B true 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 (6)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015093126A (en) * | 2013-11-13 | 2015-05-18 | ブラザー工業株式会社 | Sewing machine |
-
2021
- 2021-09-13 CN CN202111067416.1A patent/CN113862907B/en active Active
Patent Citations (6)
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 |
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 |
---|---|
CN113862907A (en) | 2021-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20080127113A1 (en) | Method and system for implementing watchpoints | |
JP2010507855A (en) | Performing diagnostic operations on asymmetric multiprocessor devices. | |
CN111596912A (en) | Non-programming visual construction system and method for radar display control software based on component library | |
CN108829583A (en) | A kind of page compatibility test method and device based on Selenium | |
CN103034142A (en) | Control method and system of self-adaptation hosiery machine | |
CN113862907B (en) | Control method, device, equipment, storage medium and program product for stitch head mechanism | |
US4116143A (en) | Programming systems for automatic sewing machines | |
CN115934566A (en) | Debugging information display method and device, electronic equipment and storage medium | |
US4691649A (en) | Input device for sewing machine | |
JP2013025347A (en) | Programmable controller | |
CN109683935B (en) | Application program upgrading method and device, frequency converter and storage medium | |
US7003761B2 (en) | Multi-process display method in debugger system | |
CN104656552B (en) | The mobile wireless debugging terminal and its operating method of six Shaft and NC Machining Test polishing machine CNC systems | |
US8627297B2 (en) | Method for evaluating at least one characteristic value | |
CN115934023B (en) | Data processing method, data processing device and related equipment | |
CN109440314A (en) | A kind of method, system and device of reckoning by the piece of sewing | |
CN108396448A (en) | A kind of storage of computer stocking pattern data, read method and system | |
JP3379675B2 (en) | Reverse execution debugging system | |
US10139798B2 (en) | Production machine or machine tool and method for operating such a machine tool | |
CN110990018B (en) | Compiling method and compiling system of embedded system | |
JPH02220145A (en) | Program tracing system | |
CN107784007B (en) | Waveform editing method and device | |
JPS6257588A (en) | Method for forming sewing data of automatin sewing machine | |
EP4379108A1 (en) | Operation information obtaining device and operation information obtaining method | |
Zhuang et al. | Enabling the automation of handler bindings in event-driven programming |
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 |