Hello sourena;
A TS adapter is basically used to connect to the PLC's MPI port through a modem, to program them over a telephone line, for remote applications. There is a software required for this, called Teleservice, that must be installed in the programming PC, where Step 7 resides.
Now, if you have the Teleservice bundle installed, you can force the TS Adapter to act as a PC adapter, for a direct connection to the PLC without a modem. See the link I gave on the following post:
http://www.plctalk.net/qanda/showthread.php?t=33634&highlight=adapter
Also, if the TS adapter's MPI side is connected piggy-back on the Profibus-DP network, the it was probably used to program any of the 3 PLCs that can be accessed over that network (search for the expression "routing" on Siemens support website. It refers to the possibility of using S7-functions (programming/monitoring) over other networks, such as profibus and Industrial Ethernet). So the original project must have had all 3 CPUs included iinside.
If you do not have tyhis project, then the best you can do is connect the TS adapter to each PLC MPI port, and upload the program from each one on a separate project (if not, MPI addresses might be the same, which will cause problems).
Note that an upload without an original program will not give you the symbols and documentation of the project, just the absolute address of every rung. Very difficult to follow.
There is one possibility. The CPUs you have seem to be recent, at least the 313C-2DP and the 317-2DP, so they must have a MMC card slotted on the CPU. If the MMC is large enough (in memory size) and if the original programmer has been thoughtful enough to do it, he may have saved a complete project, as an archive, on the MMC. This can be retrieved while online, can be opened by Step 7 and will give you all the required info.
Hope this helps,
Daniel Chartier