Rapid Control Prototyping in Test Sequence Design
Rapid Control Prototyping in Test Sequence Design
Rapid Control Prototyping in Test Sequence Design
net/publication/228943830
CITATIONS READS
2 1,196
2 authors, including:
Vesa Hölttä
Kindhelm
24 PUBLICATIONS 87 CITATIONS
SEE PROFILE
All content following this page was uploaded by Vesa Hölttä on 23 April 2015.
Abstract – Mobile working machines require condition II. MECHANISED TIMBER HARVESTING
monitoring in order to minimise downtime and maintenance
costs. Rapid control prototyping (RCP) is a control design There are different methods for mechanised timber
method where testing of new functions is done first in harvesting differing by their philosophy and the machines
simulation environment. The simulation models are converted
using automatic code generation to a prototype controller that
needed. In North America the full-tree and tree-length
can be used in field testing. The time needed to develop new methods are common whereas in Scandinavia the cut-to-
functions is reduced significantly and consequently it is possible length method is dominant. In Finland 96 % of the volume of
to test different solutions without additional delay. This paper the timber that was harvested in 2002 was felled with a forest
presents a test sequence that can be used to monitor the harvester [1].
condition of hydraulic valves of a forest machine. The purpose Despite of the high degree of automation in a harvester,
of the test sequence is to detect the instability of proportional the human operator has the main responsibility of the
pressure reducing valves. The detection of impending and efficiency and environmental impact of timber harvesting.
multiple simultaneous faults is also possible. Discrete wavelet The control unit of the harvester has software that calculates
transform is used in the analysis.
the optimal lengths of the harvested logs in order to
maximise the timber value. However, it is the responsibility
I. INTRODUCTION
of the operator to decide the final log lengths depending on
the quality the harvested timber. Usually the operator plans
A forest harvester is used for felling, delimbing and cutting
the route for the logs to be carried to the roadside. Especially
trees. It has been designed to be operable in difficult terrain
at thinnings, the operator may also have to choose which
and in operating temperatures and other conditions that vary
trees are cut down [2]. In order to make the operator more
substantially during the year and even during one day.
able to focus on decisions only a human can make, other
Modern forest harvesters are becoming more and more
functions of the harvester should be made as automatic as
computerised and a number of sophisticated control methods
possible.
such as fuzzy control and learning systems are included in
the distributed control system of the machines. The
A. Cut-to-length harvester
development of new methods requires extensive testing,
preferably in the actual working environment, and several In the cut-to-length method the trees are felled, delimbed
approaches may need to be tested before a working one is and bucked (i.e. cut to logs) with a forest harvester (Fig. 1).
found. Therefore flexible tools that enable fast design and The harvester is equipped with measuring devices which
testing are needed. measure the length, diameter and volume of the stem.
Traditionally one of the main problems in the product Optimization algorithms choose the bucking so that the value
development of mobile working machines is the difficulty of
collecting additional data and testing new control prototypes
in normal working conditions. This is due to the extremely
harsh working environment that all additional sensors and 3
2
signal processing units placed in the machines must tolerate. 1
Implementing new control algorithms often requires revising
some of the software components of the machine’s existing
control units. As a result of this, usually only small
modifications are made at a time to a product, which has
proven its functionality in practice.
In this paper an automatic test sequence for monitoring the
condition of hydraulic valves is developed. The paper begins
with an introduction to the application area, i.e. mechanised
timber harvesting. Section III presents rapid control 4
prototyping. The background of the test case and the methods
are dealt with in section IV. Simulation and field test results
are in section V, and conclusions complete the paper. Fig. 1. Cut-to-length forest harvester.
of the stem is maximized. Once the stems are processed, a III. RAPID CONTROL PROTOTYPING
forwarder carries the logs to the roadside for further
transportation. A. Overview
A cut-to-length forest harvester can be divided into four
main parts: engine and power transmission (number 1 in Fig. Rapid control prototyping (RCP) provides a quick solution
1), cabin and controls (2), crane (3) and harvester head (4). for prototyping new functions in a mobile working machine
All the power of the machine is delivered hydraulically. The that is controlled with a complex distributed control system
diesel engine is only used to rotate the supply pumps of work [3]. Rapid control prototyping process consists of the
hydraulics and hydrostatic transmission. The supply pump of following phases:
work hydraulics delivers hydraulic power to the crane, the 1. Modelling of the plant in simulation environment
harvester head and all the other auxiliary functions of the 2. Model validation
machine. The hydrostatic transmission consists of a variable 3. Designing a prototype version of the control system
displacement pump, a variable displacement hydraulic motor 4. Testing the prototype version of the control system
and mechanical transmission to wheels. against the simulation model
The cabin is equipped with the controls that are needed for 5. Testing the prototype version of the control system in
operating the functions of the harvester and with the the real plant
computer display module, which gives the operator
information on the harvesting process and on the state of the The basic idea is to develop and test the new control
harvester. strategies and algorithms in a simulation environment. As
The different parts of the harvester are interconnected via a soon as the controller design is complete and the simulation
Controller Area Network (CAN) bus. The bus enables two- results are acceptable, the controller can be translated to a
way digital communication between the harvester head, real-time prototype controller, which is used for testing the
crane and other modules. algorithm in real working conditions. The translation from
the off-line simulation environment to a real-time controller
B. Harvester head is done automatically without any handwritten code.
Two basic RCP approaches can be distinguished: fullpass
The most complex part of the harvester is the harvester and bypass [3]. With fullpass, the function prototyping
head. Its main functions are sawing, feeding, delimbing of hardware completely replaces the production controller. All
branches and measuring log length and diameter profile. sensors and actuators are connected to this electronic
Trees are felled and the stems are cut to logs with a hardware, and it has full authority to control the plant. In this
hydraulically actuated chain saw. Once sawing is complete application the bypass-method is used. It means that the
the stem needs to be fed to a new cutting point. This is done prototype controller of the new function is implemented by
with feeding rollers, which are rotated with hydraulic motors. partially revising the existing control units of the machine.
To prevent the feeding rollers from sliding, the rollers are The original control unit executes all the functions that will
pressed hard against the stem with a hydraulic cylinder. In remain unchanged, while the new algorithms are calculated
front and behind of the feeding rollers there are delimbing in a specific control unit, which also provides the additional
knives, which are pressed around the stem with hydraulic inputs and outputs. If needed, a PC provides the user
cylinders. As the stem is fed to the next cutting point, interface for the new control system. (Fig. 3)
branches are cut when they meet the delimbing knives.
Delimbing knives also prevent the stem from falling out of B. Benefits and drawbacks
harvester head grasp during the feeding operation. The main
parts of harvester head are shown in Fig. 2. The performance The RCP approach has many advantages. The use of
and functionality of harvester head have a large-scale effect simulation models helps the control designer to achieve a
on the overall timber harvesting efficiency of the machine deeper understanding of the process. Simulation experiments
and the quality of the harvested timber. may also reveal important state variables that are impossible
CONTROL UNIT AND VALVE BLOCK
to measure from the real process.
SAW UNIT
FEEDING ROLLERS
DELIMBING KNIVES
Fig. 2. Main parts of the harvester head. Fig. 3. Bypass-based rapid control prototyping. [4]
In simulation environment it is also possible to experiment application without the user interface. ControlDesk has
with features that are not available in the hardware currently several instruments for real-time adjustment of the model and
used in the product. These features include e.g. higher controller parameters and for monitoring of the
sampling rates and larger computational power. Thus it is measurements. It is possible to record and store all the
possible to evaluate the benefits that would be obtained if the measurements and state variables to MATLAB data files
hardware in the product was upgraded to a better and from the ControlDesk. In addition to Rapid Control
presumably more expensive version. Prototyping, Simulink and dSPACE hardware provide also a
The software and hardware used in the RCP process serve Hardware-In-the-Loop (HIL) environment for testing of the
also as high performance general purpose data acquisition control modules of the production machine.
tools in addition to providing a real-time control system for
the new algorithms. Time and money are saved when the IV. TEST CASE
costly and time-consuming I/O-wiring of the machine is done
only once. The same equipment is used for testing of the new A. Background
control prototype in the real working environment as well as
for data acquisition in modelling and model validation The traditional approach in maintenance of machinery is to
process. Control prototyping does not require any perform service operations at regular time or machine hour
modifications of the machine’s existing software intervals, or when a component breaks down preventing
components. normal operation. In contrast to this, in condition based
Automatic code generation eases significantly the maintenance the decisions regarding service actions are
iterations in the control system design, because the time- based on the actual condition of the machine or a component
consuming manual coding phase of the algorithms is left out. [5].
It also removes the programming errors generated during the The primary goal of condition based maintenance is to
manual coding phase. As a whole, the time needed for decrease unexpected downtime and maintenance costs of the
designing and implementing a control system is shortened. machines. If machines are run until they break, the resulting
Thus several different solution candidates can be prototyped unplanned service breaks are longer than planned ones, due
and tested in the real process. to the fact that spare parts and skilled personnel may not be
The use of RCP may require purchasing commercial available immediately. Especially, in the case of a forest
proprietary software and hardware to be used in the design harvester, service may often be very far away from the
and testing process. However, the cost of such products may machine. On the other hand, unnecessary, i.e. too frequent,
be small when comparing with the amount of work that maintenance increases costs and downtime. Consequently,
would be required to realize a similar test setup from scratch. knowledge of the exact condition of the equipment is needed
The software and hardware can be also reused in future for scheduling and choosing maintenance optimally [5].
projects. The aim in this test case is to design and to test a test
To be able to design a good control algorithm for a plant sequence that can be used to evaluate the condition of a
using the RCP method, the plant model must be accurate hydraulic valve. The sequence should be such that it can be
enough. Unmodelled plant dynamics, nonlinearities as well performed periodically without disturbing the normal
as unexpected measurement noise and disturbances during operation of the forest harvester. If possible, the test
testing with the real plant may result in the failure of a sequence should also be performed without any additional
control algorithm that has performed well in simulations. equipment that is not included in the normal operation of the
Should this be the case, the data obtained from the plant can machine. The results of the test sequence should be
be used to refine the model of the plant before retuning or interpreted automatically so that the evaluation of the health
redesigning the control algorithm. of the valves is obtained without expertise in hydraulics.
Simulation is used for avoiding tasks that would be time-
C. Tools consuming, expensive and impractical to do in practice. In
this test case the goals of simulation are:
In this application MATLAB with Simulink and Real- 1. Finding the optimal pressure levels and positions of
Time Workshop is used as the simulation tool. MATLAB
hydraulic components and actuators
and its toolboxes provide a high level development 2. Finding the optimal inputs of the test sequence
environment for implementing different control strategies. 3. Finding the optimal sensor locations in the system.
The hardware of the specific control unit is dSPACE
MicroAutoBox. The Real-Time Interface of dSPACE If these goals were to be achieved without simulation,
provides Simulink blocks for the MicroAutoBox I/O signals, extensive work changing the hardware to test e.g. different
which replace the plant model in the simulation model. The sensor positions would be required. In simulation testing the
Simulink model is translated through Real-Time Workshop parameters of the process can be kept constant and
and Real-Time Interface of dSPACE to a program that is disturbances are replicable, whereas in real-world testing the
loaded on the specific control unit. The user interface is fault in the process could become more severe during the
created with dSPACE ControlDesk application. The specific testing, making the results to be noncomparable.
control unit may also control the plant as a standalone
pOUT and that it is much higher than p. Turbulent flow through an
orifice is given by
2∆p
Q = CA , (2)
ρ
where C and A are the flow coefficient and the cross-
sectional area of the orifice, ∆p the pressure drop across the
orifice and ρ the density of the fluid. The conventional
turbulent orifice flow formula (2) has an infinite derivative
pS pT when the pressure drop is zero. This can cause ODE solvers
to crash during simulation. Applying a two-regime orifice
Fig. 4. Hydraulic scheme of proportional pressure reducing valve. flow formula proposed by Ellman and Piché [7], the flow
formula is better-suited for simulation. The laminar and
turbulent flow regimes are determined by the transition
B. Condition monitoring of a hydraulic valve pressure ∆ptr. The turbulent flow (∆p > ∆ptr) is given by
V. RESULTS
A. Simulation