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 advanced functions - 16.23<br />

S2:1/15 - first scan<br />

L<br />

B3/1 - STB<br />

U<br />

B3/0 - STA<br />

U<br />

B3/2 - STC<br />

B3/0 - STA<br />

B3/1 - STB<br />

B3/2 - STC<br />

JSR<br />

program 3<br />

JSR<br />

program 4<br />

JSR<br />

program 5<br />

B3/0 - STA<br />

B3/1 - STB<br />

B3/2 - STC<br />

L<br />

L<br />

L<br />

O:000/0<br />

O:000/1<br />

O:000/2<br />

Figure 16.24 The Main Program for the State Diagram (Program File 2)<br />

The ladder logic for each of the state subroutines is shown in Figure 16.25. These<br />

blocks of logic examine the transitions <strong>and</strong> change states as required. Note that state STB<br />

includes logic to give state C higher priority, by blocking A when C is active.

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

Saved successfully!

Ooh no, something went wrong!