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 basic functions - 15.18<br />

CMP<br />

expression<br />

int_3 = int_2<br />

CMP<br />

expression<br />

int_3 int_2<br />

CMP<br />

expression<br />

int_3 < int_2<br />

CMP<br />

expression<br />

int_3 int_2<br />

CMP<br />

expression<br />

int_3 >= int_2<br />

O_0<br />

O_1<br />

O_2<br />

O_3<br />

O_4<br />

O_5<br />

Figure 15.17<br />

Equivalent Statements Using CMP Statements<br />

Expressions can also be used to do more complex comparisons, as shown in Figure<br />

15.18. The expression will determine if B is between A <strong>and</strong> C.<br />

CMP<br />

expression<br />

(B > A) & (B < C)<br />

X<br />

Figure 15.18<br />

A More Complex Comparison Expression<br />

The LIM <strong>and</strong> MEQ functions are shown in Figure 15.19. The first three functions<br />

will compare a test value to high <strong>and</strong> low limits. If the high limit is above the low limit <strong>and</strong><br />

the test value is between or equal to one limit, then it will be true. If the low limit is above<br />

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

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

Saved successfully!

Ooh no, something went wrong!