To. Application of 851 Single Chip Microcomputer in CNC Drilling Machine Chen Mingcheng Department of Physics, Pengzhou 6930, can adapt to the needs of modern electronic circuit design, in order to meet the needs of automated industrial production. This article focuses on the following, the company's 51 single-chip microcomputer as the central processing machine CNC drilling machine system, the working system can be supplemented with the corresponding drive peripherals, can also be used in lathe milling machine grinder and other mechanical control equipment.
Control Software Since the United States successfully developed the world's first CNC machine tool in 1952, the numerical control devices have changed dramatically in appearance and performance for decades. Today, we have entered the micro-processing digitalization period. This paper focuses on the CNC drilling machine system developed by the company and 51 single-chip microcomputer.
Hardware control circuit overall design l The overall design of the circuit is composed of parts; MCS51 system central processor interface circuit drive and control circuit.
The system uses 10551 MCU as the central processor of the CNC drilling machine system; with system expansion, 1 and the ruler area is responsible for storage management and control work. Keyboard 0 display; control interface circuit; parent axial stepping motor drive circuit; axial stepping motor drive circuit; and stroke feedback controller.
2 circuit introduction 1 single-chip control system single-chip control system selects the United States still 1 company's only 551 single-chip microcomputer as the central processor; 1MCS5 single-chip system has the advantages of simple design, reliable performance, etc. uMCS51 single-chip system also reserves enough software and hardware resources for users. For the user to carry out the development and application of the system, the system can expand the site selection of 64KKOM and 04KRAM area for users to use, in addition to the existing 4 programs in the 40851 MCU. During system development, the user can store the data blocks and program segments in the form of several subroutines and data blocks in the extended milk 1 or off 4 area of ​​the 40851 MCU, so that the system 1 can be reused and repeatedly called.
51 MCU is also preset for the user, a parallel data port, providing users with a variety of end 1 services, can.
2 CNC drilling machine system interface design In order to enhance the management and control function of the CNC drilling machine, the system selects 1255 programmable 10 connection, the chip is used as the system expansion interface, and it is utilized. 130 independent 1 channel and programming different working modes enhance the interface function of the system. Used in the system setting juice. 8 The two channels exchange data with the axial stepping motor drive circuit. Programmable 10 interface chip 8255 port and 1; 1 is set to output working mode, responsible for management and axial stepping motor fat impulse distribution, six ports management axial, one port responsible for managing the axial. , the channel completes the stroke feedback controller function, the state information between the control system and the numerical control drilling machine, and the driving of the stepping motor of the interface driving circuit is sent by the single chip MS5 to the A or B port of the 8255 to send the ring pulse distribution word. Realized, and the distribution of the distribution word is set by the system programming, and when the axis is positioned. The specific positioning and the positioning of the shaft should also be determined by the position of the component to be processed, and the relationship satisfies the column juice formula. The distance moved in the axial direction is equal to the value of the last element. The distance between the hole and the start of the current element, where Xk is the distance between the starting position of the Kth element and the last position Xkn of the KL element, by determining the ring pulse. The number of distributions, the positive and negative modes of the axis stepper motor. xkoiR, reverse when the program runs to the end mark, that is, under Lk, the stepping motor output pulse distribution word is positive and the reverse code pulse distribution stepper motor drive circuit system software design in the drilling machine MCS51 single-chip control On the system board, a 32K extended ROM area is arranged, the address is OOOOH7FFFH, where 0000H3FFFH is occupied by the system management program, and the working program development area is 4000H7FFFH. In order to ensure the normal operation of the system, we divide the system management program into a component. Or the work area is solidified in the extended ROM area.
The system management initialization program is divided into two working levels. 1. Initialization area It is responsible for the initialization of the system 10 port and keyboard management; the main function is to meet the requirements of the bit movement technology, so that it can meet the technical finger of the axis and axial bit movement; In order to complete the above indicators, it is necessary to initialize the system 1., port 8255, and set the port and the output mode respectively. The lower 3 bits of the port and 15 ports are the output terminals of the stepping motor pulse distribution manager, respectively, and are responsible for control. The movement of the stepper motor in the axial direction; the second is the initialization of the microcontroller keyboard logic program, the purpose is to facilitate the operation, the effective control of the trampoline system through the keyboard; 1 for the position control 1 method, use, manage the drill system process And the alarm work 12. Drilling machine system component library program area dragon to reduce the programming workload of the drilling machine operator during the drilling operation, in the system set ten hours has been in the work of the various electronic components lead the number of holes plus 1 process The program is solidified in the component sub-program library. Inside, when the user operates the drilling machine, the only work is to input the component number component, the size of the 13 component is used to introduce the parameter and orientation information, and the related movement, zero reset and other information. When the system confirms the target program, the corresponding call is made. The service subroutine completes the processing of the printed circuit.
Operation data input area It is completed by 04 area and 1 area. The main function is to accept the operator's keyboard control information, call the system work area software module, determine the working mode, step interval, vertical and horizontal axis shift fork system and time system. The necessary parameters of the work to ensure the normal operation of the CNC drilling machine system.
The working part of the drilling machine system is mainly completed by the system management software, and its main function is to extract the control parameters of the machining axis of the part from the operation data 1. The handover system performs processing, and the parts drive the port according to the user's requirements, and complete the mechanical operation and control of the number of the drilling machine.
The system management software, in total, is completed, and the stroke feedback controller system is composed of a number of strokes, and the main function station ensures the completeness of the mechanical system and the control work.
Flash system is a multi-functional vertical and horizontal mobile work platform, which can be applied to the transformation of a variety of mechanical processing equipment, and can also be used to transform the mechanical equipment of the squall line. In order to standardize the modularization of the system structure, it is also possible to develop corresponding physicalization on other single-chip microcomputers or other modular machines. The device; if it is used in a simulation teaching experiment that is not very high, it can also be used, and a series of single-board machines develop a similar experimental machine.
Zhu Yanhong's computer-connected 1 and 10 programming should be published by the experiment of Zhongyang University of Science and Technology Press, 1驹ç©; Xiaoping's single-chip juice, and its Yang Electronic Science and Technology University Press published the road gray editing 1Extended to be established by Chengdu University of Science and Technology Press
(Finish)
Hubei ruiyate Automobile Co.,Ltd , https://www.ruiyate-automobile.com