CNC Lathe and modified design
Abstract: In view of the existing conventional lathe CA6140 disadvantage generally converted to NC programs and single-chip system design, improve machine tool accuracy and expand the scope and increase productivity. This thesis describes the general transformation of CNC lathe of the design process, a more detailed description of the transformation part of the CA6140 mechanical design and numerical control system part of the design. 8031 for the CPU to use the control system to deal with signals from the I / O interface stepper pulse output, with a gear reducer, the drive screw rotating roll in order to achieve vertical and horizontal movement of the feed.
Keywords: CNC machine tools, CNC single-chip system, the design modifications
First, an overview of
Machine tool manufacturing industry as an important basis for machinery and equipment, its development has been a source of concern, because of the rise of computer technology, machine tool control information to a qualitative breakthrough in the cause for the application of digital technology a new generation of flexible automation tool -- the birth of CNC machine tools and development. The emergence of computers and applications, provide humanity with the machining process to achieve the ideal means of process automation. With the development of CNC machine tools have also been rapid development and a wide range of applications, while the traditional tools of transmission and the concept of structure has been a fundamental shift. CNC machine tools for its outstanding performance and precision, agility and functional diversity caused worldwide attention, and to develop mechanical products to the development of the first mechanical-electrical integration. CNC machine tools based on information the implementation of digital control machine tool mechatronics products, it put the tool and workpiece relative position between the machine start and stop the motor, spindle speed, workpiece clamping and release, tool selection, cooling pump from a variety of stop motion and other operation and the order information using the code of the digital recording medium in the control, and then digital information into digital device or computer, after decoding, computing, control commands issued by a variety of machine tool servo system or the implementation of other components required for processing a workpiece.
CNC machine tools as compared with the general machine tools, the main has the following advantages:
1. Adaptable for processing single pieces or small batches of complex parts; on CNC machine tools in the workpiece changes, simply re-establishment of the new work processes, we can achieve a new workpiece processing.
2. Processing and high precision;
3. The production of high efficiency;
4. Reduce labor intensity and improve working conditions;
5. Good value for money;
6. There is conducive to the modernization of production management.
CNC machine tools has become the mainstream of China's market demand for products, year-on-year surge in demand. China's CNC machine tool industry in recent years on product development and achieved remarkable progress, especially in the high-speed machines, multi-axis, and complex, and has made great progress with regard to precision. However, the Chinese-made CNC machine tools and advanced country compared to similar products, there are still gaps, but also can not meet the needs of national construction. China's machine tools are a big country, there is more than three million Units of ordinary machine tools. However, the quality of machine bad performance behind, the average single machine production of advanced industrial countries, only 1 / 10 about the gap too much, need to be modified. CNC machine tool of the old GM, as its name suggests is on the increase in the general computer control machine tool devices, to a certain degree of automation with the ability to achieve a predetermined goal processing. With the CNC machine tools more and more and more universal application of the technology cost-effective CNC machine tools for everyone to understand. Factory in China in the technology, computer numerical control of machine tools has become an important aspect of transformation. A lot of plants to use to purchase a CNC machine tool numerical control, digital display, PC technological transformation of general machine tools, and achieved good economic benefits.
China's limited economic resources, country, and machine tool requirements, and it is not possible to come up with considerable funds to purchase a new type of CNC machine tools, and a lot of my old machine with a CNC machine tool system common in less investment circumstances, so that it can meet the processing needs, but also improve the automation of machine tools, more in line with China's national conditions. In 1984, China began production of CNC systems, and for the transformation of the old machine. So far, a lot of manufacturers to produce the economic type CNC system. It can be expected that in the future, numerical control machine tool of economic transformation will be rapid development and popularization. So that the graduates have a typical design and practicality.
Two, the overall design
2.1 Design Missions
The design mission is to carry out CNC Lathe CA6140 transformation. The use of microcomputer for vertical and horizontal feed control system for open-loop, vertical (Z direction) pulse equivalent to 0.01mm / pulse, the horizontal (X to) pulse equivalent to 0.005mm / pulse, the use of stepper motor drive components, drive system used Ball Screws, transposition of the introduction of automatic tool turret.
2.2 The overall program evaluation
For ordinary CNC machine tools transform the program in determining the overall design should be considered to meet the design requirements under the premise of the changes on the machine should be as little as possible in order to reduce costs.
1) exercise the way CNC numerical control system to determine the exercise by the way points can be divided into control systems, point linear control systems, continuous control systems. Requirements because of the complexity of the outline of CA6140 lathe parts, so the computer numerical control system for a two-axis control system.
2) Servo System Design of CNC machine tool feed servo system has open-loop, semi closed-loop and closed loop of points. Since open-loop control structure is simple and easy to design and manufacture, the control accuracy is better, easier debugging, cheap, convenient to use the advantages of repair. Therefore, decided to adopt the design of open-loop control system.
3) CNC system hardware design by a numerical control system hardware and software is composed of two parts. Hardware are the basis of numerical control system, the performance of a direct impact on the overall performance of numerical control system. With hardware, software can be run effectively. In the design of the CNC devices, CPU's Choice is the key, select CPU should consider the following elements:
(1) clock frequency and word length with the sports object is closely related to the speed and accuracy;
(2) the expansion of memory capacity and the strength of NC-related functions;
(3) I / O port expansion capability and the ability to control related peripherals.
In addition, the numerical control system should be based on applications to control the object as well as various performance parameters of the requirements, consider General to determine the CPU. In China, the general transformation of the application of CNC machine tools more common are Z80CPU and MCS-51 series single-chip, mainly because they are supporting chips cheap, universal, unified, manufacture and maintenance convenience, fully able to meet the economic the transformation of CNC machine tools required. The design is based on MCS-51 series single-chip, 51 Series 48 Series commands a relatively more abundant, relatively cheap price of 96 series, 51 series, the 8051,8751 are no ROM is EPROM instead of ROM 8051. At present, the application of IPC is the largest single-chip 8031. Designed by the 8031 chip as the core to increase the memory expansion circuit, interface and switch panel, composed of the operation control system.
2.3 Determination of the overall program
By the overall design of the evaluation program to determine the CNC lathe CA6140 Schematic transformation. CA6140 lathe spindle speed of machine parts to retain the original function, that is, manual transmission. Vertical lathe (Z axis) and horizontal (X axis) into the stepper motor to drive the use of sport. Composed by the 8031 single-chip microcomputer as the core of digital devices, from the I / O interface, the annular distributor and the power amplifier control with stepper motor rotation, the ball screw drive gear after the rotation, in order to achieve the vertical lathe, horizontal Sports feed. Changed by the microcomputer control tool by the motor-driven automation tool auto-switch. In order to maintain the function of cutting thread, the spindle pulse generator must be installed for the use of synchronous timing belt on the spindle so that rotation synchronous pulse generator, the issue of the two signals: the issue of the pulses per revolution number and a sync signal, the isolation circuit and I / O interface to the computer. # p # title # e # Pagination
Third, computer numerical control system hardware circuit design
3.1 Computer Numerical Control System Design of the overall hardware
8031CPU selection of the system as a numerical control system of a central processing unit. An external 2764EPROM, as a monitoring program for program memory and storage parts of the processing procedures used. Then choose a random 6264RAM modified for storage of spare parts required procedures, operating parameters. Decoding method used for addressing the expansion of the chip, the 74LS138 decoder achieve this functionality. 8279 as a system to expand the input and output port, respectively, then the keyboard input and output show that the stepper motor 8255 then the annular distributor, respectively, in parallel to control X-axis and Z axis stepper motor. In addition, the machine should also be considered with the single-chip opto-electronic isolation between the power amplifier circuit and so on.
Briefly introduce the pin function as follows:
1) Source pin VSS: Power Ground terminal. VCC: +5 V power supply terminal.
2) input / output (I / O) I have 8031 micro line P0, P1, P2, P3 4 ports, each port 8 I / O line. When the system when the external memory expansion, P0 I used a low 8-bit parallel output data, P2 I used an 8-bit address output high, P3 in addition to the mouth can be used as an 8-bit quasi-bidirectional parallel extraoral, also has a second function, the pin The second function is defined as follows: P3.0 RXD: serial data input. P3.1 TXD: serial data output P3.2 INT0: external interrupt 0 request input signal. P3.3 INT1: external interrupt request signal input terminal 1. P3.4 T0: Timer / Counter 0 external input P3.5 T1: Timer / Counter 1 external input P3.6 WR: external data memory write strobe. P3.7 RD: external data memory read strobe. Functional operation of the second before the second function of the output latch must be owned by one process.
3) signal control line RST / VPD: RST signal to reset input pin lines, after the job at the clock circuit, the pin appears on more than two high machine cycle, the completion of a reset operation. 8031 micro-reduction using two methods: one is reset automatically add electricity, and the other for the reset switch. ALE / PROG: ALE is the Address Latch signal permit. Its role is to put CPU time from P0 I sent the address of the low-8, there is a locking latch in addition to the Medium. External Program Memory Read Strobe. When the time being in force for the low level.
VPP: When EA is high and the PC when the CPU is less than 0FFFH internal procedures to implement the program memory. When the EA when low, CPU is only the implementation of external program memory of the procedure. XTAL1: the RP-oscillator amplifier input, the use of an external oscillator must be grounded; XTAL2: the RP-oscillator amplifier output, the use of an external oscillator, the received signal external shocks;
3.2 outside the three-bus structure
Single-chip in practical applications, usually to extend the external memory, I / O port and so on. MCU pin, in addition to power, reset, clock input, and user I / O extraoral, and the rest of the pins are extended in order to achieve the system set up, which constitutes a three-pin bus forms:
1) The address bus AB
Address bus width of 16. Therefore, the external memory for directly addressing the scope of 64KB.
2) data bus DB
Data bus width of 8, provided by the P0 port.
3) control bus CB
Control bus from the second functional state of the mouth and P3 of the four independent control line RST, EA, ALE and PSEN composition. 8255A programmable parallel I / O port expansion 8255A chip programmable parallel I / O port expansion of the chip can be directly related to MCS Series Single-chip system bus connectivity, it has three 8-bit parallel I / O port, with three kinds of work, through the programming to be able to facilitate the use of an unconditional transfer, send inquiries or interruption of delivery to complete CPU and peripheral devices to exchange information.
8255A-pin structure and function: 8255A Structure
8255A of the internal structure consists of three 8-bit parallel data I / O ports, two job control circuit, a read / write control logic circuit and an 8-bit data bus buffers. Some features of the introduction is as follows:
(1) the three 8-bit parallel I / O ports A, B, C
A I: with an 8-bit data output latch / buffer and an 8-bit data input latch. Programmable 8-bit input, or 8-bit output, or 8-bit bi-directional register.
B I: with an 8-bit data output latch / buffer and an 8-bit input or output registers, but not bi-directional input / output.
C I: with an 8-bit data output latch / buffer and an 8-bit data input buffer, C I can be grouped into two 4 port for input or output port can also be used as A and B gated population mode control signal status at the time.
(2) control circuit
A, B two three-port control circuit is divided into A, B group, A group of control you and C I A high population of four, B control group B and C I I I a low of four. Two groups each control circuit a control command register, for receiving from the CPU to write control character to determine the two sets of port work. Can also be controlled in accordance with the requirements of the C bitwise I-ching "0" or buy "one."
(3) read / write control logic circuit
It receives signals from the CPU's address and some control signals to control the job status of each port.
(4) The data bus buffer
It is a bi-directional tri-state buffers, and systems for the data bus is directly linked to the achievement of information between the CPU and the transmission of 8255A