December 23, 2024

Design and Implementation of Virtual CNC System Components Based on Component Technology

With the development of computer language from procedural language to object-oriented language, the reusability of software has been realized at a certain level - and the concept and application of OLE/COM /DCOM/ActiveX concept have made computer language realize the true meaning. Reuse of code based on binary standards - therefore, use OPC (OLE forprocess fund project: China-Singapore "China-Singapore Joint Research Program", "Ministry of Education" Online Collaborative Research Center", National Defense Research Fund Project (9918-1- 3WW526); Wuhan Science and Technology Commission International Cooperation Research Project Funding (997002065) module) / ActiveX component technology for development, is the basis for the realization of open and interoperable software systems - the software components of the CNC system, that is, through the functional division of the CNC system, establish CNC system software chip library like integrated circuit chip - When building a new CNC system, you only need to extract the corresponding function chips from the software chip library and combine them - if necessary, you can expand the software chip library without having to develop from scratch The entire system - this changes the closed design of the current CNC system, greatly improving the overall system The flexibility of the CNC system to achieve open design and resource reuse, the timely upgrade of the CNC system and timely response to the market, have a good development prospects - 1 virtual CNC system virtual manufacturing technology is in the computer An effective method to realize the manufacturing process - the virtual CNC system is the overall plan of the virtual manufacturing system, which consists of two major subsystems: virtual CNC system and virtual machine library - virtual machine library is mainly composed of machine parts library fixture Library, workpiece library machine tool attachment library and material library - virtual CNC system consists of six functional modules, respectively, customizable control panel components display management component CNC code interpretation component, pre-processing component, interpolation component, soft PLC component - a customizable control panel component - use software to virtualize the hardware panel of the CNC system, generate realistic graphical components such as various virtual buttons, switch virtual graphic display area, and have standard interfaces, which can be customized according to requirements - b. NC code Interpret component - perform grammar check on the NC code generated by the part drawing, and interpret the decoding as a preprocessing group Provide the correct intermediate code - c-preprocessing component - complete pre-interpolation pre-processing tasks, such as inch conversion coordinate conversion tool compensation and system modal value processing -d-interpolation component - responsible for acceleration and deceleration control interpolation, end point Discrimination and other work, including interpolation of linear arcs and spirals, and interpolation of ellipse, parabola, sine and some special lines, calculate the position information of each axis.

Display management components. The tasks of its internal packaging are part program, parameters, tool position machine status, static and dynamic graphics of the tool machining path, and graphic display during online programming.

Soft PLC component. It completes the logic operation processing and sequence control flow of the system.

2 Numerical control (NC) code interpretation component uses COM technology and OPC specification, the user can interactively establish a code corresponding library of numerical control system according to the actual situation of the numerical control system used. The NC code interpretation component implements translation of the NC code for directing the motion and state of the processor.

The main work of the NC code interpretation component is error detection and translation.

Error detection, that is, according to the numerical control system programming regulations and the common sense of CNC machining, the NC code is analyzed by grammar analysis, lexical analysis and semantic analysis to check the lexical error, grammatical error and logical error of the NC code. The working principle diagram of the NC code interpretation component is as shown.

Among them, the main task of lexical analysis is to scan the program character by character from left to right, and identify a minimum grammatic unit with independent meaning from the input NC code string. The main task of parsing is to perform numerical control code analysis based on grammar rules to determine whether the entire input code segment is syntactically composed of a complete and correct instruction code segment. Semantic analysis is the part of the interpreter that implements the operation and execution of various types of NC code instructions. It converts the intermediate code derived from the syntax analysis into corresponding data status signals and control signals according to different requirements. Interpolation components, or software simulation of machine tool motion to complete machining motion trajectory simulation.

Through the collection and summary of various instruction codes of the existing CNC milling machine, combined with the actual situation and requirements of the CNC system, the data that needs to be processed in the NC code interpretation component are: G code function S command (S0-S9999) tool function T Instruction (T0000 - T3232) Auxiliary function M instruction (MOO-M99) and other special instructions (this can be achieved by adding special function interpretation components). In the preparation of the NC code interpretation component, the relevant data structure used is as follows: the buffer structscaled for the backup modal value/coordinate system rotation when the zone program is called" / the buffer structure structure of the mine is used in the component In the process of compilation, a numerical control language compilation system was developed by using C++ object-oriented and class library programming features. COM technology was used, and OPC technical specifications were used to solve problems such as memory occupation and system reorganization, and the system could be packaged. The interpretation control method is used to realize the process control, that is, the system is started after the part code decoding check, and the execution is explained. During the processing, the interpreter can pre-interpret the next program. The method can satisfy the package and the external low. Coupling requirements.

3 component interface design and implementation 3.1 COM interface ID generation COM specified interface and object with a global unique identifier 128 digits) to identify. The GUID is used to identify two types of items: the interface identifier D (interfacidentifier) ​​and the class identifier CLASID (ClassID). Using the GUIDGEN.EXE included with the Visual C++ compiler, you can get a unique GUID (such as 5254AB20A6D9) on a computer with a network interface card installed. If the network interface card is not installed, the user gets a synthetic pseudo-random GUID. 3.2 Creating an object 8) > A core principle of /COM+ is location transparency (location transpanrency), so it cannot judge that the client program is interprocess, local. Still a remote component, this problem is solved by the IclassFactory. , it is an interface implemented by COM/COM+ objects. Used to generate other COM objects. It has two methods: CreateInstance and LockServer. The Lock-Server method prevents object uninstallation errors.

3.4 Part of the program example 4 Conclusion Using the binary compatibility of components, platform independence and network transparency, you can design distributed, different language compatible virtual CNC system software, add software components, update components for virtual CNC system software development. Provided for convenience. This paper puts forward the idea of ​​componentization of virtual CNC machine tool system, and carries out a relatively complete analysis of the system. Based on the introduction of COM component technology, the component interface technology is studied. In the actual development work, the product data management framework for agile manufacturing has been initially studied. Xue Shanliang, Ye Wenhua, Wang Ningsheng (CIMS Engineering Research Center, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China) Jiejie Manufacturing, analyzes PDM functional requirements for agile manufacturing, builds A PDM integration framework for agile manufacturing, and a detailed description of the functional and information models for the agile manufacturing PDM framework.

0 Introduction Date of acceptance: 2001- With the development of information technology such as network technology and database technology, and the application of Client/ServerBrowser/Server architecture and 0-0 technology, PDM technology has developed rapidly in recent years - its function has been Breaking through the limitations of the original single product image management, it almost penetrated into all the information and processes related to the product, and became an indispensable environmental platform for enterprises to realize information integration.

Many international philosophies and development models for the 21st century have been proposed internationally. Agile manufacturing has attracted people's attention because it emphasizes the agility of enterprises. It will become the main mode of manufacturing enterprises in the 21st century. The new philosophical and development model of manufacturing enterprises will make people pay more attention to PDM as the platform of enterprise information integration environment. Research - 1 The manufacturing concept of the PDM quick response market for agile manufacturing, which is achieved by establishing dynamic alliances around new market opportunities - dynamic alliances refer to the rapid development of complex products by the corporate community in order to win an opportunistic market competition. Developed, produced and brought to market, they select the advantages of developing and producing new products from their respective companies, and then integrate into a single business entity - agile manufacturing and dynamic alliances are global, cross-institutional, cross-regional organization. This requires PDM as an enterprise integrated environment platform to break through the limitations of a single enterprise, develop NC code interpretation components from the product core, and link with components developed by other researchers, which also reflects the advantages of component software. -

(Finish)

Automatic Dotted Line Cutting Rewinding Machine

This automatic dotted line cutting and rewinding machine is suitable for non-woven cloth, melt-blown cloth, paper, self-adhesive, Kraft paper, plastic, sponge, film, Cellophane, leather, felt, pearl cotton, PVC and etc.

Dotted Line Rewinder




Dotted Line Rewinding Machine, Auto Dotted Line Making Machine, Point Breaking Cutting and Rewinding Machine, Non woven fabric Dot Line Rewinding Machine, PET Dotted Line Cutting and Rewinding Machine

Suzhou Flying Man Assembly Automation Co., Ltd. , https://www.flyingmans.com