Object-Oriented Database System in CNC Turning Simulation (2)

2) Implementation of database management system

Object-oriented database management system is the key to realize object-oriented design. The open database management system can realize the addition, deletion, query and modification of records by the user through the view: At the same time, the database system runs as the basis of simulation in all stages of numerical control simulation. In the CNC turning intelligent simulation system, the view of the database is located in the view class, which is the window for the user to interact with the system, and the message is passed to the database management system through the view class. The database management system is located in the document class of the system and is responsible for the management of data, that is, objects. Therefore, the implementation of the database management system is described below for each stage of the simulation process.

(1) In the simulation process

In the process of simulation, especially in the simulation initialization, the downward cruise algorithm is used. The description of the algorithm is as follows:

First, generate a simulation object in the document class, and get the corresponding information from the object-oriented database, including the environment object, the lathe emergency, and the turning system object. Then according to the information in the database of the lathe object, the corresponding information of the tool, the tool holder, the base, the guide rail and the like can be obtained, thereby forming a complete simulation object, and after the initialization is completed, it is displayed in the view class.

b. Wait for the user to respond, forming different dynamic models according to different operations.

At some point in the simulation, it is only necessary to traverse the object with the current record identifier in the database, and you can get the data of the current physical simulation.

(2) After the simulation is completed

After the simulation is completed, the user may need to modify the properties of the object or even the type of the object according to the result of the simulation, which requires updating the content in the database, and assuming that the user performs object update in the view, the database update algorithm Can be described as:

a. Determine the object to be updated according to user requirements;

b. Determine if the entire pair needs to be updated (turn iii), or if the object's attributes need to be updated (turn vi):

c. If the entire object needs to be updated, get the identity and ID of the object;

d. Initialize the properties of the object, and establish the properties of each node in the lower level according to the principle of traversing down:

e. If no other objects need to be updated, then End. Otherwise (turn ii):

f. Update the object properties according to the ID of the object and store it in the database. Change the current record ID: go to v.

3 Conclusion

In this paper, aiming at the needs of numerical control simulation in CNC turning process, an open-ended numerical control simulation database is established by using object-oriented database technology, and the management of the database and the analysis of simulation objects are studied in detail. The practical application results show that the object-oriented database technology can greatly expand the system functions. Thereby the system's openness and scalability are greatly improved.

Previous page

Hydraulic Chuck CNC Machine

Hydraudic Chuck Cnc Machine,Hydraulic Cnc Machine,Computer Digital Cnc Machine,Automatic Cnc Machine

Shaoxing Sunfong Intelligent Equipment Inc. , https://www.zjsxsunfong.com