
 
 
In order to avoid these possible incidents, we use 
the Supervised Control Theory. The framework we 
propose allows modelling one or more specifications 
which guarantee that the system behaves properly at 
all times. This is achieved by temporarily disabling 
the input events which could put the system at risk. 
Our framework also differentiates between the 
specifications and the functionality provided. Thus, 
it is possible to modify both parts independently.   
 
Figure 3: State transition diagram for H
1
. 
 
To prove the main features of our framework, 
some implementation issues must be solved, due to 
the synchronous nature of PLC. 
ACKNOWLEDGEMENTS 
Figure 4: State transition diagram for H
2
. 
In order to implement the supervisor system 
(Figure 5), we have followed the proposed 
framework, taking into account G, H
1
 and H
2
 
defined previously.  
The results presented at this paper have been 
obtained from the tasks of research that have been 
partially supported by the Spanish Ministery of 
Science and Innovation through DPI2007-62267 
proposal and by the Castilla y León Council with 
SA030A07 project. 
 
 
REFERENCES 
Beck, J., Reagin, M., Sweeny, T., Anderson, R., Garner, 
T. 2000. Applying a Component-Based Software 
Architecture to Robotic Workcell Applications. In 
IEEE Transactions in Robotics and Automation, vol. 
16, pp. 207-217. 
Curto, B., García, F. J., Moreno, V., González, J., Moreno, 
A., 2001. Experience of a CORBA based architecture 
for Computer Integrated Manufacturing. In ETFA’01, 
8th IEEE International Conference on Emerging 
Technologies and Factory Automation
, pp 765-769. 
Figure 5: Implemented Supervisor System. 
5 CONCLUSIONS 
Ramadge, P. J., Wonham, W. M., 1987. Supervisory 
Control of a Class of Discrete Event Processes. In 
SIAM J. Control and Optimization, vol. 25, no. 1, pp. 
206-230. 
In this paper we propose a software framework 
where the main aim is to make easier the 
implementation of a supervisory control system over 
a PLC. With this framework we want to emphasize 
on the idea that the functionalities must be offered 
with no effects on the robustness of the system 
operation. 
Chandra, V., Mohanty, S. R., Kumar, R., 2000. Automated 
control synthesis for an assembly line using discrete 
event system control theory. In IEEE Transactions on 
Robotics and Automation.
 
Mušić, G., Matko, D., 2002. Discrete Event Control 
Theory Applied to PLC Programming. In 
AUTOMATIKA: Journal for Control, Measurement, 
Electronics, Computing and Communications
, vol. 43 
no. 1-2. 
The system can be viewed as a well defined set 
of services which are requested depending on the 
production needs. Changes in the production process 
can affect the order in which the services are 
requested but not their implementation.  
Phoha, V. V., Nadgar, A., Ray, A., Phoha, S., 2004. 
Supervisory Control of Software Systems. In 
IEEE 
Transactions on Computer
, vol.53, nº9. 
On the other hand, the flexibility obtained must 
have nothing to do with the robustness demanded by 
this kind of systems. Therefore we take into account 
the possibility that certain event sequences could put 
at risk the good working order of the system.  
Cassandrass, C. G., Lafortune, S., 2007. Introduction to 
Discrete Event Systems, Springer, 2
nd
 edition. 
APPLYING A SOFTWARE FRAMEWORK FOR SUPERVISORY CONTROL OF A PLC-BASED DISCRETE EVENT
SYSTEM
267