| Servo system is now widely used in various industry areas, and it is a significant sign of industrialization process. The servo drivers which are the important part of servo system are one kind of optoelectronics multidisciplinary products. It integrates many technologies such as Power Electronics, Computer and Network, Control Theory, Artificial Intelligence, Sensors and etc. Servo system used in robot control has been gradually applied in many areas for its stable, fast, and accurate characteristics; they have gradually become a new hot spot for contemporary technology research and development. According to the requirement analysis of servo system functon, this paper made the research and designed an AC servo control software system based on the Windows presentation foundation (WPF).In this paper, the design of the system was carried out in a modular way, which greatly reduces the coupling within the system. In this way, for the hardware and the function of the update, we can accurately and quickly locate the specific function to maintain and update. When the servo drive is at run time, different parameters of abnormalities may lead to a system error. So add a mid communicator between the main interface and servo for protocol conversion and to monitor the parameter instruction transmission state visually. When errors occur, we can avoid the analysis of various parameters and improve the efficiency.First of all, after investigation and research on WPF technology and servo system controls’ background both at home and abroad, the priorities of the research direction was determined. This paper combined scientific theory to study the internal structure and operations of the servo system. Then learned and made a thorough inquiry about the programming language and related modes of WPF technology.Secondly, the paper analyzed the requirements of the servo system software and established its overall software architecture. The division of modules depended on the detailed performance. So the design of the system was carried out in a modular way. On the basis of this thought, the paper proposed an information communicating method of dual threads, which facilitates the extension of future functions and protocols. Socket mechanism is adopted for communication between processes and serial port for communication between software interfaces and servos.Besides, according to the system function design, the Visual Studio 2012 software development environment is selected to do the programming and implementation of the whole AC servo control software system. Based on Microsoft Windows.Net framework, system libraries are developed to encapsulate the various modules. C# and XAML are used to realize the separation between the logic and interfaces:The modules were defined as custom controls for the main interfaces. Multithreaded call modes were used for each control call, event and delegate.At last, hardware system used in the design was built, including the PC, switching mode power supply and servo drives. Experiments were done to do unit testing and the whole software control system testing, like connection configuration, controlling the operation of the motor, fault alarm and system tuning test. The tests had proved that the design of the software control system could run normally. |