RS232 Serial Communications

Glossary of Terms used in RS232 Serial Communications

General Notes on Serial Communications

Example Cable Diagrams

Control Characters


Serial ports on PC's come in 2 sizes, older PC's had one 25 way and one 9 way, more modern computers tend to have two 9 way ports.
The pin assignments for the two types are detailed here, only the relevant pins are shown.

9 way
1DCDData Carrier DetectIn
2RXReceiveIn
3TXTransmitOut
4DTRData Terminal ReadyOut
5SGSignal Ground
6DSRData Set ReadyIn
7RTS Ready To SendOut
8CTSClear To SendIn

25 way
1FGFrame Ground
2TXTransmitOut
3RXReceiveIn
4RTSReady To SendOut
5CTSClear To SendIn
6DSRData Set ReadyIn
7SGSignal Ground
8DCDData Carrier DetectIn
20DTRData Terminal ReadyOut

Pin assignments on CNC machines vary depending on how the machine builder was feeling on the day, read the appropriate machine documentation to discover their secrets.



Frame Ground

This should be connected to the cable shield at one end. (Also see the note on frame ground)



Signal Ground

The signal ground is the common between the two devices and must always be connected together.



Transmit / Receive

The transmit and receive lines are the actual data lines, the transmit should be connected to the receive and the receive should be connected to the transmit. (Also see the note on line length)



RTS/CTS -- Ready To Send / Clear To Send

RTS & CTS are a pair of flow control wires, when the receiving machine wants to stop the flow of data it changes the RTS line, when it is again able to receive data it reverts the RTS line back to its original state.
Sometimes the RTS and CTS lines are connected together to effectively switch off this handshaking.


Home