02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Pin 8 – Data carrier detect (DCD)<br />

Fundamentals of <strong>SCADA</strong> communications 39<br />

This is also called the received line signal detector. Pin 8 is asserted by the modem when<br />

it receives a remote carrier <strong>and</strong> remains asserted for the duration of the link.<br />

Pin 20 – DTE ready (or data terminal ready)<br />

DTE ready enables, but does not cause, the modem to switch onto the line. In originate<br />

mode, DTE ready must be asserted in order to auto dial. In answer mode, DTE ready must<br />

be asserted to auto answer.<br />

Pin 22 – Ring indicator<br />

This pin is asserted during a ring on the line.<br />

Pin 23 – Data signal rate selector (DSRS)<br />

When two data rates are possible, the higher is selected by asserting pin 23.<br />

2.7.5 The sequence of asynchronous operation of the RS-232 interface<br />

Asynchronous operation is arguably the more common approach when using RS-232 <strong>and</strong><br />

will be examined in this section using the more complex half-duplex data interchange.<br />

It should be noted that the half-duplex description is given as it encompasses that of<br />

full-duplex operation.<br />

Figure 2.23 gives a graphical description of the operation with the initiating user<br />

terminal (or DTE) <strong>and</strong> its associated modem (or DCE) on the left of the diagram <strong>and</strong> the<br />

remote computer <strong>and</strong> its modem on the right.<br />

The following sequence of steps occur:<br />

• The initiating user manually dials the number of the remote computer<br />

• The receiving modem asserts the ring indicator line (RI – pin 22) in a pulsed<br />

ON/OFF fashion as per the ringing tone. The remote computer already has its<br />

data terminal ready line (or DTR – pin 20) asserted to indicate that it is ready<br />

to receive calls. (Alternatively the remote computer may assert the DTR<br />

line after a few rings.) The remote computer then sets its request to send line<br />

(RTS – pin 4) to ON<br />

• The receiving modem then answers the telephone <strong>and</strong> transmits a carrier<br />

signal to the initiating end. It also asserts the DCE ready (DSR – pin 6) after<br />

a few seconds<br />

• The initiating modem then asserts the data carrier detect line (DCD – pin 8).<br />

The initiating terminal asserts its DTR (if it is not already high). The modem<br />

then responds by asserting its data set ready line (DSR – pin 6)<br />

• The receiving modem then asserts its clear to send line (CTS – pin 5) which<br />

permits the transfer of data from the remote computer to the initiating side<br />

• Data is then transferred from the receiving DTE on pin 2 (transmitted data) to<br />

the receiving modem. The receiving remote computer can then transmit<br />

a short message to indicate to the originating terminal that it can proceed with<br />

the data transfer. The originating modem transmits the data to the originating<br />

terminal on pin 3

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

Saved successfully!

Ooh no, something went wrong!