亚洲免费av电影一区二区三区,日韩爱爱视频,51精品视频一区二区三区,91视频爱爱,日韩欧美在线播放视频,中文字幕少妇AV,亚洲电影中文字幕,久久久久亚洲av成人网址,久久综合视频网站,国产在线不卡免费播放

        ?

        Implementation of wireless communication and real time control for CNC system of embedded CNC turret punch press*

        2014-09-17 12:10:50WeiweiLINPeisiZHONGXiaodongLYUXuanGE
        機(jī)床與液壓 2014年18期

        Wei-wei LIN,Pei-si ZHONG,Xiao-dong LYU,Xuan GE

        Advanced Manufacturing Technology Center, Shandong University of Science and Technology, Qingdao 266590,China

        1.Introduction

        The numerical control technology is the core of advanced manufacturing technology,which is conducive to the development of high-tech industries and emerging cutting-edge industries[1].CNC system,the important equipment in manufacturing system,is the core of numerical control technology.Since the embedded numerical control system based on microprocessor is the perfect combination of embedded technology and numerical control technology,it has the following advantages:it could be customized,small volume,low power consumption,low cost,short development cycle,both hardware and software could be cut,good operation stability,and high reliability.Therefore,the scheme of CNC system embedded of CNC turret punch press,which is based on WinCE7,is proposed.

        Since the open CNC system with high speed,high precision,efficient,intelligent and network has become the main trend for the development of contemporary numerical control system[2],the high real-time processing of the numerical control system for all kinds of parameters and file information are particularly important for the communication efficiency of NC system.The design uses the emerging industrial grade wireless communication scheme.

        2.CNC system of embedded CNC turret punch press

        2.1.CNC system architecture of embedded CNC turret punch press

        The hardware structure of CNC turret punch press system is shown in Figure 1.

        Figure 1.Hardware structure of the system

        The whole system has five main components:PC subsystem,ZigBee wireless subsystem,ARM subsystem,D/A subsystem,and FPGA subsystem.PC subsystem is mainly to complete the coarse interpolation calculation.ZigBee wireless subsystem is responsible for the data exchange between the host computer and the machine tool controller.ARM microprocessor is responsible for receiving the PC rough interpolation processing data stream by the ZigBee wireless module and transmit data stream to the FPGA through the SPI bus.The D/A subsystem can meet the switch from digital signal to analog signal.The main function of FPGA is to complete the fine interpolation calculation produce the pulse signal to directly drive the movement of stepper motor[3].Stepper motors and stepper motor drivers constitute a stepper motor drive system.

        2.2.Selection and construction of the system software platform

        Windows Embedded Compact7(WinCE7)not only supports X86 and MIPS,but also supports the new ARMv7 framework and multi-core processors.Platform Builder 2008 seamlessly integrated in Visual Studio 2008,can provide a more efficient and smooth development experience forthe developer[4].Therefore,the new generation of operating system(Windows Embedded Compact 7)is chosed as the development platform of software system.

        Windows Embedded Compact7 development environment sets up through Microsoft official online installation package.The operating system provides a wealth of tools and techniques which could help developers build rich and vivid equipment user interface and improve the application of high efficiency.However,these lead to installation requires a larger disk space.If all the installation components are selected in the process,the size of cache for installation will reach up to nearly 60 GB.Fortunately,a lot of component functions for different development are not needed,In order to save the disk space of PC and ensure the operation rate,it should make a concrete analysis for specific problems and select the useful components for the development.For example,since the development language is the VC++,the VC++could be only installed when one starts to install VS2008 rather than C#and JAVA.Moreover,the corresponding processor should be selected to set up Platform Builder based on the design of hardware platform,such as the hardware platform for this design is Cortex-A8 microprocessor platform based on ARMv7 architecture specification compliance,and once it is installed,the"ARMv7 Architecture"becomes the only option.Therefore,by doing this,it could save time and avoid the waste of a large amount of disk space during installation.According to the corresponding hardware platform selects and customizes development component. After installation, it takes up about 35G of disk space.The steps for the Windows Embedded Compact7 development environment are as follows:(1)Visual Studio 2008(2)MSDN Library for Visual Studio 2008(3)Visual Studio 2008 SP1(4)Microsoft Expression Blend(5)Windows Embedded Compact 7(6)Microsoft Virtual PC

        Once the above steps are completed,the embedded NC system development environment has been built.The next step is to transplant the customized operating system to the development board.By using USB line to download mirror finishing transplantation.Transplantation mainly needs three steps:① U-sing theEBOOT oforiginalCE6 toburn the STEPLDR and EBOOT for CE7.② Run CE7 EBOOT and enter the‘F’command.③ Using EBOOT of CE7 to download CE7 NK by USB line.After transplantation,the start interface of the development board is shown in Figure 2.

        Figure 2.Development board boot interface

        3.Realization of wireless communication for CNC turret punch press

        ZigBee wireless network technology,low power consumption,easy configuration,get more and more widely used in the industry,is used in this design.In order to realize the wireless communication of NC system,ZigBee driven development becomes particularly important.

        The machine equipment driver of embedded operating system is suitable for equipments integrated into the WinCE platform,such as LED and power supply.WinCE supports native device driver by customizing the interface,developers do not need to write device drivers.Stream interface drivers are the most common type of drivers implemented in Windows Embedded Compact 7[5].Stream interface driver program is designed to connect the WinCE platform’s peripheral equipment[6].Therefore,the ZigBee driver uses the stream interface driver.The main function of the drive is to send and receive data,network construction,adding network,acquiring RSSI and etc.The following will introduce several main stream interface functions for ZigBee driver.

        The function of this function is to initialize the module,enable the serial register and set the main parameters.Serlnit()function is to complete the physical address’s application,the virtual address to physical address mapping and setting baud rate.CC2530init()is to set the serial baud rate,stop bit and enabling register by calling the system serial transmission function.

        This function is used to send commands to the device.DeviceIOControl()function can realize operating system to call this function.Parameter dw-Code is used to inform the driver to perform an action.In driver design,the definition of several simple commands such as G code,embedded NC system parameters,tool compensation parameters,RSSI value.The values are 1,2,3 and 4.When the CC2530 receives the application related to several orders,wireless modules begin to collect the related data in the network,and then sent them to the wireless module which is connected to the machine.

        The sending and receiving data of wireless module is shown in Figure 3.

        Figure 3.Data sending and receiving process

        4.Implementation of real-time control of embedded CNC turret punch press

        Although windows CE is a real-time operation system,it has the characteristics of multi task operation system.According to the characteristics of the operation system,the CNC system such as interpolation,position control and fault diagnosis by triggering interrupt are the real-time tasks.The graphic display,edit and management of machining program,PLC scanning,the system input/output,interpolation preprocessing(decoding,processing speed pretreatment,cutter compensation)and other weak real-time tasks are arranged running on the common thread of the operation system.Hard real-time tasks use priority preemptive scheduling.

        The priority setting of main task of NC system is shown in the Table 1.

        The main control thread continues to run until the CNC system software is exited and the priority should be the minimum.Edit thread can compile machining program on-line,its priority is higher than the main control thread setting to level 230.Time slice of thread is 5 ms.The thread of parameter setting can set and modify the parameters of the system.Its priority is at the same level with edit thread.Communication and networking thread also must run at the same time.It keeps the CNC system connecting with the industrial control network,the priority should be higher than the main control thread setting to 220.Time slice of thread is 3 ms.Scanning panel thread completes scan of some switch signal on panel.The priority of the thread is at the same level with communication and networking thread.Interpretation instruction and the thread of execution will be responsible for the interpretation and implementation of the NC code and start the interpolation control.Its priority is set to level 170.Time slice thread is 1ms.Online monitoring and diagnosis thread take responsibility for security in CNC machining,a higher priority than the other thread priority,which can be set to 160.Time slice is 1ms.The thread must have been running.This thread can realize real-time automatic diagnosis for servo drive control unit,external device and system device.High priority tasks will be priority scheduling,the same priority thread will be run according to the time slice rotation schedule.

        Table 1.Priority setting of main task of NC system

        5.Test and experiment of system

        The experimental machine is Nanjing Huaxun Machinery Manufacturing Co.,Ltd.HPI-3047 CNC turret punch with production workshop environment.Packet Sniffer protocol analysis software,can analysis and decode information packets of each layer protocols such as PHY and MAC,display the error packet and access error.As shown in Figure 4,the Packet Sniffer software capture wireless communication data packets is adopted in this NC system.Figure 5 shows the ACK frame after received data.

        Figure 4.Send packets

        Figure 5.Accept the data ACK frame

        The experimental results show that the design of ZigBee wireless communication module of Embedded CNC turret punch press could achieve data interaction between the host computer and the machine tool embedded controller.It could completely replace the traditional cable communication to reduce the cost and improve the efficiency of machine tool.

        6.Conclusion

        In this paper,the WinCE7 real-time operating system and high performance microprocessor(CORTEXA8)are adopted to build the platform of NC system with high real-time and the implementation of real-time control systems is analyzed.The ZigBee wireless communication technology could be applied to the communication system of CNC machine tools to replace the traditional cable communication,save working space and the communication system maintenance and repair costs.With the development of internet and wireless communication technology,the requirements of high performance CNC system in CNC machining and the embedded NC system will get better application and development.The wireless communication machine,efficient manufacturing and Networked manufacturing will also get faster development.This trend of development will reduce the cost of enterprises and improve the economic efficiency of enterprises.

        [1] Zou Yu-xie.Research on the key technology of Embedded CNC system based on ARM processor[D].Shanghai:Shanghai Jiao Tong University,2007.

        [2] Ji Guang-ming.Design and research of high performance CNC system based on OMAP3530[D].Nanjing:Nanjing University of Aeronautics&amp,2012.

        [3] Lai Xiao-feng,Liu Jing-meng,Gu Tian-yu,et al.The motion control system based on PC and FPGA[J].The application of electronic technology,2011(4):130-132,141.

        [4] Shao Ming,Li Guang-yang,Yang Hui-ling.Design of Embedded CNC system function module based on FPGA[J].Machine tool &hydraulics,2010,16:68-71.

        [5] Samuel Phung,David Jones.Professional Windows?Embedded Compact 7[M].John Wiley & Sons,Inc,2011.

        [6] Wilson Y J.Windows CE Device Driver Development.Dr.Dobb’s[J].Journal of Software Tools for Professional Programmer,1998.

        国产亚洲一区二区毛片| 岛国av无码免费无禁网站下载| 国产精品玖玖玖在线资源| 国产亚洲激情av一区二区| 久久精品日本不卡91| 亚洲精品无码高潮喷水a片软| 午夜精品一区二区三区在线观看| 爆乳日韩尤物无码一区| 网红尤物泛滥白浆正在播放| 中国孕妇变态孕交xxxx| 国产成人无码区免费内射一片色欲| 无码av免费永久免费永久专区| 亚洲码无人客一区二区三区| 久久精品国产亚洲超碰av| 久久夜色精品国产欧美乱| 国产福利片无码区在线观看| 国产精品久久熟女吞精| 无码熟妇人妻av在线网站| 欧美操逼视频| 国产av一区二区三区区别| av在线一区二区三区不卡| 丁香婷婷激情综合俺也去| 亚洲色偷拍区另类无码专区| 国产成人一区二区三区影院免费| 精品综合久久88少妇激情| 黄桃av无码免费一区二区三区| 亚洲熟妇色xxxxx欧美老妇y| 天堂av在线免费播放| 男女18视频免费网站| 无码国产精品一区二区免费模式 | 日韩亚洲中文图片小说| 国产精品又爽又粗又猛又黄 | 看av免费毛片手机播放| 9久久精品视香蕉蕉| 亚洲av网一区二区三区成人| 亚洲人成精品久久久久| 呻吟国产av久久一区二区| 农村国产毛片一区二区三区女| 国产成人久久精品一区二区三区| 国产精品嫩草影院av| 国产精品国产午夜免费福利看|