Share this

Design of a single-chip microcomputer control system for an automatic magnetic tile chamfering machine

2026-04-06 01:14:20 · · #1
Introduction With the rapid development of China's manufacturing industry, production automation has also developed rapidly. Microcontroller-based electromechanical control systems are an important area of ​​production automation. They offer high control precision, powerful functions, accuracy, and reliability. The production of chamfered magnetic tiles is a mass-production industrial process. Manual production is inefficient and yields low-quality products. Using a microcontroller to control a servo motor to complete each process for chamfering magnetic tiles can significantly improve labor productivity and the degree of automation. System Principle of the Chamfering Machine This control system requires the motor to drive the main pulley of the chamfering machine in intermittent motion. While the pulley is moving, the chamfering machine completes the unloading and grinding of the left and right end faces. When the pulley stops, the corresponding workstations perform grinding of the left outer arc, right outer arc, left inner arc, right inner arc, outer chamfer, and inner chamfer. The magnetic tile part is shown in Figure 1. The working principle of the automatic chamfering machine is shown in Figure 2. First, the motor drives the conveyor belt, causing the magnetic tile part to pass through the first pair of grinding wheels, completing the grinding of its left and right end faces. When it reaches the left outer arc grinding station, the movement stops, and the corresponding cylinder pushes it from the conveyor belt to the grinding wheel position, holding it for at least 0.2 seconds to complete the grinding. After grinding, the cylinder and corresponding mechanical mechanism return the magnetic tile to the conveyor belt, starting the movement to the next station. This continues until all stations are ground, and finally, the tile is unloaded. The process flow is shown in Figure 3. Based on the above process flow diagram, and after comprehensive consideration, the working sequence of the magnetic tile chamfering machine was designed. The drive belt motor moves intermittently, moving for 0.6 seconds and stopping for 0.9 seconds. During the stop time, the six cylinders respectively complete the processing control system hardware design at each workstation. Based on the designed timing and the functions to be performed, the STC8051 microcontroller was selected as the core component. The motion controller controls the Yaskawa servo motor to perform intermittent motion. The block diagram of its computer control system is shown in Figure 4. Upper-level industrial control computer: writes and sends instructions, sending the instructions to the motion controller. After translation, the motion controller sends the instructions to the servo amplifier to drive the servo motor to achieve the required motion. Motion controller: This motion controller is based on the core component. Users can use its instruction set to write corresponding programs on the upper-level computer. After translation by the motion controller, the programs are sent to the servo amplifier. Servo amplifier: receives external signals to control and drive the servo motor to perform the corresponding motion. Servo motor: the actuator that drives the belt to perform the required intermittent motion. This system selects the STC8051 as the microcontroller, which has an internal 8K Flash ROM, enabling in-system programming. The ISP programmable programmable memory (IP) uses the microcontroller's programming, clock, and reset lines (IPs) to access the microcontroller's internal Flash memory. The programming lines are shared with the P1 port lines, eliminating the need for additional microcontroller pins. The circuit uses a micro-switch to select between running and programming modes. In programming mode, the controller chip does not need to be removed. Host computer software is used via a download cable and interface to program and debug the microcontroller's internal Flash memory, facilitating on-site operation and maintenance. In servo motor position control mode, the microcontroller's P1 and P21 output terminals input command pulses and symbols to the servo amplifier, controlling the motor to rotate only at an angle proportional to the input pulse. P22 is used to input to the servo amplifier's /CLR to clear the position offset. X1 is connected to a crystal oscillator to generate input pulse signals. The pulse signals required by the servo are generated by the microcontroller's timer T0 interrupt. T0 operates under the Fangwu 2 timing mode. Theoretically, when the oscillator frequency is 1-2 MHz, the timing length is (2^8 initial count value) * 1 second. However, when the interrupt is generated, a certain instruction may be running, and additional work may be done after entering the interrupt. Therefore, the frequency of the output pulse calculated from the timing length differs somewhat from the actual output frequency. If the initial count value is 0 FO H, an interrupt can be generated after 16 instruction cycles. In the interrupt routine, the PULS (pulse pin) is reversed, so theoretically, a pulse signal can be output approximately every 40 instruction cycles. The frequency is 25 kHz. When the initial count value increases, due to the time required for microcontroller processing, some interrupts may not be responded to, and the actual output pulse signal frequency will not increase. Actual measurements show that the pulse output of N,N~TNN at 12 MHz is approximately 20 kHz, while the servo motor requires 2048 pulse signals to rotate one revolution. Therefore, the maximum speed is approximately 600 r/min, which meets the speed required for motor operation. The system program flowchart is shown in Figure 5. First, the instruction pulse, direction signal, input clear signal, MAIN function entry, and timer interrupt entry are initialized. Then, the MAIN function is executed, and the input control signal makes the motor rotate forward 10.5 revolutions, then stops and waits for 0.6 seconds, and then checks for alarms. If not, the MAIN function is executed repeatedly; if so, the motor is stopped. Power off, alarm cleared, power on again, and run. Conclusion This paper analyzes the system principle of the magnetic tile chamfering machine, selects the STC 8051 microcontroller to form the servo motor motion controller, and then achieves the desired function through programming. The control system has been successfully applied in the actual project. It is believed that it will play a role in promoting the automated production of magnetic tile chamfering machines. The control system can also be extended to the production of other similar products. References [1] Lei Sixiao, Feng Yuchang. Microcontroller System and Engineering Application. Xi'an: Xi'an University of Electronic Science and Technology Press, 2005. [2] Shu Zhibing. AC Servo Motion Control System. Beijing: Tsinghua University Press, 2006. [3] Zhu Yong. Single. Principle and Application Technology. Beijing: Tsinghua University Press, 2006. Editor: He Shiping
Read next

CATDOLL 115CM Nanako TPE (Customer Photos 2)

Height: 115cm Weight: 19.5kg Shoulder Width: 29cm Bust/Waist/Hip: 57/53/64cm Oral Depth: 3-5cm Vaginal Depth: 3-15cm An...

Articles 2026-02-22