080402-0712 EST USA
iwire:
To avoid confusing I never refer to a termination as DTE or DCE. Rather I only think in terms of whether a signal is a transmitter or receiver (source or destination). Internally in the equipment is a UART (Univeral Asynchronous Receiver and Transmitter) and it will have pins labeled TxD (transmit) and RxD (receive). One always connects a transmitter to a receiver.
The signal definitions for DTE are what I use. That is TxD is transmit, and RxD is receive.
Many CNC machines are wired as DTE pinouts. HAAS and Fanuc in particular. Computers are also wired as DTE pinouts.
HAAS and Fanuc use a 25 pin Female chassis connector. Pin 2 is TxD, pin 3 is RxD, and pin 7 is signal common. Chassis common is pin 1 and would normally be connected to a cable shield. Pin 1 and 7 may be directly connected together in the CNC or computer, but in the case of HAAS there is a 100 ohm resistor between pin 7 and the internal common of the machine which is also machine chassis.
IBM compatible PCs with a 25 pin serial connector are classified as DTE and pin 2 is TxD and pin 3 is RxD, but the connector on the computer is male. To connect the 25 pin PC to the 25 pin CNC you cross over pins 2 and 3 so that PC TxD goes to CNC RxD and PC RxD comes from CNC TxD.
IBM with a 9 pin male chassis connector for serial communication is also classified as DTE and pin 2 is RxD, pin 3 is TxD, and pin 5 is signal common. There is no separate pin for chassis common. In virtually all non-isolated 9 pin connections pin 5 will go directly to the computer chassis. This also means to the equipment grounding wire in the AC power cable. Connection between HAAS or Fanuc and IBM 9 pin connector will have pin 2 to 2 and 3 to 3 and 7 on CNC to 5 on IBM.
With any modern CNC machine you must use some form of handshaking -- hardware (usually RTS- CTS is the primary handshake) (requires more than 3 wires), or software ( XON/XOFF, DC codes, Xmodem) (requires only 3 wires). Handshaking is used to modulate the flow of data from the source to destination. Primary need is for drip feeding (DNC) to a CNC machine.
With a voltmeter you can generally tell which pins on an RS232 connector are outputs.
Generally for a directly connected RS232 link cable length is approximately inversely proportional to baud rate.
I believe the bigest problem with directly connected RS232 ports is ground path noise because it is additive to the data signal.
For some more information see my web site
www.beta-a2.com .
.