The diagram below shows the loop-back connections to use with RS-232.
The diagram below shows the loop-back connections to use with RS-422 or RS-485.