12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

plc timers - 9.5<br />

I/0<br />

O/0<br />

I/0<br />

O/1<br />

L<br />

I/1<br />

O/1<br />

U<br />

I/0<br />

O/2<br />

I/1<br />

O/2<br />

I/0<br />

I/1<br />

O/0<br />

O/1<br />

O/2<br />

Figure 9.5<br />

A Latch Example<br />

A normal output should only appear once in ladder logic, but latch <strong>and</strong> unlatch<br />

instructions may appear multiple times. In Figure 9.5 a normal output O/2 is repeated<br />

twice. When the program runs it will examine the fourth line <strong>and</strong> change the value of O/2<br />

in memory (remember the output scan does not occur until the ladder scan is done.) The<br />

last line is then interpreted <strong>and</strong> it overwrites the value of O/2. Basically, only the last line<br />

will change O/2.<br />

Latches are not used universally by all PLC vendors, others such as Siemens use

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

Saved successfully!

Ooh no, something went wrong!