Grounding the Shield at both ends (both devices) can lead to Ground Loops. A Ground Loop can occur when any two devices are grounded in Different Places, or if one device is not grounded well enough. For example, you may experience a ground loop when you connect a PC and a CNC control together with a serial data cable, if the CNC machine has a ground stake driven through the shop floor, and your Personal Computer is grounded to the ac wall socket, or if one device is not grounded well enough. The ground loop occurs when there is a different electrical potential between the Grounds of the two devices. This results in an electrical current being conducted through the data cable. and can burn out the IC chips that send and receive the RS232 serial signals, if the difference in potential is greater than about 30 volts. Accordingly, unless good grounding to the same ground can be assured for both devices, its recommended to ground the shield at the CNC end only.
Cable length is highly dependent on the Baud Rate being used, with the Standard being based on a capacitance of 50 pF/foot to allow maximum communication speed of 19200 to occur. If speed is reduced by a factor 2 or 4, the maximum length increases dramatically, as shown in figures obtained by test done by Texas Instruments years ago.
Using a cable with low capacitance allows you to span longer distances without going beyond the limitations of the standard. For example, a cable with a capacitance of 17 pF/ft will allow a maximum cable length of 147 feet (2500pF/17) at maximum speed.
Baud Rate ---- Cable Length
19200 ---------- 50
9600 ------------ 500
4800 ------------ 1000
2400 ------------ 3000
Regards,
Bill