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 numbers - 13.5<br />

shown in Figure 13.5. Notice that on both numbers the least significant digit is on the right<br />

h<strong>and</strong> side of the numbers. And, in the word there are two bytes, <strong>and</strong> the right h<strong>and</strong> one is<br />

the least significant byte.<br />

BYTE<br />

WORD<br />

MSB<br />

LSB<br />

MSB<br />

LSB<br />

0110 1011<br />

0110 1011 0100 0010<br />

most<br />

significant<br />

byte<br />

least<br />

significant<br />

byte<br />

Figure 13.5<br />

Bytes <strong>and</strong> Words<br />

Binary numbers can also represent fractions, as shown in Figure 13.6. The conversion<br />

to <strong>and</strong> from binary is identical to the previous techniques, except that for values to the<br />

right of the decimal the equivalents are fractions.<br />

binary:<br />

101.011<br />

12 ( 2 ) = 4 0( 2 1 ) = 0 1( 2 0 ) = 1 0( 2 – 1 ) = 0 12 ( – 2 )<br />

1<br />

= -- 1( 2 – 3 )<br />

4<br />

=<br />

1<br />

--<br />

8<br />

1<br />

4 0 1 0 --<br />

1<br />

= + + + + + -- = 5.375<br />

4 8<br />

decimal<br />

Figure 13.6<br />

A Binary Decimal Number<br />

13.2.1.1 - Boolean Operations<br />

In the next chapter you will learn that entire blocks of inputs <strong>and</strong> outputs can be<br />

used as a single binary number (typically a word). Each bit of the number would correspond<br />

to an output or input as shown in Figure 13.7.

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

Saved successfully!

Ooh no, something went wrong!