1 Introduction
PLC is widely used in the control of mechanical manufacturing equipment, but in the CNC transformation of ordinary lathes, using PLC as the core component of the CNC system is still a new topic. With the continuous improvement of PLC technology and functions, this will be a development trend. This article discusses this.
2. Design of control principle of PLC numerical control system for lathe
2.1 Lathe operation requirements
Lathes are generally used to process rotating surfaces, threads, etc. The movements required are generally fast forward, working forward, and fast reverse in the X and Z directions. During the processing, they can be switched between automatic, manual, external circle turning, and thread turning; and they can be operated in a single step.
2.2 Problems that need to be solved by PLC numerical control system
The operation process of a lathe is relatively complex, and PLC is generally only suitable for sequential control of actions. To use PLC to control lathe actions, three problems must be solved:
Figure 1 Schematic diagram of CNC system
1) How to generate the signal to drive the servo mechanism and coordinate the X and Z movements;
2) How to change the feed system speed;
3) How to achieve internal transmission and change of thread lead during thread turning.
These problems can be solved by combining PLC and its control module with corresponding actuators.
2.3 Control Principle of CNC System
The CNC transformation of ordinary lathes is to change the tool holder, X and Z feed to CNC control. According to the transformation characteristics, the servo element adopts a stepper motor, and the implementation of an open-loop control system can meet the requirements. The Z-axis pulse equivalent is 0.01mm, and the X-axis pulse equivalent is 0.005mm. A transistor output type PLC is selected. The pulse signal of the driving stepper motor is generated by programming, and the speed is changed by generating pulses of different frequencies through the program. The X and Z-axis movements can be input manually or automatically controlled by the program. The pulse signal of the thread turning is generated by the spindle pulse generator, connected to the PLC input terminal through the AND gate circuit, and the pulse of the required lead is obtained by the PLC program frequency conversion. The tool holder rotation, the turning tool advance and retreat can be controlled by manual or automatic program. Figure 1 is the schematic diagram of the CNC system.
3. Determine the number of PLC input and output (I/O) points
The designed lathe operations are: total stop at the starting point, fast forward in Z and X directions, work forward and fast backward; forward and reverse rotation of the tool rest; manual, automatic, single step and thread turning conversion. Therefore, 14 input points are required. According to Figure 1, 9 output points are required. The I/O connection diagram is shown in Figure 2 (taking Mitsubishi F1S-30MT as an example).
Figure 2 I/O connection diagram
4. Driver program (ladder diagram) design
4.1 Overall program structure design
The selection of manual, automatic, single-step and threading programs is realized by jump instructions. Figure 3 is the overall program structure diagram. If X12 is closed (X13, X14, X15 are disconnected), its normally closed state is disconnected and the manual program is executed; if X12 is disconnected and X13 is fully closed, the program skips the manual program, the pointer goes to P0, and the automatic program is executed.
4.2 Manual program ladder diagram design
Manual program and automatic program need to be designed according to the specific parts. Here we only take the Z-direction fast forward, working forward and fast reverse actions as an example to illustrate. Its ladder diagram is shown in Figure 4.
Figure 4 Z-axis manual program ladder diagram
In the manual program execution state, press X0, Y1 is turned on, and preparations for starting are made. Press X2, and the auxiliary relay M0 is turned on. Through the combination of T63 timing and Y2 contacts, a pulse signal with a frequency of 103/2i is generated (i is the timing time, set as needed, in ms), driving the Z direction to fast forward. When X3 is pressed (M0 is disconnected), M1 is turned on, and M1 is combined with the timer T32 to make Y2 generate a pulse with a frequency of 103/2j (j>i), which is output by Y2 to achieve working forward. When X4 is pressed, M0 and Y3 are turned on at the same time, and the motor quickly reverses to achieve fast reversal. Due to space limitations, other program ladder diagrams are omitted.
5 Conclusion
The application of CNC lathes in China's machinery manufacturing industry is developing rapidly, but high-precision CNC machine tools are expensive, and in actual production, there are a large number of parts with less complex shapes and general precision requirements, which require CNC lathes with general precision to process.
At the same time, there are a large number of ordinary lathes available in China. CNC transformation of these lathes is an effective way to improve production efficiency and benefits with less investment. In the past, the CNC transformation of lathes used Z80 and 8031 chips as the core components of the CNC system, which is more expensive and the system is more complicated. Using PLC as the CNC system of lathes has the advantages of low cost, simple system, and easy adjustment, and will surely be widely used.
Previous article:Large Arc Furnace Control System Based on S7-300 PLC
Next article:Brief Analysis of PLC and DCS System Interference Problems and Solutions
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- EEWORLD University Hall----Intel Packaging Co-EMIB
- How to use bidirectional DC/DC converters in elevator emergency rescue devices to improve efficiency and reduce costs
- Determination of Current Limiting Resistance of Zener Diode
- STM32F765@216MHz flash STemWin Demo [code] [video]
- 50 ways to use TI CC6678 digital signal processor (DSP)
- EEWORLD University Hall----Live Replay: Introduction to ST MEMS Sensor Development Kit, Understanding Sensors with Embedded "Finite State Machine and Machine Learning Core"
- How does Radio Frequency Identification (RFID) work?
- Mobile station update development board, welcome to borrow~~
- [NUCLEO-L452RE Review] + Add a FREERTOS timer
- Putty released version 0.71