Development and development of modular design for reconfigurable CNC system

CNC technology is undoubtedly the most important technical basis in modern advanced manufacturing technology. In a sense, the level of numerical control technology has become one of the important indicators to measure the manufacturing level of a country. Due to technical monopoly and exclusive market, the CNC systems produced by various manufacturers are mostly closed in the architecture, that is, the hardware modules and software modules that make up the system are dedicated and incompatible, and the interaction modes between the modules of the system. The communication mechanisms are also different, which results in the relative independence of the control systems of different manufacturers. The software and hardware developed by different CNC manufacturers can not replace each other, lack of compatibility, hinder the upgrading of CNC system, resulting in huge waste of manpower, material resources and financial resources, and also reduce the ability of CNC machine tool producers to respond quickly to the market and users. .

In order to solve this problem fundamentally, it is very important to improve the openness of the numerical control system. For this reason, a new numerical control system concept, a modular, reconfigurable and expandable numerical control system has been proposed. The hardware module of i CNC machine tool control system can be reconfigured in recent years. With the improvement of PC performance and quality, the increase of quantity, the decrease of price and the deepening of people's familiarity with PC, the PC-based CNC system has a broader The application prospects; and various applications and communication software on the PC are more conducive to the expansion and integration of the CNC system.

The reconfigurable CNC system proposed in this paper consists of a PC and some control cards installed on the PC bus. The system controls the external devices such as servo drives through their respective control cards. PC is a standard reconfigurable system with inherent hardware CPU, BIOS, memory, soft hard drive, serial/parallel port and interrupt, timing, display, keyboard control devices, etc. through device driver installation and hardware insertion The card method is easily reconfigurable. PC bus such as: PCI / ISA bus has a unified standard, and the control card produced by each manufacturer meets the unified standard of the bus. Users can use the open bus of the PC to turn the CNC's different control card or I/O board. When plugged into a PC, it is only necessary to compile the corresponding hardware device driver to achieve its function without modifying the upper layer application software. That is to say, the user can shield the difference between different hardware devices in the CNC system through the device driver, so that the development of the CNC system control software is independent of the hardware device, so that the original equipment manufacturer (OEM) or the end user will not have to be subject to the CNC manufacturer. Provide hardware constraints.

The hardware configuration of the reconfigurable CNC system is shown in the block diagram. The dotted line box is the configuration of the standard PC. The hardware platform of the system is mainly composed of standard PC and PCI/ISA bus based multi-purpose universal axis servo control module I7o module human-machine interface interaction module track interpolation module compilation decoding module tool compensation pre-processing module card, which reflects Reconstruct the hardware standardization and generalization features of the CNC system.

Reconfigurable CNC system hardware structure 2 CNC machine tool control system software module can be reconstructed 21 common component object model (COM excerpt should be reconfigurable for the software module of CNC machine tool control system, first of all should have a better communication And the interface standard Microsoft proposed the COM component object model river to meet this need.

COM allows applications to share data and program code while running on end-user computers. COM is a specification that must be followed when writing applications that can be used by other applications. The specification details how the compiler outputs the executable file of the application to communicate, how the operating system supports the details of the communication, to allow COM to be language-independent or even platform-independent, so that COM applications written in VB can be easily Work with applications written in ava or C++. COM is also an object model with components as the publishing unit. This model allows software components to interact in a uniform way. COM provides both a specification for interaction between components and an environment for implementing interactions, because the specification of interaction between component objects does not depend on any particular language, so it is a standard for collaborative development of different languages. COM has shown great adaptability, so in the past two years, with the development of the network, COM has been given the opportunity to show. After several years of software development, COM has become the de facto model standard for componentized software.

The division of the software module of the 22 CNC machine control system is a first step in the development of the software module.

Each module in the CNC system software module library is opened in an interface manner, and the user can grasp the start, end and operation of the module through the interface parameters and the interface information. The interior of the different modules is black box package, the external interface is open, and on this basis, the new system is built. Therefore, how to define a reasonable numerical control system software module makes the external interface of the module easy to standardize and standardize. The easy internal black box encapsulation is a key step for us to develop the CNC system software module library.

At present, although the numerical control system from the system design method to the system implementation method, the basic principle of the difference and the composition of the software are similar. On the basis of careful and comprehensive analysis of the existing CNC system and user requirements, at the same time, summarizing the common features of the existing system control structure, and based on appropriate classification and abstraction; I divide the CNC system For the following basic functional modules.

Human-Computer Interface Module This module is mainly used to modify and set system parameters before and during system operation, such as setting the editing parameters of the menu management and file management.

Compilation and decoding module: The module mainly performs grammar and semantic checking and decoding on the part program written by the user according to the grammar rules of the input NC machining program; separately extracts and extracts various processing information given in the numerical control source code. Become various states and data. The result of the processing is stored in the buffer waiting for calls from other modules.

Tool Compensation Pre-Processing Module This module is mainly used for pre-interpolation preparation, that is, static compensation of tool length or radius for the compiled and decoded part machining information to determine the movement path of the tool center after tool compensation.

The trajectory interpolation module is responsible for the acceleration, deceleration control, interpolation, and endpoint determination, and outputs the feed amount after the trajectory calculation to the position controller.

The axis servo control module controls the machine tool actuator to move according to the path and speed specified by the NC command through the fine interpolation in the premise of the information obtained by the I/O and the interpolation operation.

The I/O module is responsible for interoperability, portability, and scalability between the input and output of the controller, the input of the machine tool detection signal and the input of the position and related feedback information, and the output of the control command, etc. Can be used as the basic module of the CNC software module library.

Reconfigurable CNC System Software Module Structure 23 The working process of the CNC system software module describes the workflow of the general CNC system components. It can be seen from the figure that each CNC component must be transformed into basic functions such as CNC component registration, component object creation, interface pointer reference, and component object unloading.

Objects and interfaces, through which the client creates COM objects and interacts with them. The COM library uses the system registry to know the location of the component program and other information about the component. The system registry is a public repository of information across the operating system, and both the client and component programs can access the system registry. The component program saves the information of the implemented COM object and the interface information to the system registry to register the component.

(2) Creation of component objects: The client program uses COM components, and does not directly create COM objects. Instead, it calls the functions of the COM library to create jobs. The COM library does not directly create COM objects, but actually creates COM objects through the class object of the COM object. Is a schematic diagram of creating a COM object through a class factory. The class factory is the production base of the COM object. For each COM class, there is a class factory dedicated to the object creation operation of the COM class.

Numerical control component work flow chart (3) Pointer reference In the DllGetClassObectO function, the interface pointer of the component object can be obtained by calling the QuryInterface member function and the interface pointer is saved in the parameter "(4) Component unloading: When the component program satisfies the following two conditions: The number of objects in the class is 0, and the lock counter of the class factory is 0. The component can be uninstalled.

3 total bundle language Because the PC PCI/ISA bus has a unified standard, and the control cards produced by various manufacturers meet the unified standard of the bus, the reconfigurable numerical control system proposed in this paper can pass the PCI/ISA standard bus of the PC. And the device driver of the control card realizes the portability of the system across the hardware platform. By rationally modularizing the software structure of the CNC system and standardizing the definition of the NC component module library, it has laid a good foundation for the subsequent system development. The COM specification can be used to construct a reconfigurable CNC system. Software reuse issues with good sustainable development performance. According to the above method, the reconfigurable software and hardware modules of the numerical control system can be initially realized. It can solve the problem that the reliability of the numerical control system hardware which is plagued by China for a long time is poor and the development level of the dedicated controller is low. The development and manufacture of CNC systems has become the main focus of research and development of software technology, supplemented by the development and manufacture of a small number of control cards. The main hardware devices use general-purpose PCs. In this way, we can give play to China's intellectual advantage and effectively improve the technical level and market competitiveness of China's CNC system.

(Finish)

Welded Bent Plate Chain

Welded Bent Plate Chain,Alloy Steel Bent Plate Chain,Conveying Welded Bent Plate Chain,Grain Conveying Welded Bent Plate Chain

Changzhou Donghu Chain Transmission Technology Co., Ltd. , https://www.dhuweldingchain.com