| Driven by the wave of modern industry,the development of CNC technology is gaining momentum,attracting more and more people to invest in research.The control precision of the motion control system is determined by the core algorithm of the controller board.The efficiency of the actual operation is limited by the interface application.The motion control boards on the market often have complicated operation,poor scalability and low efficiency problem.As a kind of LAN technology,Ethernet has been greatly developed,which is enable to occupy a place in the development of industrial Internet of Things.This paper studies and designs a motion controller based on Ethernet communication.It implements efficient control management and flexible interface expansion by a microprocessor.The motion control algorithm is realized by PCL6045 B.PCL6045B is a high performance DSP motion control chip.Due to different needs,this paper designs two solutions to achieve:(1)The microcontroller-based motion controller has the following functions: It can perform Ethernet communication with the host computer,and can read and write the PCL6045 B according to the information in the network packet,and can feed back information to the host computer.(2)The functions of the motion controller based on the embedded system are as follows: On the basis of realizing the Ethernet communication with the host computer,it is necessary to supervise the entire working process of the PCL6045 B,including realtime monitoring of the execution tasks and status,and multiple tasks work together.,share the work of the host computer.According to the requirements,the paper finally designed and implemented the hardware and software design of the two motion controllers.The work done in this paper is as follows:(1)Completed the design and debugging of each part of the hardware circuit.(2)The function of Ethernet communication in the two microprocessors is realized,and the function function design of operating PCL6045 B is completed.(3)The multi-tasking system software framework is implemented in the embedded system,which greatly improves the working efficiency of the motion controller.At last,the paper completes the test of each module and the overall function,and the test results reach the standard.Finally,a motion controller with perfect functions,flexible interface and high efficiency is realized. |