999精品在线视频,手机成人午夜在线视频,久久不卡国产精品无码,中日无码在线观看,成人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期
關鍵詞:嵌入式

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.

嵌入式數控轉塔沖床數控系統無線通信與實時控制的實現*

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

山東科技大學先進制造技術研究中心,青島 266590

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

WinCE7;嵌入式數控系統;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

猜你喜歡
嵌入式
Focal&Naim同框發布1000系列嵌入式揚聲器及全新Uniti Atmos流媒體一體機
TS系列紅外傳感器在嵌入式控制系統中的應用
電子制作(2019年7期)2019-04-25 13:17:14
基于嵌入式Linux內核的自恢復設計
嵌入式系統通信技術的應用
電子制作(2018年18期)2018-11-14 01:48:16
嵌入式PLC的設計與研究
電子制作(2018年16期)2018-09-26 03:27:18
搭建基于Qt的嵌入式開發平臺
基于嵌入式系統Windows CE的應用程序開發
嵌入式單片機在電機控制系統中的應用探討
電子制作(2017年8期)2017-06-05 09:36:15
嵌入式軟PLC在電鍍生產流程控制系統中的應用
電鍍與環保(2016年3期)2017-01-20 08:15:32
Altera加入嵌入式視覺聯盟
主站蜘蛛池模板: 尤物亚洲最大AV无码网站| 亚洲天堂网站在线| 欧美成人精品在线| 国产噜噜噜视频在线观看 | 国产在线视频二区| 久久亚洲国产视频| 思思热精品在线8| 精品国产香蕉伊思人在线| 无码粉嫩虎白一线天在线观看| 特级做a爰片毛片免费69| 666精品国产精品亚洲| 日本三区视频| 亚洲国产中文在线二区三区免| 最新日本中文字幕| 亚洲精品无码AⅤ片青青在线观看| 亚洲动漫h| 伊人久久大香线蕉aⅴ色| 国产精品永久不卡免费视频| 香蕉在线视频网站| 在线观看免费AV网| 午夜精品福利影院| 亚洲人成电影在线播放| 天堂成人在线视频| 怡春院欧美一区二区三区免费| 欧美日韩国产精品综合| 国产又粗又猛又爽视频| 三上悠亚精品二区在线观看| 无码电影在线观看| 国产91线观看| 天堂岛国av无码免费无禁网站| 国产三级视频网站| 无码电影在线观看| 欧美日韩免费观看| 国产一级α片| 精品1区2区3区| 综1合AV在线播放| 日韩经典精品无码一区二区| 欧美日韩午夜| 九色91在线视频| 嫩草影院在线观看精品视频| 国产99精品久久| 免费99精品国产自在现线| 日韩欧美色综合| 无码福利视频| 国产精品久久久精品三级| a级毛片免费网站| 精品一区二区无码av| 国产精品亚欧美一区二区| 好久久免费视频高清| 久久久久久久97| 9久久伊人精品综合| 波多野结衣久久高清免费| 性做久久久久久久免费看| 福利小视频在线播放| 91精品啪在线观看国产60岁 | 精久久久久无码区中文字幕| 国产精品第页| 成人在线天堂| 国产精品所毛片视频| 精品无码一区二区三区在线视频| 国产杨幂丝袜av在线播放| 亚洲国产中文在线二区三区免| 亚洲欧美日韩另类在线一| 成人噜噜噜视频在线观看| 国产欧美在线| 精品久久高清| 国产性爱网站| 999精品色在线观看| 国产在线观看一区精品| 一本大道香蕉久中文在线播放| 国产在线日本| 蝌蚪国产精品视频第一页| 91小视频在线| 国产最新无码专区在线| 青青操国产视频| 熟女日韩精品2区| 在线国产91| 波多野结衣无码中文字幕在线观看一区二区 | 114级毛片免费观看| 青草91视频免费观看| 91无码视频在线观看| 欧美精品亚洲精品日韩专区|