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 karnaugh - 7.3<br />

expression.<br />

The patterns can then be converted into a Boolean equation. This is done by first<br />

observing that all of the patterns sit in the third row, therefore the expression will be<br />

ANDed with SQ. Next there are two patterns in the second row, one has M as the common<br />

term, the second has W as the common term. These can now be combined into the equation.<br />

Finally the equation is converted to ladder logic.<br />

Step 4: Look for patterns in the map<br />

S Q<br />

SQ<br />

SQ<br />

SQ<br />

M W MW MW MW<br />

1 1 1<br />

Step 5: Write the equation using the patterns<br />

Misthecommonterm<br />

all are in row SQ<br />

W is the common term<br />

A = S ⋅Q ⋅( M+<br />

W)<br />

Step 6: Convert the equation into ladder logic<br />

M S Q A<br />

W<br />

Figure 7.3<br />

Recognition of the Boolean Equation from the Karnaugh Map<br />

Karnaugh maps are an alternative method to simplifying equations with Boolean<br />

algebra. It is well suited to visual learners, <strong>and</strong> is an excellent way to verify Boolean algebra<br />

calculations. The example shown was for four variables, thus giving two variables for<br />

the rows <strong>and</strong> two variables for the columns. More variables can also be used. If there were<br />

five input variables there could be three variables used for the rows or columns with the<br />

pattern 000, 001, 011, 010, 110, 111, 101, 100. If there is more than one output, a Karnaugh<br />

map is needed for each output.

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

Saved successfully!

Ooh no, something went wrong!