Figure 4: Sequential scheduling of control internal drive
data acquisition.
the PLC part of the CNC. The transfer of the
configured data to the drive control unit is
implemented via the function block FB2, which is
part of the default PLC-configuration. Subsequently,
the recording in the drive system is started
immediately or after a specific trigger condition
occurs (e.g. motor torque exceeds a configured
value). After completing the measurement, the
signals are stored in dedicated data blocks in the
PLC. The recorded signals are transferred via
cyclical calls of the function block FB 3. Due to
manufacturer-side limitations the signals are
transmitted in packages of eight values each. Further
details on the procedure and the underlying
functions are described in detail in (Hellmich et al.,
2016).
In comparison, the procedure described there
was restructured for an utilization in the intended
overall scenario. All parameters have been
integrated into a multi-instance function block,
which serves as the basis for the external access and
offers benefits in terms of memory utilization and
computing power.
3.2 Automatic Data Extraction and
Processing
After transferring the measured values to the PLC, a
central storage and enhancement of the
informational value in the sense of so-called Smart
Data Services is intended. Due to the limited
memory capacity and the cycle time dependent on
the program scope, this part of the CNC is not
suitable for permanent storage or further signal
processing.
As mentioned in section 2, however, modern
control systems have the standard possibility of the
integration into the company-internal Ethernet
network and thus to realize the coupling of a
personal computer with sufficient computing power.
There are various software interfaces already
available on the control side, for example to transmit
centrally generated part programs or for remote
maintenance. As part of the overall concept shown
in figure 3, an Ethernet-based software tool called
Snap7 has been determined, which provides the
essential functions for a bidirectional data exchange
between the PLC and external computing
technology in a corresponding library (Nardella,
2015). In addition to preinstalled communication
functions, various options for implementing
personalized read and write requests are included.
The novel created software application works
according to the client-server principle and thus
allows a data exchange between the machine control
and the connected computing technology. The
particularly developed program was designed to be
scalable in order to prospectively enable the support
of other control manufacturers without extensive
adjustments.
Functionally, a distinction can be made between
three essential components. An algorithm library
(module “calculations”) accommodates all functions
for the further processing of the logged drive data to
the mentioned control loop-based Smart Data
Services. This also includes the algorithm-specific
parametrization of the trace function. All required
communication functions were implemented in so-
called communication controllers. Their task is the
control-side access and thus the transmission of the
trace parameters and the recorded data. On the other
hand, additional communication partners such as the
central server for data storage are included. The
coordination of communication and calculation is
handled by a central process control whose basic
structure is illustrated in figure 5.
At the beginning, a machine-specific configuration
file located on the central server is loaded which
contains all required parameters. Subsequently, the
parametrization of the control-internal data
recording is initialized. After the extraction of the
data stored in the controller, the calculation of the
respective Smart Data Service and a cloud-based
backup of the results for further analysis (e.g. trend
analysis, data mining) as well as their visualization
take place.