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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

plc states - 12.18<br />

Defined state variables:<br />

ST1 = state 1 - green NS<br />

ST2<br />

ST3<br />

ST4<br />

=<br />

=<br />

=<br />

state 2 - yellow NS<br />

state 3 - green EW<br />

state 4 - yellow EW<br />

The state entrance <strong>and</strong> exit condition equations:<br />

ST1 = ( ST1 + ST4 ⋅ TON 2 ( ST4,<br />

4s)<br />

) ⋅ ST1 ⋅ S1 ⋅S2<br />

+ FS<br />

ST2 = ( ST2 + ST1 ⋅ S1 ⋅ S2) ⋅ ST2 ⋅ TON 1<br />

( ST2,<br />

4s)<br />

ST3 = ( ST3 + ST2 ⋅ TON 1<br />

( ST2,<br />

4s)<br />

) ⋅ ST3 ⋅S1 ⋅S2<br />

ST4 = ( ST4 + ST3 ⋅ S1 ⋅ S2) ⋅ ST4 ⋅ TON 2<br />

( ST4,<br />

4s)<br />

Note: Timers are represented in these equations in the form TONi(A, delay). TON indicates<br />

that it is an on-delay timer, A is the input to the timer, <strong>and</strong> delay is the timer<br />

delay value. The subscript i is used to differentiate timers.<br />

Figure 12.20<br />

State Equations for the Traffic Light Example<br />

The equations in Figure 12.20 cannot be implemented in ladder logic because of<br />

the NOT over the last terms. The equations are simplified in Figure 12.21 so that all NOT<br />

operators are only over a single variable.<br />

www.PA<strong>Control</strong>.com

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

Saved successfully!

Ooh no, something went wrong!