STITCH PROCESSOR

Abstract: A method of controlling an embroidery machine (3) using a stitch processor (1) by interpreting a low level language program containing stitch commands and varying the stitch commands to vary certain parameters of the design. The parameters which may be varied in any combination thereof include any of the following: stitch density, stitch length, size of the design independent of the stitch density, stitch spacing as a function of stitch length, orientation of the design, mirror image of the design and removing irregularities in the design. The parameters to be varied are entered by a keyboard/display (2). The program may be read from a paper tape reader (4), directly from a computer system (5) used to generate the original stitch commands or any other input device. The modified stitch commands may be fed directly to an embroidery machine or stored in any of the usual methods for communicating to an embroidery machine at a later date.

Description: "STITCH PROCESSOR" TECHNICAL PTELD This invention relates to a method and apparatus for controlling an automatic embroidery machine or the like. BACKGROUND ART Embroidery machines have been used for many years. These machines have generally been controlled by a program punched into a paper tape although recently electronic storage means have been deployed. The program on the paper tape etc. which control the embroidery machines are generally in one of two formats, either a tape data format or a condensed data format. Both of these formats control the position of the work table of the machine plus other special functions such as change thread, start, stop etc. A so-called tape data format contains the step by step commands which the machine executes, for example move x axis four steps move y axis minus two steps stitch etc. It is the lowest level of information on which a machine can work and is often referred to as low level language as each step to be performed by the machine is encoded on the • tape. A so-called condensed data format is a higher level language of pattern storage. This information contains the necessary parameters from which designs can be generated. This format does not tell the machine how far to move the work table etc. but requires the machine or design computer to generate the actual table movement sequence (incremental steps). Each embroidery design requires a different program. The programs are generated on a design embroidery machine, a design computer or the like, ofter called "punching machines" where the designer programs the design machine to generate the desired design. The program thus produced may be stored in, for example, the form of a punched paper tape or the like. To redesign the embroidery design, for example, to vary the density of the stitches or the size of the design or even the orientation of the design. requires reprograraing and producing a new paper tape program for the production machines. Designs which are generated in a. condensed data format can be varied in size and stitch density since the information required for generation of incremental steps is provided in the nature of the condensed data format language, however this type of format is generally provided only on the so called "punching machines" which are used for creating the original designs and is not normally used on production machines. A tape data format is normally used to drive production machines and generally cannot be varied. However, in recent times, these tape programs are able to be manipulated to provide scaling effects. That is, the size of a given design may be increased or decreased but this scaling is limited in its effect. The scaling is achieved by varying the actual stitch length, that is the incremental value between co-ordinate points is varied - % thus providing longer stitches or shorter stitches which in turn increase or reduce the size of the design. Even .though the design may be scaled the actual number of stitches in the design stays the same. This has the disadvantage that when increasing the size of the design the density of the stitches may not be sufficient to provide adequate coverage by the fill stitches and satin stitches leaving areas where the base material shows through. Also, when decreasing the size of the design the stitches may tend to bunch up causing areas of unsatisf ctory quality. This problem has been overcome by using the condensed data format in which the density is determined by the machine when calculating the required stitch depths, but no machine nor device has previously been able to vary the actual stitch density of a design recorded in a tape data. format. DISCLOSURE OF THE INVENTION Thus, it is an object of this invention to provide an apparatus for varying the stitch densities of tape data format programs so as to overcome the aforementioned problems.. Accordingly, in one aspect the present invention consists in a method, of controlling an automatic embroidery machine, comprising the steps: i) reading a low level language program incorporating stitch command; ii) interpreting the low level language to determine the stitch type and area covered; and iii) modifying the stitch command in accordance with predetermined para ters. Preferably, the method further includes the step of communicating the modified stitch commands to the automatic embroidery machine to produce a desired modified design. Preferably, the low, level language program is read from a punched paper tape or other equivelent electronic device. * Preferably, the predetermined parameters include modifying the stitch commands to vary the size of the design while maintaining the stitch density. Preferably, the predetermined parameters include modifying the stitch commands to vary the stich density independent of any scaling modification. Preferably, the predetermined parameters include modifying the stitch commands to vary the stitch density of each different stitch type independently. Preferably, the predetermined parameters include modifying the stitch commands to vary the orientation of the design. Preferably, the predetermined parameters include modifying the stitch commands to produce a mirror image of the original design. " Preferably, the predetermined parameters include modifying the stitch commands to maintain the length of the stitches less than a maximum length. Preferably, the predetermined parameters include modifying the stitch commands to maintain the length of each stitch type less than a respective maximum length. Preferably, the modified stitch commands are communicated directly to the automatic embroidery machine. Preferably, the stitch commands are modified to provide stitch spacings as a function of stitch length of certain stitch types. Preferably, the low level language program is interpreted to recognise irregularities and inconsistencies in certain stitch types and the stitch commands are modified to smooth out the irregularities or inconsistencies. In another aspect the present invention consists in a stitch processor adapted to be inserted between a tape file format program input device and the process controller of an automatic embroidery machine to adapt the stitch program from the program input device in accordance with desired parameters, said stitch processor comprising: a central processing unit including a timer and an interupt controller; EPROM; RAH; address and data latches; and input and output devices, all interconnected by a common address/data bus. Preferably, the device can modify the stitch commands provided by the input device in accordance with predetermined parameters to produce modified stitch commands for controlling the embroidery machine. Preferably, the stitch commands are modified to vary any combination of the following features of the design: size, independent of stitch density; stitch density, in all or any combination of each different stitch type; orientation of the design; maximum fill stitch length; maximum running stitch length; and. maximum jump and satin stitch length. Preferably. the stitch commands are modified to produce a mirror image of the original design. Preferably, the stitch commands are modified to produce stitch spacings as a function of stitch length for certain stitch types. Preferably, the stitch commands are modified to smooth out irregularities and inconsistencies in the original low level language program. Preferably, the embroidery machine is replaced by a plotter to produce a pictorial representation of the modified design. Preferably, the embroidery machine is replaced by an output device for recording the modified stitch commands. BRIEF DESCRIPTION OP THE DRAWINGS Notwithstanding any other forms that may fall within its scope, one preferred embodiment of the invention will now be described by way of example only with reference to the accompanying drawings in which Figure 1 is a black box diagram of the of the v preferred embodiment showing connections to program input devices and an embroidery machine; Figure 2 is a block diagram of the arrangement in Figure 1; and Figure 3 is a black box diagram of another embodiment of the invention connected in a stand alone arrangement. MODES FOR CARRYING OUT THE INVENTION From Figure 1 it can be seen that the preferred embodiment of the invention, known as a Stitch Processor (S/P), comprises two physical units, the S/P board (1) containing the- various electronic devices for processing the stitch program and a S/P keyboard/display (2) interconnected by cable (6). Of course, these could be constructed as a single physical unit if so desired. The S/P board (1) is connected to the processor board of the . embroidery machine (3) via cable (7) for parallel transmission of information. The S/P board (1) is connected to a device (4) for inputting the desired program via cable (8). In this case the device is a (8) channel paper tape reader, but could be other devices such as a floppy disk reader or equivalent electronic or magnetic information transfer device such as magnetic tape or ROM device. Thus it can be seen that the S/P is inserted between the reader (4) and the embroidery machine (3). In operation the S/P appears to the reader (4) as the embroidery machine and appears to the embroidery machine (3) as the reader. The S/P board (1) may also or alternatively be connected to a computer system (5) via cable (9) for direct production of computer generated designs, the computer system (5) functioning as the program input device. The S/P keyboard/display (2) is provided to enable an operator to key in the require variations to the design being produced. Default values result in no modification to the design. Modifications to the design include: 1. variation in size (scaling); 2. variation in stitch density in all or any; combination of the three different basic stitch types used, i.e. satin stitch, running stitch and fill stitch (also known as ceeding stitch or geflect stitch), although other stitch types may also be varied; 3. variation in the orientation of the design (i.e. the design may be rotated); 4. the design may be reversed to produced a mirror image of the original design; 5. variation in fill stitch length; 6. variation in running stitch length; and 7. variation in the maximum stitch length (as is used in satin stitch and jump commands). Any combination of the above modifications may be made on the one design. The scaling process varies the size of the design while maintaining the original density of the design unless it is also altered by the operator. This allows enlargement of the design without the previous disadvantage of gaps appearing in the design or a reduction in the size of the design without bunching of the stitches. Figure 2 shows, the block diagram of the apparatus wherein it can be seen that the stitch processor board (1) comprises: a central processing unit (11). having a 8086 chip (12), a 8087 chip (13), a timer (14) and an interupt controller (15), all connected to a common data/address bus (10) also connected to the bus are: an EPROM (16), containing the S/P program memory; RAM (17) for temporary storage of data; serial interface (UART) (18), for serial communication with the S/P keyboard/display (2) and the computer system (5); parallel I/O interface (19), for communication with the embroidery machine (3) and program reader (4); address latches (20); and data latches (21). The S/P board (1) receives the required design variations from the operator via the keyboard/display (2). Th≤ display provides the operator with a vistral verification of the inputted information and a reminder of -the next step to be performed by the operator. Once a design has been started the display displays the progress of the design including the number of steps of the program read and the number of steps executed by the machine. The S/P board receives the data supplied by the reader 4 or computer system (5), interprets the type of stitch being ordered by the program and the area involved. It then calculates the new steps required to modify the design as required and outputs the. new steps to the embroidery machine's processor for controlling the machine to produce the required modified design. The information supplied to the S/P board via the reader (4) or computer system (5) is in the form of low level language (i.e. tape data format). The stitch processor can also be adapted to modify a stitch spacing as a function of stitch length. This is desirable as the longer a stitch is the closer the stitches should be to maintain the visual density of the stitch pattern. This can be accomplished at the same time as the stitch processor is determining the stitch type, the area of the pattern and the stitch density of the modified design. At the same time the stitch processor can be adapted to detect irregularities in the stitch pattern and to vary the modified design to smooth out the irregularities and inconsistencies to produce a neater design. Sometimes, especially in old programs, small irregularities were allowed to remain in the stitch program to avoid the expense of redesigning the entire program. The S/P may also be used to produce modified programs which are recorded for future use or which may be directly outputted to a plotter or the like to produce a pictorial representation of the modified design. This is readily accomplished by the connections shown in Figure 3. wherein the S/P keyboard/display are connected to an input device and to an output device. The input device may be any type of program input device including, but not limited to, any of the following: paper tape reader, floppy disk reader, magnetic tape or cassette reader, bubble memory reader. EPROM or ROM reader, design computer system, etc. The output device may be any type of output device including, but not limited, to any of the following: paper tape puncher, floppy disk recorder, magnetic tape recorder, PROM programmer, graphics display system, plotter etc. Although the preferred embodiment has been described as a separate processor device, the invention may well be incorporated into an automatic embroidery machine as an integral part of the machine's processor.

Claims: C AIMS 1. A method, of controlling an automatic embroidery machine, comprising the steps of: i) reading a low level language program incorporating stitch commands; ii) interpreting the low level language program to determine the stitch type and area covered: and iii) modifying the stitch commands in accordance with one or more predetermined parameters. 2. A method as defined in claim 1, further including the step of communicating the modified stitch commands to the automatic embroidery machine to produce a desired modified design. 3. A method as defined in claim 1 or claim 2, wherein the low level language program is stored on one of the devices contained in the following group: punched paper tape, floppy disk, magnetic tape. ROM, PROM. EPROM, bubble memory and a design computer system. 4. A method as defined in any one of the preceding claims, wherein said predetermined parameters include modifying the stitch commands to vary the size of the design while maintaining the original stitch density. 5. A method as defined in any one of the preceding claims, wherein said predetermined parameters include modifying the stitch commands to vary the stich density independent of any scaling modification. 6. A method according to claim 5, wherein said predetermined parameters include modifying the stitch commands to vary the stitch density of each stitch type independently. 7. A method as defined in any one of the preceding claims, wherein said predetermined parameters include modifying the stitch commands to vary the orientation of the design. 8. A method in accordance with any one of the preceding claims, wherein said predetermined parameters include modifying the stitch commands to produce a mirror i age of the original design. 9. A method as defined in any one of the preceding claims, wherein said predetermined parameters include modifying the stitch commands to maintain the length of the stitches less than a maximum length. 10. A method as defined in claim 8. wherein said predetermined parameters include modifying the stitch commands to maintain the length of each stitch type less than a respective maximum length. 11. A method as defined in any one of the preceding claims, wherein the modified stitch commands are communicated directly to the automatic embroidery machine. 12. A method as defined in any one of the preceding claims, wherein the stitch commands are modified to provide stitch spacings as a function of stitch length of certain stitch types. 13. A method as defined in any one of the preceding claims, wherein the low level language program is interpreted to recognise irregularities and inconsistencies in certain stitch types and the stitch .commands are modified to smooth out the irregularities or inconsistencies. 14. A stitch processor adapted to be inserted between a low level language program input device and the process controller of an automatic embroidery machine to adapt the stitch program from the program input device in accordance with desired parameters, said stitch processor comprising: a central processing unit including a timer and an interupt controller; EPROM; RAM; address and data latches; and input and output devices, all interconnected by a common address/data bus. 15. A stitch processor as defined in claim 14, wherein the device is adapted to modify the stitch commands provided by the input device in accordance with predetermined parameters to produce modified stitch coramands for controlling the embroidery machine. 16. A stitch processor in accordance with claim 15, wherein the stitch commands are modified to vary any combination of the following features of the design: size, independent of stitch density; stitch density, in all or any combination of each stitch type: orientation of the design; maximum fill stitch length; maximum running stitch length; and maximum jump and satin stitch length. 17. A stitch processor in accordance with claim 15 or 16. wherein the stitch commands are modified to produce a mirror image of the original design. 18. A stitch processor in accordance with any one of claims 15 to 17, wherein the stitch commands are modified to produce stitch spacings as a function of stitch length for certain stitch types. 19. A stitch processor in accordance, with anyone of claims 15 to 18, wherein the stitch commands are modified to smooth out irregularities and- inconsistencies in the original low level language program. 20. A stitch processor in accordance with any one of claims 15 to 19. wherein the embroidery machine is replaced by a plotter to produce a pictorial representation of the modified design. 21. A stitch processor in accordance with any one of claims 15 to 19, wherein the embroidery machine is replaced by an output device for recording the modified stitch commands.

Inventors: PONGRASS ROBERT GABOR, WILSON WILLIAM BRIAN, PONGRASS, ROBERT, GABOR, WILSON, WILLIAM, BRIAN
Applicants: WILCOM PTY LTD, WILCOM PROPRIETARY LIMITED
Application year: 1986
Main classification: D05C5
IPC codes: D05B21, D05C5