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 serial - 27.5<br />

transmission a copy of any byte received is sent back to the sender to verify that it was<br />

sent <strong>and</strong> received correctly. (Note: if you type <strong>and</strong> nothing shows up on a screen, or characters<br />

show up twice you may have to change the half/full duplex setting.)<br />

The transmission speed is the maximum number of bits that can be sent per second.<br />

The units for this is baud. The baud rate includes the start, parity <strong>and</strong> stop bits. For<br />

example a 9600 baud transmission of the data in Figure 27.3 would transfer up to<br />

9600<br />

bytes each second. Lower baud rates are 120, 300, 1.2K, 2.4K <strong>and</strong><br />

( ----------------------------------- =<br />

1 + 8+ 1+<br />

2)<br />

800<br />

9.6K. Higher speeds are 19.2K, 28.8K <strong>and</strong> 33.3K. (Note: When this is set improperly you<br />

will get many transmission errors, or garbage on your screen.)<br />

Serial lines have become one of the most common methods for transmitting data to<br />

instruments: most personal computers have two serial ports. The previous discussion of<br />

serial communications techniques also applies to devices such as modems.<br />

27.2.1 RS-232<br />

The RS-232c st<strong>and</strong>ard is based on a low/false voltage between +3 to +15V, <strong>and</strong> an<br />

high/true voltage between -3 to -15V (+/-12V is commonly used). Figure 27.4 shows<br />

some of the common connection schemes. In all methods the txd <strong>and</strong> rxd lines are crossed<br />

so that the sending txd outputs are into the listening rxd inputs when communicating<br />

between computers. When communicating with a communication device (modem), these<br />

lines are not crossed. In the modem connection the dsr <strong>and</strong> dtr lines are used to control the<br />

flow of data. In the computer the cts <strong>and</strong> rts lines are connected. These lines are all used<br />

for h<strong>and</strong>shaking, to control the flow of data from sender to receiver. The null-modem configuration<br />

simplifies the h<strong>and</strong>shaking between computers. The three wire configuration is<br />

a crude way to connect to devices, <strong>and</strong> data can be lost.<br />

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

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

Saved successfully!

Ooh no, something went wrong!