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

        ?

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

        2014-06-09 14:44:40WeiweiLINPeisiZHONGXiaodongLYUXuanGE
        機床與液壓 2014年3期
        關(guān)鍵詞:嵌入式操作系統(tǒng)轉(zhuǎn)塔實時控制

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

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

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

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

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

        In view of the existing problems of CNC system,which is based on PC and widely used in the industry,this paper puts forward a high real time performance and multi task embedded CNC turret punch press system based on embedded technology and a microprocessor.In order to meet the requirements for the real-time control of CNC turret punch press,WinCE7 embedded operation system and the hardware platform based on CORTEXA8 microprocessor and FPGA are selected.The current situation of communication between computer and NC machine tool and its impact for the high efficient processing automation are analyzed,and the wire less communication scheme based on ZigBee of CNC turret punch press is proposed in this paper.The implementation of real-time control of CNC system is introduced and the experimental results show that the ZigBee module could realize normal communication between PC and embedded controller,data interaction and low business costs,and it could im prove production efficiency as well.

        WinCE7,Embedded NC system,ZigBee,Wireless communication,Real-time control

        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 em bedded CNC turret punch press

        The hardware structure of CNC turret punchpress 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 for the 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 Studio2008(2)MSDN Library for Visual Studio 2008(3)Visual Studio 2008 SP1(4)Microsoft Expression Blend(5)Windows Embedded Compact7(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 the EBOOT of original CE6 to burn 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.

        1)DWORD CC2530_Init(DWORD dWContext)

        RETAILMSG(l,(TEXT(“CC2530_Init---- n”)));

        Serlnit();

        CC2530init();

        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.

        2)BooL CC2530_IOControl(DWORD hopen-Context,DWORD dwCode,PBYTE PBufin,DWORD dwLenln,PBYTE PBufout,DWORD dwLenout,PDWORD PdwActualout)

        {switch(dwCode)

        case IO_CTL_CC2530_GDAIMA:

        SendDate(0x l<<l);

        case IO_CTL_CC2530_XITONGCANSHU:

        SendDate(0x l<<2);

        case IO_CTL_CC2530_DAOBUCANSHU:

        SendDate(0xl<<3);

        case IO_CTL_CC2530_RSSI:

        SendDate(0xl<<4);

        case IO_CTL_CC2530_REFNODE_

        REQUEST_CONFIG:

        SendDate(0xl<<23);

        case IO_CTL_CC2530_REFNODE_

        CONFIG:

        SendDate(0xl<<21);

        case IO_CTL_CC2530_BLINDNODE_

        FIND_RESPONSE:

        SendDate(0xl<<19);

        case IO_CTL_CC2530_BLINDNODE_

        REQUEST_CONFIG:

        SendDate(0xl<<17);

        case IO_CTL_CC2530_BLINDNODE_

        CONFIG:

        SendDate(0xl<<15);

        case IO_CTL_CC2530_RSSI_BLAST:

        SendDate(oxl<<13):

        case IO_CTL_CC2530_RSSI_RESPONSE:

        SendDate(0xl<<11):

        This function is used to send commands to the device.DeviceIO Control()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 Compact7[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.

        嵌入式數(shù)控轉(zhuǎn)塔沖床數(shù)控系統(tǒng)無線通信與實時控制的實現(xiàn)*

        吝偉偉?,鐘佩思,呂曉東,葛 旋

        山東科技大學(xué)先進制造技術(shù)研究中心,青島 266590

        針對當前廣泛使用的基于PC的數(shù)控系統(tǒng)存在的不足,提出一種基于嵌入式技術(shù)和微處理器的高實時性、多任務(wù)的嵌入式數(shù)控轉(zhuǎn)塔沖床數(shù)控系統(tǒng)。為滿足數(shù)控轉(zhuǎn)塔沖床對實時控制的要求,嵌入式操作系統(tǒng)選用WinCE7,硬件平臺由CORTEXA8微處理器和FPGA組合而成。分析了計算機與數(shù)控機床之間通信方式的現(xiàn)狀和對高效加工自動化的影響,提出了基于ZigBee的數(shù)控轉(zhuǎn)塔沖床無線通信方案并介紹了數(shù)控系統(tǒng)實時控制的實現(xiàn)。結(jié)果表明:ZigBee模塊通信正常,能實現(xiàn)上位機與嵌入式控制器之間的數(shù)據(jù)收發(fā),降低了企業(yè)成本,提高了生產(chǎn)效率。

        WinCE7;嵌入式數(shù)控系統(tǒng);ZigBee;無線通信;實時控制

        TP274

        10.3969/j.issn.1001-3881.2014.18.018

        2014-04-21

        *Project supported by the Shandong Province Natural Science Fund Project(ZR2011EEM014)

        ?Wei-wei LIN,E-mail:sklinwei@163.com

        猜你喜歡
        嵌入式操作系統(tǒng)轉(zhuǎn)塔實時控制
        雙足步行機器人嵌入式控制系統(tǒng)設(shè)計分析
        光電轉(zhuǎn)塔自動搜索跟蹤監(jiān)視低小慢目標控制方法
        激光與紅外(2021年3期)2021-04-07 12:22:06
        FPSO改裝項目內(nèi)部轉(zhuǎn)塔系統(tǒng)及安裝工藝
        典型實時嵌入式操作系統(tǒng)應(yīng)用分析
        電子測試(2018年23期)2018-12-29 11:11:30
        基于LabVIEW微電網(wǎng)實驗平臺監(jiān)控系統(tǒng)的設(shè)計與實現(xiàn)
        探討ERP系統(tǒng)環(huán)境下企業(yè)會計的實時控制
        轉(zhuǎn)塔刀架快速設(shè)計方法研究
        基于嵌入式操作系統(tǒng)的工業(yè)采集板設(shè)計
        應(yīng)用服務(wù)型人才培養(yǎng)體系下的嵌入式操作系統(tǒng)教學(xué)改革探索
        空間機器人的計算力矩實時控制方法
        人妻少妇不满足中文字幕| chinese国产在线视频| 久久洲Av无码西西人体| 国产亚洲精品一区二区在线观看| 欧美性色欧美a在线播放| 亚洲av无码一区二区三区人妖| 亚洲国产成人91| 蜜臀av中文人妻系列| 日本一区二区国产精品| 乱码丰满人妻一二三区| 国产又色又爽无遮挡免费动态图| 久久国产精品免费一区六九堂| 亚洲一区二区自偷自拍另类| 超碰人人超碰人人| 国产丝袜长腿美臀在线观看| 日本a片大尺度高潮无码| 亚洲 欧美精品suv| 久久久久久久尹人综合网亚洲| av在线一区二区三区不卡| 国产乱人无码伦av在线a| 免费a级毛片出奶水| 国产精品日本天堂| 国产人妻久久精品二区三区老狼| 强开少妇嫩苞又嫩又紧九色| 超薄肉色丝袜一区二区| 青青草免费激情自拍视频 | 亚洲国产精品无码专区| 亚洲尺码电影av久久| 日本嗯啊在线观看| 中文字幕女同人妖熟女| 亚洲成av人片在www| 欧美中文在线观看| 国产一级一厂片内射视频播放| 亚洲啪啪视频一区二区| 男女啪啪免费体验区| 国产品精品久久久久中文| 日本a爱视频二区三区| 国产精品久久久国产盗摄| 日韩乱码视频| 国产精品午夜高潮呻吟久久av| 丰满人妻被两个按摩师|