Coping with the built-in micro-computer numerical control engraving program

The current state of CNC engraving control software CNC engraving control system is a typical real-time system, the system must control a variety of tasks in real time. The computer numerical control (CNC) engraving control system with open architecture adopts a common operating system in order to realize the modularity, reusability of the software structure and the user's easy operation. At present, there are many general-purpose operating systems that can be selected, such as DOS, WINDOWS95/98/NT, OS/2, UNIX of XWINDOWS interface, etc., and the main operating systems popular in PCs in China are DOS and WINDOWS95/98. Therefore, the current computer numerical control (CNC) engraving control software can be divided into DOS-based engraving control software and WINDOWS-based engraving control software.

DOS is a single-tasking operating system, which determines the single-task feature of DOS-based engraving control software. When the engraving control software controls the engraving machine to perform engraving, the entire system resources are monopolized, and the user can no longer use the machine to perform engraving graphics editing and typesetting, thereby resulting in inefficiency. Moreover, most of the DOS-based engraving control software does not support mouse operation, which greatly reduces the ease of operation of the software.

WINDOWS95/98 is a 32-bit non-priority preemptive multitasking operating system. This determines that the WINDOWS-based engraving control software can work simultaneously with other applications without affecting the precision and effect of engraving, greatly improving productivity. At the same time, the graphical interface-based engraving control software is the standard software of WINDOWS, which makes it more friendly and easy for users. But real-time control under WINDOWS has always been a problem, because all WINDOWS applications run in the system virtual machine environment. The scheduler controls the operation of each thread in the WINDOWS program. In WINDOWS95/98, there are two methods for controlling scheduling: one is its own internal method. This approach strives to improve a smooth multitasking environment so that each thread can enjoy processor time equally. In this way, the user has no choice but to compile a good thread program to ensure that a thread does not take up too much processor time. The other is to directly call system services that may be provided by VxD. VxD, the Chinese meaning is the virtual device driver (VirtualDeviceDriver), is a virtual hardware priority device driver written in the format of the hardware driver or similar standards. Because operating systems widely use VxD to control multitasking operations, these services allow VxD to query content about the current scheduling environment: priority, time, VM focus, etc., and can adjust them. In WINDOWS, the virtual machine scheduler (VMM) and VxD run on Ring0. The general user program runs on Ring3, while Ring3 has the lowest level and the system may not support some operations. By programming VxD and changing the operating mechanism of WINDOWS Ring0, the high real-time requirements of computer numerical control (CNC) engraving system can be solved.

Application of Object-Oriented Technology in CNC Software Object-Oriented Technology Overview Object-Oriented Technology is an object-centric approach that is completely different from traditional software engineering functional methods. It is not only a programming technique, but more important. It embodies a way of thinking. Object-oriented programming is a programming technique that attempts to mimic real-world model methods. It sees the world as consisting of a set of entities that are related to each other and can communicate with each other. In order to create an object in a program, you must first specify the class.

A class is a program description of a set of objects of the same nature, consisting of data and functions that summarize the common properties of a set of objects. The object is created by the class while the program is running. Encapsulation, inheritance, and polymorphism are the most important features of a class.

Encapsulation combines data and operations on data to form a data type, thus achieving a better abstraction of the data. The internal data of the object is protected by encapsulation. Inheritance, in the object inheritance structure, the underlying object inherits the features (attributes and operations) of the upper object, so the object-oriented method facilitates the evolution and incremental expansion of the software. Polymorphism, when the same function call is accepted for different objects, can lead to completely different behaviors, a phenomenon known as polymorphism. With polymorphism, only general-purpose function calls are required in the program. The implementation details of the function are left to the object that accepts the function call.

CNC's object-oriented programming CNC software interface programming, using C to write interface programs for the CNC is a very painful thing, and making a beautiful interface is even more difficult. This can be done easily with object-oriented technology. In the Visual C environment, the MFC class library provided by it can make a very beautiful interface in a short time. By inheriting from the MFC class, you can further expand its functions and create a different style interface. More importantly, the use of object-oriented technology can achieve the effect of software reuse, so that the openness of CNC software is greatly improved. The so-called software reuse, in the software development, appears to change the environment and function, through some local modifications or software reorganization, to adapt to new requirements, reduce the problem of repeated development in software development, improve software productivity. In the object-oriented software development method, the software system is composed of objects, and the object is a complete abstraction and reflection of the essential entity of the problem. The inheritance of objects, classes, and classes of object-oriented programming is extremely advantageous for generating reusable software design and implementation. The object-oriented programming approach frees software developers from the specific data formats and processes and concentrates on the objects being studied. This provides the basis for software reusability.

Object-oriented CNC engraving software design This system is used together with a control card to control the engraving machine movement through a computer. The engraving machine is a set of open computer numerical control engraving system based on general-purpose PC, namely PCNC. Further, it belongs to the all-software PCNC mode. All the functions of the CNC are processed by the CPU of the general-purpose PC and extended by the PC. The control card in the slot controls the motor. Its working process is roughly like this: the engraving control software reads the standard NC code file (either automatically generated by the software or manually), after the system analyzes the file, the processing graphic described by the NC code file is suitable. The scale is displayed on the computer monitor. For some details, the user can also zoom in through the zoom tool, and the zoom tool allows the user to see the overview of the entire graph. In the case of 3D relief, the user can also view from various angles using tools such as rotation and translation.

Through simulation, the user can clearly see the engraving effect, which meets the requirements, and which do not meet the requirements (undercut, engraved, etc.), so that the CNC code files can be adjusted in time to avoid waste and defective products. When the user is satisfied with the simulation effect, he can enter the engraving control stage. The system converts the NC code into a specific control command and sends it to the control card to control the stepper motor action and complete the corresponding engraving work. The user can also skip the simulation phase and directly enter the control engraving stage to perform engraving. In order to improve productivity and reduce waste and defective products, the engraving control software also provides a selection module for repair selection processing, which is mainly used for the undercut phenomenon caused by tool wear or other accidental factors in the engraving process. The user can select an area on the display graphic by the mouse to select and engrave, avoiding the situation of overall rework or scrapping, greatly improving productivity and being highly practical.

The system adopts the front and back structure, and the front-end performs functions such as interpolation, stepping motor control, real-time monitoring and other real-time requirements. The background tasks include low-time functions such as numerical control code analysis, engraving graphic display, and engraving data analysis. .

Conclusion This system is part of the engraving control software of the CNC engraving system of commercial products. After a lot of actual operation, the effect is good, the operation is stable, and the operation is simple and clear. In this system, object-oriented technology is introduced. The whole system is built on the basis of classes. Therefore, through the inheritance of classes, the program has strong inheritance and extensibility, and the program has good maintainability. In China, the system firstly runs the practical CNC engraving control software on the WINDOWS95/98 operating system, changing the traditional layout of the CNC engraving control software running on the DOS platform, so that the efficiency and ease of operation of the CNC engraving control software are obtained. Greatly improved.

(Finish)

Auto Feed Fabric Laser Cutter machine

Transon auto feeding CO2 laser cutting machine is standard with auto feed worktable and auto feed frame, support engrave cut material in rolls like fabric, leather, paper, etc. The auto frame and worktable both with motor, make sure auto feed easy. We have standard 3 size auto feed laser cutting machine for choice, 1600x1000mm, 1600x2000mm, 1600x3000mm, the machine size can also be customized.

1). Easy To Operate, Simple Maintaining, It Can Cut And Engrave All The Shapes From Photos.
2). It Can Be Used In Wood, Acrylic, Plastic, Leather, Fabric, Marble Engraving, Glass Engraving.
3). Design From LINGDIAO CNC, After Sale Service For The Whole World.
4). Hot Sale Desktop 1390 C02 Glass Tube Cheap Cnc Laser Engraving Machine

CO2 laser cutting and engraving machine adopts drive system with high precision linear guide and slide block,high precision ,wear resistance,small resistance,high speed.arc-gear synchronous belt 3m,stable teanmisssion,strong shock absorption ability and small noise.RED cross accurate position,convinent and quick in finding engraving and cutting position.Equipment with automatic/manual modulation focused laser head,responsive and accurate to ensure sculpture quality.

Transon auto feed laser cutting machine with China top Reci brand laser tubes and CW3000, CW5200 water chillers for choice, can meet the most cut work of roll material.

We do not suggest use this CO2 Laser Cutter Engraver to engrave cut heavy material like wood, MDF, as it may hurt the auto feed worktable make it can't auto feed successfully.

Laser Cutting Machine For Fabric,Laser Cutter Fabric Engraving,Laser Cutting Machine Leather,1610 Laser Cutting Machine

Jinan Transon Cnc Equipment Co., Ltd. , https://www.csjiguang.com