Figure 3: Sorting system from FACTORY I/O.
The descriptions of sensors, actuators and safety
constraints used for this example are presented in the
previous paper (Pichard et al., 2016).
The control algorithm based on CSP has been
successfully implemented in a real M340 PLC. The
connection between the PLC and FACTORY I/O is
performed using USB I/O DAQ (cf. Figure 4). With
this device, the PLC does not see difference between
real and virtual plant.
We did not have any problem with time
calculation and a scan time of 5 ms was respected for
the PLC. In this example, with the functional part of
the controller, the maximum Hamming distance is 2,
and the time to execute the SAT solver algorithm is
always less than 1 ms.
Figure 4: Experimental platform with M340 PLC,
FACTORY I/O and USB DAQ Advantech 4750.
6 CONCLUSION
This paper has proposed an implementation of a safe
control synthesis method based on the use of safety
guards (represented as a set of logical constraints
which can be simple or combined) with a SAT solver
developed in ST (Structured Text) compliant with the
IEC 61131-3 standard for PLC. This approach to PLC
programming makes safety a priority and allows for a
controller to create a safe environment where
functional and safety aspects are clearly separated.
The algorithm has been successfully tested with a real
M340 PLC and a virtual sorting system. The
controller code is efficient. However, even if the
controller is safe, it is not deterministic and it has to
be proved that the minimum Hamming distance
compared to the functional output vector is suitable in
the sense of the specification of the functional control.
It seems to be the first time that, a controller based on
the use in real time of a SAT solver, is implemented
in a real PLC. Even if the idea of using a SAT solver
in a PLC presents several advantages, the proposed
control methodology is very different from the
“traditional” way to design controllers of the
automated production system. However, it seems
interesting to the control of cyber physical systems
(CPS) in the framework of Industry 4.0.
REFERENCES
Behrmann, G., Bengtsson, J., David, A., Larsen, K.-G.,
Pettersson, P., Yi, W., 2002. Uppaal implementation
secrets. 7th International Symposium on Formal
Techniques in Real-Time and Fault Tolerant Systems.
In Springer, Verlag London, UK 2002: 3-22.
Cameron, P. J. Combinatorics: Topics, Techniques,
Algorithms. Cambridge University Press, 1994
(reprinted 1996). ISBN 0521457610.
Cassandras C. G., Lafortune S. (1999). Introduction to
discrete event systems. Boston, MA: Kluwer Academic
Publishers.
Hooker J (2000). Logic-Based Methods for Optimization -
Combining Optimization and Constraint Satisfaction.
Wiley-Interscience series in discrete mathematics and
optimization. John Wiley and Sons, 2000.
IEC INTERNATIONAL STANDARD 61131-3 (2003).
Programmable controllers – Part 3: Programming
languages. Reference number CEI/IEC 61131-3: 2003.
Krzysztof A. (2003). Principles of Constraint
Programming. Cambridge University Press, ISBN:
0521825830, New York, NY, USA.
Marangé P., Benlorhfar R., Gellot F., Riera B. (2010).
Prevention of human control errors by robust filter for
manufacturing system, 11th IFAC/IFIP/IFORS/IEA
Symposium on Analysis, Design, and Evaluation of
Human-Machine Systems, Valenciennes, France.
Pichard, R., Rabah, N. B., Carre-Menetrier, V., & Riera, B.
(2016). CSP solver for Safe PLC Controller:
Application to manufacturing systems. IFAC-
PapersOnLine, 49(12), 402-407.
Pichard, R., Philippot, A., & Riera, B. (2017). Consistency
Checking of Safety Constraints for Manufacturing
Systems with Graph Analysis. IFAC-PapersOnLine,
50(1), 1193-1198.
Pichard, R., Philippot, A., Saddem, R., & Riera, B. (2018).
Safety of Manufacturing Systems Controllers by
Logical Constraints with Safety Filter. IEEE
Transactions on Control Systems Technology.
Riera B., Philippot A., Coupat R., Gellot F., Annebicque D.
(2015). A non-intrusive method to make safe existing