|
It would be unusual for most of these pins to be connected in any one application. The most common pins are provided on the DB-9 connector, and are also described below.
TXD/RXD -(transmit data, receive data) -data lines DCD -(data carrier detect) -this indicates when a remote device is present
plc serial -27.8
RI -(ring indicator) -this is used by modems to indicate when a connection is
about to be made. CTS/RTS -(clear to send, ready to send) DSR/DTR -(data set ready, data terminal ready) these handshaking lines indicate
when the remote machine is ready to receive data. COM -a common ground to provide a common reference voltage for the TXD and RXD.
When a computer is ready to receive data it will set the CTS bit, the remote machine will notice this on the RTS pin. The DSR pin is similar in that it indicates the modem is ready to transmit data. XON and XOFF characters are used for a software only flow control scheme.
Many PLC processors have an RS-232 port that is normally used for programming the PLC. Figure 27.6 shows a PLC-5 processor connected to a personal computer with a Null-Modem line. It is connected to the channel 0 serial connector on the PLC-5 processor, and to the com 1 port on the computer. In this example the terminal could be a personal computer running a terminal emulation program. The ladder logic below will send a string to the serial port channel 0 when A goes true. BACK | NEXT Easy Access To All Pages 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|