CNC engraving and milling machine CNC system based on Windows CE is the overall structure of the software
by:Transon2020-05-03
In the YF -
D160160 CNC carving and milling machine of numerical control system software, adopts the Taiwan before and after type form of multithreading structure.
Foreground program is a real-time interrupt service routine for almost all of the real-time function, implementation is directly related to machine tool movement function.
Foreground program by the system the main thread, and timer control, mainly to complete the interface function of management, control, system management, etc. , and is responsible for the response buttons and input data interface, which can realize the function of management.
Background process is a cycle of executable program, take some functions such as input, the real-time performance is not high decoding, data processing, such as interpolation preparation.
Daemon on the auxiliary thread, responsible for the compilation of the nc code processing, send commands to the with PMAC and real-time data acquisition, realized the function of the control layer.
Program loop in the background in the process of operation, the front desk of the real-time interrupt program timing insert unceasingly, the close cooperation, common to complete parts processing tasks.
Microsoft Windows CE is the development of an open, scalable 32-bit embedded operating system.
Windows CE is modular, structured and based on the Win32 application interfaces and has nothing to do with the processor, etc.
Relative to the DOS, Windows CE.
. net is multi-threaded 32-bit operating system running in protected mode, especially suitable for numerical control system of multitasking parallel mechanism, and its memory protection function is of great significance for the stability of the numerical control system.
Relative to the Windows desktop operating system, WindowsCE.
. net is embedded real-time operating system, its unique architecture and running mechanism to quickly response to the external interrupt trigger, and scheduling the related application for processing, so it can satisfy the real-time requirement of CNC system.
Similar numerical control system in the existing, most of the system is based on DOS environment, its comprehensive performance relative to the Windows environment is weak, especially the human-computer interaction interface, multitasking and openness is bad.
The real-time information exchange between master-slave computer communications is the key to realize coordination between up and down a machine.
YF -
D160160 CNC engraving and milling machine of numerical control system in the real-time demand and robot control are similar, if you are using a Windows dedicated Timer control Timer, although very convenient use, can achieve certain timing function, but the minimum timing accuracy is only 55 ms, and the Timer messages in a multitasking operating system priority is low, can't get timely response, cannot satisfy the application of real-time control environment.
So consider using precision higher multimedia timer, it can realize high precision timing accuracy of 1 ms, can satisfy YF -
D160160 CNC carving and milling machine of numerical control system's real-time demand.
Multimedia timer mechanism is not dependent on the news, but by the function TimerSetEvent (
)
To create a separate thread, in a certain number of interrupt arrived, direct call preset callback function for processing, and don't have to wait for the application's message queue is empty.
Therefore set the callback function to complete the cycle scan the I/O card input port, and regularly send messages to the system, make its update interface and interface of the data.
In order to improve the reliability of the system, multimedia timer in the whole control program initialization time open, and delete a timer at exit in the system to release system resources.
Every Windows application is a process, and shall be the responsibility of the thread to execute the code contained in the process's address space.
In fact, each process can have multiple threads, they are in the process's address space & other;
At the same time throughout the &;
Execute the code.
Engraving machine price information in yifan numerical control network.
We are here to help you! If you close the chatbox, you will automatically receive a response from us via email. Please be sure to leave your contact details so that we can better assist