09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

6.2 System signals<br />

An output can be set to one or zero from within the program. This can also be done using<br />

a delay or in the form of a pulse. If a pulse or a delayed change is ordered for an output,<br />

program execution continues. The change is then carried out without affecting the rest<br />

of the program execution. If, on the other hand, a new change is ordered for the same<br />

output before the given time elapses, the first change is not carried out (see Figure 39).<br />

1<br />

Figure 39 The instruction SetDO is not carried out at all because a new command is given before<br />

the time delay has elapsed.<br />

Logical signals can be interconnected by means of special system functions. If, for<br />

example, an input is connected to the system function Start, a program start is<br />

automatically generated as soon as this input is enabled. These system functions are<br />

generally only enabled in automatic mode. For more information, see Chapter 9,<br />

System Parameters, or the chapter on Installation and Commissioning - PLC<br />

Communication in the Product Manual.<br />

6.3 Cross connections<br />

SetDO \SDelay:=1, do1;<br />

WaitTime 0.5;<br />

PulseDO do1;<br />

Signal value<br />

0 0.5 1<br />

Time<br />

Digital signals can be interconnected in such a way that they automatically affect one<br />

another:<br />

- An output signal can be connected to one or more input or output signals.<br />

- An input signal can be connected to one or more input or output signals.<br />

- If the same signal is used in several cross connections, the value of that signal<br />

is the same as the value that was last enabled (changed).<br />

- Cross connections can be interlinked, in other words, one cross connection can<br />

affect another. They must not, however, be connected in such a way so as to<br />

form a ”vicious circle”, e.g. cross-connecting di1 to di2 whilst di2 is crossconnected<br />

to di1.<br />

- If there is a cross connection on an input signal, the corresponding physical<br />

connection is automatically disabled. Any changes to that physical channel will<br />

thus not be detected.<br />

<strong>RAPID</strong> Reference Manual 6-39

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

Saved successfully!

Ooh no, something went wrong!