Industrial sewing machine servo energy-saving motor is the most important part of industrial sewing machine. In order to ensure its control accuracy, closed-loop control system is adopted. Energy-saving is also a very important direction in its development process. In the process of industrial sewing machine operation, we should combine software and hardware. In order to ensure the quality of its operation, the control part of servo energy-saving motor will be adopted. This paper mainly analyses the control part of servo energy-saving motor of industrial sewing machine for reference. The industrial sewing machine servo energy saving motor, as the driving element of the industrial sewing machine, is divided into motor and controller.
The motor concentrates the encoder and grating (or) as the signal feedback system of the motor. The control system is mainly composed of single chip computer, driver chip, power supply, input and output interface, etc. The motor controller of servo energy-saving motor of industrial sewing machine is designed on the basis of single-chip computer. With the help of the combination of single-chip computer and peripheral circuit, the function of industrial sewing machine is more guaranteed. At the same time, the upgrading of single-chip computer makes the hardware system have better development support. The application of single-chip computer injects new energy into the development of the whole control system, making its circuit simpler and the cost lower. In addition, the reliability of operation has been significantly improved in this process. In the design of the system, the hardware circuit adopts the way of structured system design. On the one hand, this method can effectively ensure that the design circuit can develop towards standardization and modularization. In the process of hardware circuit design, the most important content is to choose SCM scientifically and reasonably, and also to choose the matching peripheral chips, which makes the designed system have a very strong economy on the one hand, and a very strong performance on the other. In the process of single-chip system operation, system reset has always been a very important basic work. In the application of MCU, the interface usually has input and result display. In this process, using LED display can effectively prolong its service life, and the cost is not very high. It is very convenient to connect with the interface of MCU. According to the difference of connection methods, LED digital tube can be divided into two ways: common Yin and common yang. Generally speaking, connecting several LED cathodes together. It’s the common-negative type. Connecting the anodes of more than one LED is the common-positive type. It has a very obvious similarity in luminous principle. If the negative pole of a light-emitting diode is low, the corresponding diode will light up. In general, the display is in the form of seven-segment digital display. The dynamic display of LED digital tube is used in multi-bit LED display.
In order to simplify the circuit and control the cost, we need to connect all segments in parallel. At the same time, we need to connect all segments together in this process and control them by an 8-bit I/O interface. The common cathode point or common anode point is controlled by another set of I/O interfaces. Because all segment codes are controlled by an I/O, each LED can only display the same characters at each instant. In order to display different characters, scanning display mode must be adopted, that is, only one bit of the corresponding character is displayed at each instant. At this instant, segment selection code controls the output of corresponding character segment code by I/O port, and bit selection code controls the I/O port to send the selected level in the display bit to ensure that the corresponding character is displayed by the bit.
In this way, each person can display the bit display character in turn, and keep the delay for a certain time, so as to create a visual temporary effect. By continuously sending out the corresponding segment selection code and bit selection code, the visual stable display state can be obtained. The frequency of dynamic scanning has certain requirements. If the frequency is too low, the LED will flicker. After the hardware circuit design is finalized, the software task is basically fixed. When defining each execution module, the data structure and data type are planned. The source program mainly includes main program, keyboard subroutine, display subroutine, external interrupt subroutine and so on. The main program task is to initialize the controller, including keyboard, display, external interrupt and other initial quantities, and then call keyboard subroutines and display subroutines circularly. The task of displaying subroutines is to display information such as completion time, encoding, and status. Each key is given a specific function.
The function of keyboard subroutine is to scan the keyboard (to detect whether keys are pressed), to process keys jitter, to process multiple keys, to determine the position of keys being pressed, to generate codes for corresponding keys, and to execute key functions. The task of timing interrupt subroutine is to complete the hexadecimal to decimal conversion of timing and time. The task of external interrupt subroutine is to receive data, process data and send data to display buffer. System debugging includes hardware debugging and software debugging, and they are inseparable. Only after joint debugging can we verify whether the hardware and software meet the technical requirements, and only after debugging can we find out the problems and solve them. Power supply debugging. If the resistance value is very small, it means that there is a short circuit, check the fault, and vice versa. After power-on test, the output voltage of power supply is measured by multimeter. The actual output voltage is 5 0.5V. Within the required range, the output voltage is normal, indicating that the power supply circuit is normal. The basic circuit debugging of single chip computer.
The voltage of oscillation circuit and reset circuit is measured by electrification. Display circuit debugging. The display circuit of this design uses Gongyang digital tube. Before installing the digital tube, use the multimeter to test the digital tube. The debugging process of the display circuit is to ensure that the pin of the single chip computer is connected to the digital tube correctly, and to write a display program to check whether the display circuit is correct or not. Keyboard circuit debugging is relatively simple, the keyboard circuit is relatively simple, so debugging is also very easy. To ensure the correct welding, only a test program is written, debugged on the simulator, when pressing the button, the corresponding port level can be observed. Debugging of wireless receiving circuit and decoding circuit.
Power on, press the key of the wireless transmitting circuit, and use the oscilloscope to observe whether the output of the wireless receiving circuit and decoding circuit has waveform output. The software is debugged on the simulator to ensure that it works properly. Debugging process is a gradual process, until all meet the design requirements. In this design, software debugging is mainly divided into four parts: main program, keyboard processing subroutine, display subroutine, timing interrupt subroutine, external interrupt subroutine. Display subroutine debugging. The display subroutine is a relatively independent subroutine. The data to be displayed should be placed in the corresponding display buffer. The function of the display subroutine is to display the data in the corresponding position in the display buffer. Compile display subroutine, change data in display buffer, debug display subroutine until display is normal. At present, thermostatic element industrial sewing machine has been widely used in many industries. At the same time, servo energy-saving motor has played a very active role in the operation of many industrial sewing machines. Under such circumstances, we must take effective measures to study it comprehensively. Only in this way can we better promote the performance of industrial sewing machine.