Professional Documents
Culture Documents
Design and Implementation of CNC Machine Remote Monitoring and Controlling System Based On Embedded Internet
Design and Implementation of CNC Machine Remote Monitoring and Controlling System Based On Embedded Internet
Design and Implementation of CNC Machine Remote Monitoring and Controlling System Based On Embedded Internet
Abstract—The network control of CNC machine is the mu ltiform models, great difference and difficult networking
inexorable development trend of modern manufacturing in NC system.
industry, and the combination of embedded technology with Based on embedded ARM Cortex-M 0 microprocessor
network has become a research hot. This paper puts forward a LPC1114 and Ethernet controller ENC28J60, an embedded
novel design idea of remote monitoring and controlling system Ethernet communication module is constructed to facilitate
of CNC machine based on embedded Internet, presents its the communication between the upper industrial control PC,
architecture principle design and software-hardware the field monitoring host and the various CNC machine
implementation procedure of the whole system. On the basis of Tools. After development an embedded software runtime
embedded ARM Cortex-M0 microprocessor LPC1114,
environment and NC application software modules of the
Ethernet controller ENC28J60, ported µC/OS -II and LwIP, an
embedded Ethernet communication module is constructed to remote monitoring and controlling system of NC machine
facilitate the communication between the upper industrial tool (NC-RM CS), the data and status from field NC
control PC, the field monitoring host and the various CNC machines can be accessed and monitored by Ethernet.
machine Tools. After the hardware architecture design and Furthermore, the system can perform remote monitoring and
software programming are completed, the system is tested and controlling, load and download NC program, convey
the results indicate that NC-RMCS functions have been productive task and manage machining task on the Internet.
realized. Also, the network control technology is practical and The NC-RMCS is general and costs lower. It can be
has higher application value. applied on many traditional NC systems to realize remote
monitor and management. The experimental results indicate
Keywords-CNC machine network;remote monitoring and that the network control technology is practical and has
controlling system;Embeded ethernet communication higher application value.
modules;ARM Cortex-M;RTOS
II. A RCHITECT URE PRINCIPLE OF REMOTE MONITORING
I. INT RODUCTION AND CONT ROLLING OF NC MACHINE TOOLS
With the rapid development of the information
technology and the CNC technology, the network 5HPRWH0RQLWRULQJ+RVW 5HPRWH&RQWUROOLQJ+RVW :HE%URZVHU
management of the NC industry has become a necessity [1].
Internet
Some famous NC machine and system manufacturers in
overseas, such as Mazak and Oku ma in Japan, Siemens in 'DWDEDVH /RFDO
$SSOLFDWLRQ6HUYHU
German, etc. have realized the network monitor, diagnose 6HUYHU 6HUYHU
Intranet
and management with integrated network communication in
NC system. That reflected the tendency of NC machine tool ,QWHOOLJHQW'HYLFH/HYHO
to the network direction. At the present, most of NC Embedded Ethernet NC Unit No.1 Embedded Ethernet NC Unit No.n
management of NC machines.
In the paper, a novel architecture of general network
control applied to traditional NC system is proposed against Figure 1. The architecture principle diagram of the NC-RMCS based on
the physical circu mstances in our country of various brands, embedded Internet
LCD
KEY contains an embedded real-time operating system (RTOS)
µC/ OS-II, an embedded TCP/IP stack LwIP, an embedded
FLASH
file system and a number of drivers such as those for
Ethernet, keyboard, LCD display and UART interface. The
MAX232 RS232
NC application software components are composed of a
number of tasks and functional modules, such as the NC
Figure 2. Embeded Ethernet Communication Module machine status monitoring module and operation control
507
module, which are either scheduled to execute by OS or C. Aplication
trigged by interrupts. The main program flow chart design is given in the
Figure 4. In view of the system functional modules: serial
$SSOLFDWLRQ&RPSRQHQWV
0XOWLWDVN6FKHGXOLQJ3URFHGXUH
sending and receiving subtasks module, Ethernet sending
and receiving subtasks module, the system main design
1&0DFKLQH
8SSHUKRVW
6WDWXV
2SHUDWLRQ 1&:HE process has been divided into nine subtasks. We could set
$50FRPP &RQWURO 6HUYLFH
0RQLWRULQJ every task priority, make the priority of serial sending
subtask lowest, and make the priority of Ethernet receiving
subtask highest. With embedded Ethernet communication
module, we could realize data conversion between the
/Z,31HWZRUN3URWRFRO6WDFN )LOH6\VWHP
different data on different bus and the Ethernet to implement
5XQQLQJ(QYLURQPHQW
services of µC/OS-II makes it easier to lin k those sub- Figure 4. the main program flow chart
modules.
B. LwIP(Lightweight Internet Protocol) When the remote monitoring and controlling hosts send a
request to the local system via Internet, the corresponding
Due to the limitation of hardware resource in the monitoring procedure begins to work and the status data
embedded system and the low-efficiency of general purpose fro m CNC machine tools are sent back the remote host after
TCP/IP protocol stacks and protocol models, LwIP is they have been processed.
required when accessing to Internet. When the embedded Ethernet communication module
LwIP is a small independent imp lementation of the receives alarm information fro m CNC mach ine tools, the
TCP/IP suite, which focuses on reducing memory usage and module sends the appropriate control commands to CNC
code size and makes it suitable for the embedded systems. machine to ensure machine running normally.
LwIP provides user an API that does not require any data After hardware p latform design and software
copying [5]. In addition, LwIP also provides a BSD socket programming are completed, the ultimate generated code
API. Real-t ime tasks can use any of those APIs to send and which has been compiled is downloaded the target system -
receive packets through the network. the embedded Ethernet communication module. The code
includes hardware system startup code, µC/OS -II kernel,
508
LwIP protocol stack, SPI port drivers and part of the NC REFERENCES
application. [1] Yi-Hong Long, Zu-De Zhou, Quan Liu, Ben-Yuan Chen, Heng-Lin
Zhou, “Embedded-based modular NC systems,” Adv. Manuf Technol,
V. CONCLUSIONS vol. 40, Feb. 2009, pp. 7–8, doi: 10.1007/s00170-008-1384-x.
In the paper, the architecture of NC-RM CS based on [2] Xinjuan Jin, Quan Liu and Yihong Long, “ Research and
embedded Internet is proposed and the embedded Ethernet Development of Embedded Numerical Control Service System,” Proc.
IEEE ICIT. Industrial T echnology (SCIS 07), IEEE Press, April 2008,
communication module is developed to complete the pp. 1-5, doi:10.1109/ICIT.2008.4608597.
communication between the upper industrial control PC, the [3] Dejing Zhang, Jianping Xing, Gang Chen, Kai Qin, “ Collaborative
field monitoring host and the various CNC Machine Tools. Design of Heterogeneous Data Integration Communication Gateway
the system can perform NC machine tool remote monitoring Based on the Embedded Platform,” Embedded Software and Systems
and controlling. Symposia, 2008. ICESS Symposia '0 8. International Conference ,
Future work will concentrate on Qos features IEEE Press, July 2008, pp. 248-252, doi:10.1109/ICESS.
Symposia.2008.29.
improvement of the NC-RM CS. It will also include porting
[4] Wang Mei, Zhao Ruimei, Duan Huiting, “Design and Realization of
µClinu x to the embedded Ethernet communication module. Embedded Ethernet Communication System Based on ARM,”
Second International Symposium on Information Sciencd and
A CKNOWLEDGMENT Engineering. Dec 2009, pp. 287-289, doi:10.1109/ISISE.2009.98.
This work is supported by IC Special Foundation of [5] Wei Chen, Shu-Bo Qiu, Ying-Chun Zhang, “The Porting and
Shanghai Municipal Co mmission of Science and Technology Implementation of Light-Weight T CP/IP for Embedded Web Server,”
Wireless Communications, Networking and Mobile Computing, 2008.
(Grant No. 09706201300), Shanghai Municipal Co mmission WiCOM '08. 4th International Conference, IEEE Press, Oct. 2008, pp.
of Economic and Information (Grant No.090344), Shanghai 1-4, doi:10.1109/WiCom.2008.1005.
High-tech Industrialization of New Energy Vehicles (Grant [6] Nan Xie, Haibo Zhang, Weimin Chen ,Yan Ma, Jinghua Tian,
No.09625029) and Graduate Innovation Fund of Shanghai “Research and Design of Industrial Ethernet Int elligent Gateway
University, Youth Foundation of Taizhou University (No. Based on ARM,” Embedded Software and Systems Symposia, 2008.
09QN06). ICESS Symposia '08. International Conference , IEEE Press, July
2008, pp. 324-327, doi:10.1109/ICESS. Symposia.2008.52.
509