Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

A PROGRAMMABLE INFERENCE CONTROLLER MEETING


HIGHEST SAFETY REQUIREMENTS

Peter Vogrin, Wolfgang A. Halang

Abstract: ponding guidelines of the licensing authorities,


A programmable controller suited for automation the design principles of control equipment have
applications of highest safety criticality is presented. to be quite elementary. In particular, according to
Its features are input conditioning by low-resolution the List of Type Approved Programmable Electronic
analogue-to-digital converters, inference by look-up in rule Systems [2], it is prohibited to use PID or other
set tables, strictly periodic and jitter-free operation, high more complex control algorithms in safety-related
speed and simplicity of design. A fail-safe supervisor applications.
immediately initiates an emergency shut-down in case of 2. Another detriment to present controllers is their
a malfunction. The software in form of rule base tables can inherent lack of two aspects of speed:
easily be verified by inspection. This device is used to (a) Owing to their mathematical models, control
implement control algorithms working with set-point pre- systems react slowly after modifications of
processors, which calculate internal set-point graphs of their set-points, and after unforeseen events,
controlled variables in such a way that very high controller such as disturbances, defects and alterations
gains are attainable and, thus, stability is increased. The of parameters of the technical processes be-
performance of these „SPP” controllers is closer to the ing controlled.
„best physically possible”, and much more predictable (b) Loop execution time.
than the one of conventional control structures. The other-
wise conficting design objectives stability, safety, high In this paper, a novel programmable electronic sys-
speed, small energy consumption, or steady and harmonic tem is introduced, which addresses safety issues by
temporal controller output values can nearly all be perfection. It is not suitable for any computing or in-
achieved. dustrial automation tasks, but for a large class of control
tasks as typically found in applications having to meet
Keywords: safety methoded control, safety-licensing, the requirements of Safety Integrity Level 4 as defined in
programmable electronic system, set-pair preprocessor, IEC 61508 [4]. The presented design fascinates by its
rule-based control, fuzzy control. simplicity as it does not involve any kind of sequential
programs and arithmetic calculations. Nevertheless, the
controller’s behaviour is easily programmable by just
1. Introduction inserting other memory modules containing different
Safety-related devices and control systems are tables.
employed in many application areas of vital importance. The programmable controller conditions its input
With regard to the following two main reasons, the domains by relatively coarse rasterising carried out in
performance of state-of-the-art controllers employed in hardware, viz., by linear or non-linear low-resolution
safety-critical systems is often very unsatisfying: analogue-to-digital converters. This leads to an inferen-
1. Owing to the overwhelming complexity of hard- ce scheme which does not require any numerical or Boo-
ware and especially software, the thus restricted lean computations, but just look-ups in tables containing
possibilities for safety-licensing, and the corres- rule sets, and the name “inference” or “IF” controller.

Fig. 1. Functional diagram of the inference controller.

8 Articles
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

Thus, the controller neither needs a general-purpose vided to an action interface, which finally performs
processor nor software in form of sequential computer process actuation.
programs, both of which would make the controller’s As inputs several analogue signals are provided to the
safety-licensing practically impossible considering the controller in form of control errors, i.e., differences bet-
present state-of-the-art. Instead, software only takes the ween actual measured values and desired values. For rea-
form of rules in tables, lending itself to rigorous verifi- sons of algorithmic simplification in the controller, and
cation by inspection [1]. By design, the IF controller to use proven hardware as widely as possible, these diffe-
consists of a rather small number of relatively simple and rences are determined in analogue form with operatio-
long established hardware modules whose correct nal amplifiers. The transfer behaviour of the IF controller
operation is permanently supervised by an inherently can be described by the static relations between its input
fail-safe circuitry. Upon any irregularity, this supervisor and output values. Thus, if the raster intervals of the in-
immediately causes an emergency shut-down of the puts are small enough, it is possible to approximate any
controller and the technical process. Thus, safety-licen- static control algorithm with this type of controller. Mo-
sing of the hardware can follow well understood and reover, dynamic controllers can be composed by adding
already proven procedures. Generally, IF controllers have integrators and differentiators. The main component of
two major benefits as compared to controllers with con- the IF controller is the inference engine. It operates un-
ventional structures. Even though IF controllers are rela- der a strictly periodic regime. In contrast to industrial
tively simple to be safety-licensable, they can, in prin- programmable logic controllers each loop execution tkes
ciple, approximate any control algorithm with sufficient exactly the same amount of time, because the same ope-
precision. The second great advantage of IF controllers is rations are carried out in every iteration. Thus, the con-
their extremely short loop execution time. troller’s real-time behaviour is fully deterministic and ea-
Control systems often exhibit a big gap between real sily predictable. Every loop execution comprises three
and desired performance, which has its reason in their steps:
mathematical models. Employing set-point pre-proces- 1. input data generation by analogue-to-digital con-
sors (SPP) as introduced in the second part of this paper version in the condition interface,
promises a clear improvement of control performance in 2. inference by determining appropriate control
many application cases. A set-point pre-processor com- rules, and
putes the internal set-point graphs of a controller in such 3. control actuation via digital-to-analogue conver-
a way, that its real behaviour is as close as possible to its ters in the action interface.
desired behaviour. The effort to design such a controller These steps as well as the overall operation cycle are
is relatively small if the mathematical model of the tech- strictly synchronised with a system clock. The control
nical process does not contain any considerable dead errors are fed into the condition interface. The domains
time or lag elements, as is the case for robots. The of the input variables are subdivided into intervals and,
attainable speed and stability of SPP robot controllers are thus, a (coarse) discretisation of the input data is obtai-
several times higher than for conventional controllers, ned. As the input values are given in analogue form, the
even if the mathematical model of the technical process most simple and straightforward way to directly obtain
to be controlled could only approximately be taken into the corresponding digital coding is to employ analogue-
consideration in designing their set-point pre-proces- to-digital converters. Thus, if the intervals are equally
sors. In a case study, an SPP robot control algorithm long, the condition interface reduces to a set of standard
is designed as a fuzzy controller with rectangular input A/D converters, whose number equals the number of in-
membership functions and implemented on an IF put variables. By discrete implementation of the A/D
controller. converters or by non-linear pre-amplification in the input
stage, non-equidistant domain partitions can be reali-
2. An Electronic System Programmed sed, thus providing different precision in different ran-
by Rule Sets ges. Typically, higher precision is selected around refe-
As shown in Fig. 1, the inference (IF) controller is rence points.
designed with a condition interface producing rasterised The inference engine’s rule base consists of one table
values of several input variables. These are then subjec- for each output variable to be determined. Logically,
ted to an inference engine co-operating with a rule base. these tables might be interpreted as cause effect tables,
The outputs from the inference engine are directly pro- i.e., each rule has, in principle, the form:

Fig. 2. Architecture of the inference controller.

Articles 9
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

if {causei} then {effectj} used to initiate an emergency shut-down of both the


controller and the technical process. Owing to these
The tables may also have the form as shown in Table 1: requirements, the supervisor must be implemented in
A value of an output variable is assigned to any con- a fail-safe logic. To this end, a dynamisation principle is
junctive combination of the values corresponding input applied. As shown in Fig. 3, a detailed functional diagram
variables can assume. Such tables are most easily imple- of the IF controller, each functional unit provides a ready
mented as random access memories which, for safety signal indicating successful operation. These signals are
reasons, should be readable only, i.e., as ROMs, PROMs, or logically conjugated, by fail-safe And-gates, with the
EPROMs. Actually, Boolean conjunction of input variables clock signals initiating the particular operations to form
is not performed. Instead, the binary codes of the input enable signals provided to the subsequent operation
values are concatenated to form addresses of table each. The last digital-to-analogue conversion performed
entries, i.e., memory locations, containing digital equi- in the action interface enables the first analogue-to-
valents of the desired actuations. Fig. 2 shows the IF digital conversion in the condition interface to realise
controller’s architecture. An input latch is needed to cyclic control operation. All enable signals are also input
prevent jitter on address lines. The state of inputs is to a fail-safe Or-gate whose output drives an RC element.
sampled and latched to provide the address bits of an The temporal behaviour of the voltage at the capacitor C
EPROM. The thus read out data represent the output value is depicted in Fig. 4. Only when the enable signals con-
associated with the given inputs. Latches hold the output tinue to permanently re-load the capacitor via the Or-
values until new ones are provided. A sequencer, imple- gate and the resistor R, the voltage at C remains higher
mented with a PAL and consisting of a clock generator than a certain threshold. If the signals cease for any
and dividers (counters), controls the latching of inputs, reason whatsoever, the capacitor discharges causing
the generation of outputs, and their latching in a se- a relay to switch to emergency-off.
quential way. The EPROM read-outs are finally provided to
the action interface. This design avoids any further 3. Software Safety-licensing
transformations by directly storing the digital equiva- The contents of the rule base tables is the only “soft-
lents of the desired actuations in the rule base tables ware” contained in IF controllers. All other functions are
(EPROM). Hence, the action interface reduces to a stan- implemented in hardware. Here software does not mean
dard digital-to-analogue converter for each output signal executable sequential programs fetched from writable
to be generated by the controller. memory as in the classical Von Neumann computer archi-
In order to make the IF controller apt for utilisation in tecture. Instead, it is better described as a paramete-
safety-critical or vital environments, it is endowed by risation with which a general-purpose device is configu-
a device supervising correct operation. In case of a mal- red to perform a specific function. Since coded rule bases
function this supervisor generates a signal which can be should always reside in some kind of read-only memories,

Fig. 3. Fail-safe supervision of the inference controller’s operation.

10 Articles
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

the software takes on the form of firmware. with MC being the torque controlling the pointer, MD the
Rigorous software verification is, in general, still an torque disturbing it, and I the current leading to the
unsolved problem due to the complexity of software. Mo- torque MC. If the control deviation is larger than 2 rad
reover, object code, i.e., the only version of a program and MD is not too big, the pointer moves to the desired
actually visible to and executed by a machine, must be rotation angle with an angular velocity between 10 and
considered for purposes of safety-licensing, since the 15 rad
s , and the controller works as speed controller. After
transformation of a program’s representation from source the acceleration period, the pointer moves to the desired
to object code by a compiler or assembler may introduce angle nearly without actuations. Therefore, if the control
errors into the object code. The architecture of the IF error is 2 rad, the angular velocity is between 10 and
controller greatly facilitates the rigorous verification of 15 rad
s . It is easy to construct and to improve a rule-based
the software contained under the constraint that object controller for this narrow speed range. If the control
code needs to be examined. Owing to this software’s very deviation is smaller than 2 rad, the controller works as an
limited complexity, it is feasible to employ the safety- angle of rotation controller. It is also possible to control
licensing method of back translation. This method was the speed of the pointer dependent on the control devia-
developed by a licensing authority, viz., TÜV Rheinland, tion. This approach could reduce the regulating time.
and consists of reading loaded object code out of a ma- Higher speed, however, certainly leads to higher mecha-
chine and having it inspected by human licensors [5]. If nical forces. These considerations lead to the structure of
they work without mutual interaction, the process fulfills a rule-based controller as shown in Fig. 5. For the domains
the requirements of diversity. Inspection is essentially of the input variables non-equidistant partitionings with
informal, easily understandable, and immediately applic- higher precision around zero as shown in Figs. 6 and 7 are
able with-out training. Its ease of understanding and use selected. The number of words required in the EPROM
inherently fosters error-free application of the method. corresponds to the product of the numbers of input
Since rule base tables are machine executable on one intervals. In this example 63 words are needed. Table 1
hand, but also constitute formal problem specifications shows a part of the rule base table, in which ID is the
on the other, there is, by design, no semantic gap, except digital equivalent of the current leading to the torque
coding, in the IF controller’s architecture between the MC. These values are stored in the EPROM.
levels relating to humans and to the machine. Inspecting Experiments and measurements were carried out to
object code thus means to verify an implementation and to compare the performance of such rule-based controllers
validate a problem specification at the same time. The and of best possible classical PID controllers. They reve-
effort involved to verify rule base tables and their correct aled that, in addition to the ones already mentioned,
implementation is by orders of magnitude less than for rule-based controllers have many advantages:
licensing sequential software and is, therefore, also eco-
nomically feasible. • The overshoot after a set-point jump is much smaller
(less than 0.1 rad) independent of the set-point.
• The output error is smaller than 0.1 rad in a much
shorter time.
• If the disturbing torque MD is not too large, it is
possible to freely determine the maximum speed of
the pointer.

This case study also shows that it is possible to build


a rule-based controller with an EPROM of a very small ca-
pacity, only. Nevertheless, its performance turns out to be
much better than the performance of a conventional
approach. Moreover, it is easily feasible to improve the
Fig. 4. Dynamisation principle for fail-safe supervision. performance of the rule-based controller. The range of
permanent control errors can, for instance, be reduced by
4. Case Study and Experimental Results • providing more input intervals, especially for the
The following simple example shows the principle of control deviation x1, close to zero, or by
constructing a rule-based controller. We consider control • providing an additional controller input for the
of a pointer’s angle of rotation without friction or any integral of the rotation angle’s control deviation.
other damping to provide for the most difficult case to
control. As the pointer moves on a vertical plane, the 5. Control with Set-point Pre-processors
gravity needs to be accounted for, and usually a torque is The purpose of endowing a controller with a set-point
needed to hold the pointer at the desired angle. Let the pre-processor (SPP) is to calculate the internal set-point
pointer’s mass be 1 kg and its length 1 m. Therefore, the graph in such a way that the maximum difference between
rotation of the pointer is mathematically described by the the set-point graph and the real position is much smaller
following differential equation for the angle as a fun- than the maximum control error of a conventional con-
ction of time: troller. Then, the temporal graph of this difference is
(1) steady and harmonic, higher controller gains are possible
and, therefore, feedback control systems become more
stable. Another great advantage of such SPP controllers is

Articles 11
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

Fig. 5. Structure of a rule-based controller of a pointer’s rotation.

Fig. 6. Input intervals of the rotation angle’s control deviation (A0–2).

Fig. 7. Input intervals of the angular velocity (A3–6).

Table 1. Section of a rule base table for one output variable.

Fig. 8. Principle of a common conventional control system.

Fig. 9. Principle of a controller working with a set-point pre-processor (SPP controller).

12 Articles
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

the continuous temporal behaviour of their actuations. These assumptions lead to some great disadvantages,
Moreover, compared with conventional controllers such as viz., inherent tardiness after a set-point jump and after
PD or PID, the influence of disturbances on control a sudden change of FD(t). Another detriment is the large
performance is very small. The only differences between permanent control error if a permanent force disturbs the
the design principle of a conventional controller for a sleigh.
single loop feedback system as shown in Fig. 8 and the Construction of the SPP Controllers SPP2 and SPP3.
one of an SPP controller as depicted in Fig. 9 are that the As described above, controller design objectives are nearly
SPP controller contains a set-point pre-processor and that freely selectable. In this example, we consider the desired
its correction element gains are higher. temporal graph of the force controlling the sleigh FA(t).
The set-point pre-processor input yS(t) is the desired The task of the set-point pre-processor is, therefore, to
temporal graph of the controlled value. Its output is the compute the internal set-point graph sSA(t) by assuming
internal set-point graph ySA(t). Using the difference the desired temporal graphs sS(t) and FA(t), whereas sS is
ySA(t) - y(t) instead of the control error yS (t) - y(t) as sta- the set-point of the controlled value. There is a static
tic controller relation inputs leads to the great advantage relationship between the position of the sleigh s(t) and the
that the behaviour of the controlled system is much more force accelerating it. So, lag or dead time elements are not
predictable as the one of a conventional controller. More- contained in the mathematical model of the controlled
over, the real performance of a properly designed SPP system. We do not consider occasionally occurring
controller is usually much closer to the “best physically disturbing forces (FD = 0). The sleigh mass is m =1kg.
possible” controller behaviour. Thus, in controller design These considerations lead to a simple equation of the set-
priorities and objec-tives are almost freely selectable. point pre-processor’s calculator:
As displayed in Fig. 10, we consider the elementary t1 t
1
example of controlling the position of a sleigh on a hori- sSA(t1)=sSA(t0)+ × FA(t)× dtdt (4)
m t0 t0
zontal line. We shall only show the basic design principle
of controllers working with set-point pre-processors. Set-point pre-processor of the SPP controller SPP2:
Design and behaviour of a conventional PD controller The set-point pre-processor calculates the fastest in-
(PD1) is compared with the ones of two PD controllers ternal set-point graph physically possible by considering
working with set-point pre-processors (SPP2 and SPP3). that the controlling force is within the controller’s
The mathematical model of the control system is charac- actuation range (-25N £ FC(t) £ 25N). Therefore, FA(t) is
terised by the following differential equation: either the maximum or the minimum of the controlling
force FC(t) or zero. This property has the great disadvan-
tage that the controller has small force reserves if the real
technical process is different from the one considered in
the design of the controller, e.g., due to disturbances or
aging processes. An example of an internal set-point
Fig. 10. Sleigh on a horizontal line. graph sSA(t) is shown in Fig. 11.
2 Set-point pre-processor of the SPP controller SPP3:
d s(t)
FC(t)+ FD(t)= m × = m×a(t) (2) The design principles of the SPP controllers SPP2 and
dt2
SPP3 resemble each other. The only difference is that
The total force FC + FD and the speed of the sleigh v FA(t) is limited between -6.25 N and 6.25 N. Thus, the
have to be zero in the stationary state. Discrete degrees of theoretical reserve force of the SPP controller SPP3 is
freedom of robots often have similar properties. The con- 25 N - 6.25 N = 18.75 N. On the other hand, as displayed in
trol problem is to guide the sleigh’s position s by adjus- Fig. 11, the time after which the internal set-point graph
ting the force FC. The controlled system has an inte- sSA(t) reaches the set-point sS(t) is twice as long.
grative behaviour. Thus, the performance of the best PD Correction element of the SPP controllers: Generally,
controller is better than the performance of the best PID the design principle of controllers working with set-point
controller, if the disturbing force FD is zero. pre-processors is to distinguish between the desired
Design of the Conventional PD Controller PD1. temporal graph of the controlled value (in this example,
In this example, the force controlling the sleigh FC(t) is sS(t)) and its internal set-point graph (sSA(t)). The
limited between -25N and 25N. It was tried to design con- mathematical algorithm of a set-point pre-processor is
trollers with the best performance assuming that the ma- designed in such a way that the difference between the
ximum amount of the set-point jump is 100m. Moreover, internal set-point graph sSA(t) and the actual controlled
the control errors due to disturbing forces FD(t) should be value s(t) is rather small. Due to this property, it is both
as small as possible. The control deviation sS(t) - s(t) of possible and essential that the amplifications of the
the conventional PD controller PD1 may be very large. controller are high. Owing to the small difference sSA(t)-
The force FC(t) is about (sS(t) - s(t)) multiplied by the s(t), it is possible to design a controller with high
proportional amplification P. Thus, P has to be rather amplification, even though its actuations are limited. The
small, otherwise the controlled system will be unstable. controller’s amplification also has to be large in order to
The chosen mathematical algorithm of the correction decrease this difference. The temporal graph sSA(t)-s(t)
element is described by the following equation: and, thus, the performance of the controller primarily
depends on the controller’s proportional amplification PP.
FD(t) = P × (sS(t) - s(t)) + PD × v(t) (3) Therefore, SPP controllers should be designed according
= 3.5Nm × (sS(t) - s(t)) - 3Nsm × v(t)
-1 -1
to the following procedure:

Articles 13
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

1. Design of the set-point pre-processor: The Performance of the controllers: As shown in Figs. 11
controlled values should be able to follow the and 12, at the moment t1 (in this example, t1 = 0) a set-
internal set-point graphs even if the controlled point jump immediately leads to a sudden change of the
technical process is disturbed by any anticipated conventional controller’s control error. At the time t1 the
fault. control deviation jump sS(t1) - s(t1) corresponds to the
2. Coarse determination of the controller’s propor- amount of the set-point jump-with regard to the stability
tional amplification PP: Afterwards, its differential of the controlled system, the amplification of the control-
and integral amplifications PD and PI are set. ler has to be small, particularly if the maximum amount of
Meaningful values of PP, PD and PI mutually affect the set-point jump is high. Therefore, conventional con-
each other. trollers are usually slow and not very stable. The aperiodic
border case is assumed in the design of the conventional
These considerations lead to the following actuation PD controller PD1. Thus, the sleigh reaches its desired
function of the SPP controllers: values sS(t) without overshoots if it is not greatly distur-
bed. However, only small enlargements of the controller’s
FD(t) = PP × (sSA(t) - s(t)) + PD × v(t) (5) amplifications result in big overshoots, and still, the time
= 250 Nm × (sS (t) - s(t)) - 26 Nsm × v(t)
-1 -1
after which the set-point is reached for the first time is
much longer than the one for an SPP controller which
-1
Their proportional amplification PP is 250 Nm instead exhibits a minute overshoot, at most.
-1
of P =3.5 Nm by the conventional PD controller PD1. In contrast to the control deviation of a conventional

Fig. 11. Correction element inputs leading to a set-point jump from s(t) = 0 to 1 m.

Fig. 12. Control errors after a set-point jump from zero to s = 1 m.

Fig. 13. Controlling force FC(t) after a set-point jump from zero to s = 1 m.

14 Articles
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

Table 2. Comparison of the performance of the PD controller PD1, the behaviour of the SPP controller SPP2, and the
performance of the SPP controller SPP3 after a set-point jump from zero to sS =1 m or to sS = 100 m, respectively.
The amount of the first overshoot is sB, tD is the time after which the output error is smaller than 0.1 m (tE:½D s½< 0.01 m;
tF:½D s½< 0.001 m).

Fig. 14. Controlled value s(t) after a set-point jump from zero to s =1 m.

controller, the SPP controller’s temporal graph of its diffe- of the fastest controller that leads to the assumption of
rence sSA(t) - s(t) is continuous. Therefore, the actuations the desired values without considerable overshoots by
FC(t) of an SPP controller are very continuous. In this considering that mL = 20 kg. Thus, the conventional
example, the actuation graph FC(t) roughly has the shape controller Cv - RC is described by the following equa-
of one sine wave. The positive force half-wave speeds up tions for the distance r and the angle of rotation j as
the sleigh towards the set-point. Afterwards, the negative functions of time:
force half-wave decreases the sleigh’s speed and guides it
FC(t) = 70Nm × (rS(t) - r(t)) - 119Nsm × v(t) -
-1 -1
to the desired position. The temporal graph of the con-
{70Nm s × r(t) - 25Ns } × w (t)
-1 2 2 2
trolling force FC(t) and, therefore, its maximum and mini- (6)
mum amounts can be well determined. Due to these pro-
MC(t) = {17.67kgm - 50kgm × r(t) + 70kg × r (t)}×
2 2
perties, the maximum amount of FC(t) and the reaction
{1s (jS(t) - j(t)) - 1.75s w(t)} +
-2 -1
speed of SPP controllers can be much larger than the ones
of conventional controllers as depicted in Figs. 13 and 14 {140kg × r(t) - 50kgm}× v(t) × w(t) (7)
and Table 2. Nevertheless, the sleigh reaches its desired
position without overshoots. Design of an SPP Robot Controller SPP-RC. The con-
ventional controller Cv-RC and the SPP controller SPP-
6. Case Study: Robot Control RC compensate for the centrifugal force and the Coriolis
We consider position control of a robot with two degrees torque of the robot. Thus, the translation dynamics con-
of freedom. The robot arm rotates on a horizontal plane troller only affects the dynamics of the robot arm trans-
around a pivot with the angular velocity w. The distance r lation, and the dynamics of the robot rotation is only
between the burden and the pivot of the robot is change- influenced by the rotation dynamics controller. As shown
able with the velocity v. Thereby, the axis of the trans- in Fig. 15, apart from the facts that the dynamics control-
lation movement runs through the pivot. The task is to lers work with a set-point pre-processor, and that the con-
control the position of the burden with the mass mL, trol algorithm is approximated by an IF controller, SPP-
which is located at the end of the robot arm, by adjusting RC has the same design as Cv-RC. The set-point pre-
the force FC and the torque MC. processor of SPP-RC calculates the internal set-point
Design of a Conventional Robot Controller Cv - RC. The graphs of the controlled values rSA(t) and jSA(t) by assu-
principle of non-linear decoupling of systems as pre- ming that the necessary actuations controlling the robot
sented in [3] is used as design principle for this control- are within the ranges of possible actuations of the control
ler. Its controlling force FC(t) and its controlling torque system. Thus, the position of the burden r(t) and j(t) is,
MC(t) are not limited. It was tried to find the parameters in principle, able to follow the internal set-point graphs.

Articles 15
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

With this example, we shall show that SPP controllers Design of IF Controllers as Execution Platforms.
exhibit excellent performance under any type of stress, The dynamics controllers and the decouplings of the
even if the technical process to be controlled is insuffi- controllers (centrifugal force and Coriolis torque) are
ciently understood when constructing the set-point pre- implemented on safety-licensable IF controllers. The rule
processor. Thereby, the following simplifications are base table controlling the translation is stored in EPROM
made: The non-linearities of the mathematical process 1, and the rule base table controlling the rotation is
model, the disturbing force FD(t) and the disturbing tor- stored in EPROM 2. A section of the rule base table in
que MD(t), and the influences of the controllers’ diffe- EPROM 1 is shown in Table 3.
rential parts on the actuations are all not considered. For the signals rSA(t) - r(t), v(t), jSA(t) - j(t) and w(t)
Thus, rSA(t) and jSA(t) have similar shapes as sSA(t) analogue-to-digital converters with unequally spaced
depicted in Fig. 11. An example of rSA(t) is shown in Fig. input intervals featuring higher precision around zero as
16. As described above, the real position of the burden is shown in Fig. 17 are selected. Due to this input interval
very close to rSA(t) and jSA(t). Hence, the burden motion spacing of the A/D converters, the EPROM storage space
is of utmost continuity. The mathematical model of the required is under the given conditions by orders of mag-
SPP robot controller SPP-RC is characterised by the nitude less than the storage space required for a control-
following equations, in which the first part each describes ler with equally spaced input intervals. The IF controller
the dynamics controller and the final product the decou- implementing SPP - RC contains two 16 bits wide 0.5
pling of the centrifugal force or of the Coriolis torque, res- Mwords EPROMs. A further effective way to reduce the
pectively: storage space required is to cascade IF controllers (rule
base tables). For instance, it is also possible to implement
FC(t)= PPr (rSA(t) - r(t)) + PDr × v(t) - SPP - RC on an IF controller with one 16 Kwords EPROM,
{70 Nm s × r(t) - 25 Ns }× w (t)
-1 2 2 2
(8) two 1 Kwords EPROMs and one 0.5 Kwords EPROM, only.
It was tried to design the best controllers by conside-
MC(t)= PPj (jSA(t) - j(t)) + PDj × w(t)+ ring that mL = 20 kg. In Table 4, we compare the perfor-
{140 kg × r(t) - 50 kgm}× v(t) × w(t) (9) mance of the conventional robot controller Cv - RC with
the one of the SPP robot controller SPP - RC under
It is both possible and essential that the constants a number of circumstances: mass of the burden mL = 20 kg
PPr, PPj, PDr and PDj of the dynamics controllers are high. (a); mL =0 kg (b); mL = 50 kg (c); mL = 20 kg by
Furthermore, meaningful values of the proportional am- considering damping due to springs (d); mL = 20 kg by
plification, e.g., PPr, and of the differential amplification, assuming coincident disturbing impulses FD(t) and
e.g., PDr, of a single dynamics controller mutually affect MD(t) (e). Performance is expressed in terms of the size
each other. These amplifications are, however, otherwise of the first overshoot r0 (j0), the time tr (tj) after which
almost freely selectable. Since the controller compensates the output error is smaller than 0.0001m (rad), and the
for the centrifugal force and the Coriolis torque of the permanent control error Dr(t=¥)(Dj(t=¥)).
robot, it is possible to design a single dynamics controller The desired actuation functions of the SPP robot
without consideration of the robot’s other degrees of controller SPP - RC are approximated by rule bases and
freedom. implemented on a safety-licensable IF controller, which
The compared controllers are optimised for simulta- works very well and shows excellent performance. This
neous set-point jumps from zero to r =0.1 m and j =1 rad. case study reveals that SPP - RC has, in addition to the
The rotation and the translation set-point jumps need ones mentioned in the Conclusion and the Introduction,
about the same build-up periods, and start at the same many advantages as compared to the conventional robot
time to provide for the most difficult case to control. It controller Cv - RC:
was tried to find the parameters of the best controller • The time after which the control error is smaller
with the properties described above. They are: PPr = 5800 than 0.0001 m after a translation set-point jump is
-1 -1
Nm , PPj = 4000 Nm, PDr = -1260 Nsm and PDj = between 4 and 8 times shorter, and the time after
-450 Nms. In this example, the proportional amplifica- which the control error is smaller than 0.0001 rad
tions of the SPP controller SPP - RC are more than 80 after a rotation set-point jump is between 6 and
times larger than the proportional amplifications of the 8 times shorter.
conventional controller Cv - RC. • A permanent force disturbing the robot arm leads

Table 3. Part of the rule base table (cause effect table) stored in EPROM 1.

16 Articles
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

Fig. 15. Principle of the SPP robot controller SPP - RC.

Fig. 16. Correction element inputs leading to a set-point jump from r(t)=0 to 0.1 m.

Articles 17
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

Fig. 17. Typical unequally spaced input intervals (e.g., angular velocity w in rads )
-1

Table 4. Behaviour after simultaneous set-point jumps from zero to rS =0.1 m and jS =1 rad (a–d), and after disturbing
impulses (100 N and 100 Nm) with the impulse width 1 s (e).

Table 5. Comparison of the properties of IF controllers and of conventional controllers.

to an about 80 times smaller control error, and MD) vanishes after an FD (MD) impulse and the
a permanent disturbing torque leads to a 200 times time after which the control error is smaller than
smaller control error. 0.0001 m (rad) is about 10 times (30 times)
• The permanent control error due to damping by shorter.
springs Dr(t=¥) is about 35 times smaller, and
Dj(t=¥) is more than 200 times smaller. 7. Conclusion
• The over-shoot after a force impulse disturbing the The major advantages of the IF controller are its inhe-
robot arm is 43 times smaller, and a disturbing rent safety and speed. Its main characteristics are input
torque impulse leads to an about 120 times smaller conditioning by analogue-to-digital converters and infe-
overshoot. Furthermore, the duration between the rence by look-up in rule tables. The controller consists of
time after which the disturbing force FD (torque a few relatively simple, industry standard hardware

18 Articles
Journal of Automation, Mobile Robotics & Intelligent Systems VOLUME 4, N° 1 2010

Table 6. Comparison of the properties of SPP and of conventional control algorithms.

modules. Hence, safety-licensing of the hardware can mathematical model of a technical process assumed in the
follow well understood and long established procedures. design of a controller is very coarse and inaccurate. The
The main task of a safety proof is to verify an implemented SPP robot controller SPP - RC described above
rule set’s correctness by inspection. This method leads combines the advantages of SPP control algorithm and IF
back in one easy step from machine code to problem spe- controller as execution platform.
cifications. For the architecture presented, the effort re-
quired to utilise inspection to safety-license control
software is by several orders of magnitude smaller than to AUTHORS
verify sequential programs running on Von Neumann com- Peter Vogrin, Wolfgang A. Halang* - Chair of Computer
puters. Owing to its simple construction and its software Engineering, Fernuniversität 58084 Hagen, Germany.
form’s utmost simplicity, the IF controller can be licensed E-mail: wolfgang.halang@fernuni-hagen.de.
for applications with the highest safety requirements, * Corresponding author
i.e., those of Safety Integrity Level 4. Working in a strictly
periodic fashion with no jitter, the controller’s real-time
behaviour is predictable in full. Its hardware operation is References
supervised by a fail-safe logic immediately initiating an [1] Fagan M.E., „Design and Code Inspection to Reduce
emergency shut-down in case of a malfunction. Thus, the Errors in Program Development”. IBM Systems Journal,
use of IF controllers for safety-related functions elimina- 1976, vol. 15, no. 3, 182-211.
tes the disadvantages due to the restrictions imposed by [2] „TÜV Cooperation Functional Safety: List of Type Appro-
the licensing authorities [2]. ved Programmable Electronic Systems (PES, PLCs)”,
Basically, it is possible to approximate any control 2008, http://www.tuv-fs.com.
algorithm to any sufficient precision and with reasonable [3] Hoyer H., Freund E., „The Principle of Non-linear Deco-
effort by a rule-based one. In general, the better the upling of Systems with Application to Industrial Ro-
approximation and the larger the number of inputs are the bots”. Regelungstechnische Praxis rtp, 22, 1980, pp. 80-
higher is the EPROM capacity needed in an executing IF 87 and pp. 116-126.
controller, which may be very large. In many practical [4] „International Standard IEC 61508-1: Functional Safety
cases and especially if the structure of an IF controller is of Electrical/Electronic/Programmable Electronic Sys-
customised to the mathematical model of a given control tems: Generic Aspects - Part 1: General Requirements”.
system, however, the memory requirements for the corres- Geneva: International Electrotechnical Commission
ponding rule base table often become surprisingly small. 1998.
Therefore, difficult control tasks can very easily and trans- [5] Krebs H., Haspel U., „Ein Verfahren zur Software-Verifi-
parently be solved by IF controllers. Table 5 summarises kation”. Regelungstechnische Praxis rtp, 1984, 26, pp.
the benefits achieved with them. A prototype of an IF 73-78.
controller with a 64 Kword EPROM was built. It is cheap
and small, and runs very fast with a loop execution time of
800 ns. As controllers often need to provide certain
functions such as timers, counters, internal storage as
well as digital and analogue inputs and outputs, a range
of such modules was implemented which can be plugged
into the prototype.
The approach of set-point pre-processors makes use of
an advanced mathematical control algorithm. As descri-
bed above and in Table 6, the use of SPP control normally
leads to essential performance improvements, even if the

Articles 19

You might also like