31.01.2014 Views

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.6. Dynamic Semantics for the Cyclic Execution<br />

It has to be acknowledged that not for all objects with outputs those cannot be calculated in<br />

parallel for the dynamic semantics of a gMainFunctionBlock and gSubFunctionBlock graph.<br />

Furthermore, it is meaningful if first the outputs are calculated, which then are used as inputs<br />

for other objects. In a simple chain or rather an open loop [30], the first element can easily be<br />

identified at the beginning of the open loop. Figure 7.13 shows a simple example for an open<br />

loop. In this example, in every execution step k the outputs are calculated in the following<br />

Sensor Controller Actuator<br />

Figure 7.13.: Simple example of an open loop<br />

or<strong>der</strong>:<br />

1. Sensor<br />

2. Controller<br />

3. Actuator<br />

Also, the definition for closed loops is possible if they still have a “start” element, which normally<br />

only have outputs as in Figure 7.14.<br />

Sensor + Controller<br />

-<br />

Actuator<br />

Figure 7.14.: Simple example of an closed loop<br />

Similar to the open loop example the execution or<strong>der</strong> is accordingly:<br />

1. Sensor<br />

2. Sum (“+”)<br />

3. Controller<br />

4. Actuator<br />

When the Sum is calculated, the new output of the Controller is not yet available. Hence,<br />

for such feedback flows the last output value is taken. In other words, the negative input<br />

of the Sum is in calculation k the output of the Actuator in calculation 14 k − 1. This also<br />

demonstrat<strong>es</strong> that it is nec<strong>es</strong>sary that all data flow elements must have initial output valu<strong>es</strong> if<br />

they have outputs to avoid undefined calculation r<strong>es</strong>ults for k = 0.<br />

In rare cas<strong>es</strong>, it also may occur that a closed loop do<strong>es</strong> not have a beginning or ending<br />

element. For example, Figure 7.14 without the Sensor. Then the starting element would be<br />

once chosen arbitrarily.<br />

14 Although in the openETCS meta model actuators do not have outputs, here it is used for simplification.<br />

109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!