Professional Documents
Culture Documents
Abstract
Performance, functionality, and cost determine the competitiveness of CNC systems. These factors often conflict with
each other. Cloud computing provides an enabling technology to meet the multidimensional challenges, potentially lead-
ing to CNC systems with both better performance and functionality, and lower cost. This article presents the architec-
ture of a cloud-computing-based CNC system. This system locates its frontend in a cloud virtual machine and provides
the frontend as a service. The frontend in cloud, otherwise known as a cloud-enabled frontend, remotely displays the
interactive interface at a client device. The application program for interaction on the client is lightweight compared with
the traditional CNC human machine interface and can be easily integrated into mobile devices, such as laptops. The
cloud-enabled frontend communicates with an NC device (also known as the backend) on the shop floor via the
Internet or an intranet. Only real-time tasks run on the backend, while other tasks (semi-real-time or non-real-time) are
executed on the cloud-enabled frontend. Thus, the computing ability and intelligence of CNC systems can be improved
by a switch to the cloud architecture. In the proposed solution, users can also launch third-party software (e.g. CAD,
CAM, and CAE) on the cloud-enabled frontend, making it more versatile due to a rich application environment.
Keywords
CNC system, cloud computing, virtualization, on-demand resources, interoperability
computers, information security, and smart phones, researched the architecture, as well as the operation and
while being seldom used in manufacturing industry.6,7 application models of the CM system. However, the
DMG MORI CELOS provides a CAD-CAM VIEW above models were not integrated into a CNC system.
feature, allowing direct remote access to external CAD/ The CM system only provided services and applications
CAM workstations by means of remote desktop virtua- outside the CNC system.
lization.8 Operating on the same principle, FANUC This article will introduce an architecture of a cloud-
CNC systems can remotely use advanced applications computing-based CNC system. This system moves the
(e.g. CAD, CAM, and NCGuide) running on PCs.9 software modules from traditional physical frontend to
The above solutions provide CNC systems with better the cloud, providing the frontend as a service (FAAS).
versatility and usability. However, they are still imple- The cloud layer provides virtualized resources (e.g. the
mented using traditional frontend and backend model virtual operating system, the virtual memory, and the
with no support for remote monitoring and control of virtual hard disk space) to support the improved fron-
NC machining. One purpose of this article is to present tend. There is a significant difference from how Y Shi
an improved architecture to address the mentioned described his cloud CNC system: the improved fron-
deficiencies. The improved architecture can result in tend in cloud (also referred to as a cloud-enabled fron-
CNC systems having better performance, functionality, tend) is launched using the virtualization technology.
and flexibility due to the use of virtualization technol- The cloud-enabled frontend communicates with an NC
ogy, easing the integration of any intelligent application device (also referred to as the backend) via the Internet
(including remote monitoring and control) at a remote or an intranet and displays its interactive interface at a
site. remote client device (also referred to as the client).
In this article, the virtualization layer is based on Furthermore, the backend undertakes only real-time
cloud computing technology, which offers a scalable tasks such as servo control, while the cloud-enabled
and flexible service over the Internet or an intranet.10–12 frontend undertakes semi-real-time tasks (e.g. machin-
According to the definition of National Institute of ing simulation) and non-real-time tasks (e.g. G-code
Standards and Technology (NIST), cloud computing is editing).20 Therefore, what this article proposes is a real
a model for enabling ubiquitous, convenient, on- cloud CNC system, presenting improvements in com-
demand network access to a shared pool of configur- putation, interoperability, and on-demand provision of
able computing resources (e.g. networks, servers, resources.
storage, applications, and services) that can be rapidly The FAAS approach shows four main advantages.
provisioned and released with minimal management First, it uses the cloud computing technology to provide
effort or service provider interaction.13,14 The key spirit on-demand resources or services for the backend and
of the cloud computing concept can be summarized as takes advantage of virtualization technology to improve
the ability to provide distributed, low-latency, on- availability of cloud resources. Second, it is possible to
demand, and quantifiable services. As a result, cloud scale performance of a CNC system in response to a rise
computing creates new solutions and opportunities for in demand. For example, resource allocations, such as
modern enterprises, including the manufacturing indus- that of virtual memory, can be varied dynamically.
try.15 It can improve the environment of product Third, the cloud provides a richer environment, sup-
design, manufacturing process management, enterprise porting third-party software (e.g. CAD, CAM, and
resource planning, and manufacturing resource man- CAE) and user-defined applications. These applications
agement by providing a globally optimized solution.14 are installed virtually on the cloud-enabled frontend.
Many studies, applying cloud computing in manu- Then, users can access, via the Internet or an intranet,
facturing, have been carried out. The key benefits of the cloud-enabled frontend and operate these applica-
manufacturing as a result of cloud computing technol- tions to provide intelligent services for the backend.
ogy adoption are scalability to business size and needs, Finally, the cloud layer utilizes high-end servers as
ubiquitous network access, and virtualization.16 Y Shi17 hardware carriers. They offer powerful computing
proposed a cloud CNC system, consisting of a cloud resources, including CPUs and storage, to the cloud-
control node, a cloud measurement node, an adjust- enabled frontend.
ment drive unit, a real-time communication network, Section ‘‘A cloud-computing-based CNC architec-
and access to the Internet. This system enabled coop- ture’’ focuses on the overall system architecture of the
erative manufacturing of multiple machine tools. The cloud-computing-based CNC control approach. The
cloud control node and the cloud measurement node working mechanism of the cloud-enabled frontend and
constitute a cloud layer, which in practice is merely a the client is discussed. This section also considers how
cluster of PCs connected through a real-time physical the FAAS approach becomes advantageous in compu-
network. Hence, this CNC system retained the tradi- tation, interoperability, and provision of on-demand
tional frontend and backend model, suffering limita- resources. Section ‘‘The experiment’’ describes a
tions in providing on-demand computing, storage, and machining experiment designed to confirm that the
network resources. Furthermore, it failed to lower man- FAAS approach works in practice. The latency of this
ufacturing costs by any sizable margin. Li et al.18,19 pro- system is also analyzed. The article concludes with sec-
posed the concept of cloud manufacturing (CM), and tion ‘‘Conclusion and future work,’’ demonstrating the
Hui et al. 3
A cloud-computing-based CNC
architecture
The FAAS approach separates the physical frontend
from a CNC device and deploys the software modules
in the cloud layer. The improved frontend is called the
cloud-enabled frontend in this article. That is, this
approach divides a proposed CNC system into the
cloud-enabled frontend, the client, and the backend, as
illustrated in Figure 1.
The backend, located in a workshop, mainly consists
of a servo controller, programmable logic controller
(PLC), an numerical control unit (NCU), and so on. It is
responsible for real-time tasks covering position control,
speed planning, interpolation arithmetic, and so on.21 The
operations of the machine-tool scram, pause, start-up,
Figure 1. The cloud-computing-based CNC system
and shutdown are all done at the backend. The cloud-
architecture.
enabled frontend executes semi-real-time or non-real-time
tasks. Online NC machining simulation is an example of
a semi-real-time task, while non-real-time tasks include application software with a graphical user interface
G-code editing, troubleshooting, tool management, NC (GUI).22,23 Qt enables developers to target, with a sin-
parameter setting, commercial software (e.g. CAPP, gle code base, various desktop, embedded and mobile
MES, CAD, CAM, and CAE), and so on. The client pro- operating systems, as well as multiple screens.22
vides operators with an interactive interface. It could be Therefore, Qt’s advantages such as the cross-platform
accessed on a PC, a laptop, or a smart phone. support and being intuitive ensure that the CNC-HMI
application is easily portable across platforms.
Launched in a VM, the cloud-enabled frontend can run
A cloud-enabled frontend
any operating system (e.g. Windows or Linux) from the
A cloud-enabled frontend is a virtual machine (VM) corresponding system image to provide the required
located in the cloud layer. The cloud layer is built with platform for CNC-HMI. The above strengths of CNC-
high-performance servers. The cloud servers may be HMI and the cloud-enabled frontend make the cloud-
located in a workshop, a factory, or far away from the computing-based CNC system adaptable and flexible.
factory, because NC devices can interact with the cloud Along with software functions, the FAAS approach
via the Internet or an intranet. In addition, the cloud- provides storage as a service. Storage resources are
enabled frontend serves, via a network, its virtual desk- allocated at the cloud-enabled frontend as virtual hard
top to thin client devices such as PCs, on which users drives (VHD), which can be resized to increase their
can run a variety of intelligent applications. Such appli- capacity and partitioned. Machining data of NC
cations are displayed similarly to appstores (Figure 2). devices are uploaded to these VHDs, with users being
It is worth noting that there is a special application able to access the data from anywhere and at any time.
named CNC-human machine interface (HMI), corre- Separating machining data for a single backend is
sponding to software functions and modules of a tradi- necessary in order to keep control and production safe.
tional frontend. The FAAS approach achieves this goal by establishing
Using the just mentioned appstore, users can remove a one-to-one relationship between the cloud-enabled
or modify existing applications or install new ones; frontend and the backend. Thus, the processing of a
however, such operations on CNC-HMI are not single machine tool is kept relatively isolated from that
allowed. This is because CNC-HMI has to be closely of others. Providers can optimize resource allocation at
coupled to the backend, while monitoring and control the cloud-enabled frontend to meet a specific process-
of NC machining, such as G-Code editing and the con- ing demand.
figuration of tool parameters, are performed remotely. The elasticity of cloud resources resolves the on-
Figures 3 and 4 show the two corresponding kinds of demand resource allocation and computational issues
CNC-HMI interfaces. existing in traditional CNC systems. On one hand, the
In the proposed solution, the portability of CNC- cloud servers’ powerful software and hardware config-
HMI influences the adaptability of the whole CNC urations (including CPUs, RAM, hard disks, etc.) can
system. CNC-HMI is programmed with Qt, a cross- be used to provide more capacity and computing power
platform application framework widely used to develop to CNC systems. On the other hand, the virtual
4 Proc IMechE Part B: J Engineering Manufacture 00(0)
resources of the cloud-enabled frontend can be demands. Once no longer needed, these resources will
expanded to meet the fluctuations in processing be reallocated to other uses.
Hui et al. 5
The proposed approach simplifies NC devices, viewer), while the cloud layer has an RFB server called
resulting in lower costs for machine tool providers. NC the cloud-enabled remote desktop server (henceforth
devices do not need to perform complex computations, referred to as the C-RFB server).
because semi-real-time and non-real-time tasks are exe- In what follows, this article will describe how the
cuted in the cloud layer. As a result, they need less cloud-enabled frontend and the client communicate
memory and hard disk capacity. The cost of hard disk with each other. The client requests access to the
drives (HDD) used in cloud servers is lower than the required cloud-enabled frontend by providing the login
cost of solid state drives (SSD) of the same capacity credentials (the IP address and the port of the server,
used in a traditional frontend. It is possible that in the hosting the cloud-enabled frontend, and the password).
future, NC devices might not include display units, as Then, the cloud-enabled frontend provides its desktop’s
the latter would be replaced by thin clients. pixel data to the client, where the remote virtual desk-
top (i.e. the virtual interactive interface) is shown to
The client users. Although the desktop resolution of the cloud-
enabled frontend is fixed at 1024 3 768, the virtual
The client communicates with the cloud layer using the interactive interface displays its output at the appropri-
Remote Frame Buffer (RFB) protocol, a simple proto- ate scale, according to the client’s screen size. User
col for remote access to GUIs.24,25 Because it works at operations are received by the virtual interactive inter-
the frame-buffer layer, it is applicable to all windowing face, while their actual processing occurs in the cloud
systems and applications, including X11, Windows, layer.
and Macintosh. The RFB protocol can be used for A typical control flow of the FAAS approach is
communications between the client and the cloud- described as follows (Figure 5):
enabled frontend, regardless of the operating systems
they run. The remote endpoint where the user (i.e. the
1. A user inputs an instruction using an input device,
display, the keyboard, and/or the pointing device) is
such as a keyboard or a mouse.
located is called the RFB viewer. The endpoint where
2. The client forwards the instruction to the cloud-
the changes to the frame-buffer originate (i.e. the win-
enabled frontend.
dowing system and applications) is known as the RFB
3. The cloud-enabled frontend produces the response
server. In the FAAS approach, the client includes an
to the above instruction and generates a control
integrated RFB viewer, called the cloud-enabled remote
command (e.g. a servo control) for the backend.
desktop viewer (henceforth referred to as the C-RFB
6 Proc IMechE Part B: J Engineering Manufacture 00(0)
Equipment Description
Numerical control system HNC-848, a completely self-developed model of Wuhan Huazhong Numerical Control Co., LTD
Machine tool Five-axis CNC machining center (JT-GL8V) produced by J-Tech CNC Technology Co., LTD
Cloud center Each server has 100 GB of RAM, 2 CPUs and 10 TB of hard disk capacity
Cloud-enabled frontend A VM with 4 GB of RAM, 4 vCPUs and 40 GB of disk space
Workpiece Impeller
Hui et al. 7
Cloud-computing-based \1 1 1 \1
Traditional \1 1 1 \1
In what follows, the reference bandwidth for the of commissioning, maintenance, and operation of
proposed CNC system will be computed. Between for- machine tools. An amount of savings equal to that rea-
warding user commands from the client to the cloud- lized by moving the traditional physical frontend to the
enabled frontend and transmitting NC machining data cloud could also be expected for CNC systems as a
between the cloud layer and the backend, the largest result of simplifying the hardware (e.g. reducing the
share of bandwidth is used to forward the pixel data amount of memory and the hard drive space, and
from the cloud-enabled frontend to the client. The larg- removing the need for NC display devices) of current
est amount of pixel data in a single transmission is CNC devices. Furthermore, the cloud layer provides a
1024 3 768 bytes. Generally, the client would reload richer environment for a variety of intelligent applica-
any changed regions, with the size of the pixel data tions, as well as a powerful computing resource.
being below 1024 3 768 bytes. Therefore, the present In conclusion, the FAAS approach yields a CNC
calculation only takes into account the maximum system with a higher flexibility, greater versatility, and
1024 3 768 bytes of pixel data and takes the reload a higher computational power, yet a lower cost. In the
time of the entire virtual interactive interface to be the future, we intend to focus our efforts on generalizing
time needed for a single transmission. In the course of the proposed CNC system into the areas of education
10 tests on a PC, the values of 0.8, 1, 1.2, 0.8, 1.3, 1, and industry. In addition, we plan to research the appli-
1.2, 0.7, 1, and 0.7 s have been obtained. Thus, the cation of big data to raise the data-processing capacity
average single transmission time (or AVE-TT) is 0.88 s, of this system.
according to the following equation (1)
0:8 s + 1 s + 1:2 s + 0:8 s + 1:3 s + 1 s + 1:2 s + 0:7 s + 1 s + 0:7 s
AVE TT = = 0:88 s ð1Þ
10