I guess you already know how to use TLServer to change the ID. That is performed in a PC and does not require any DIP switch.
If you have spare inputs to be connected to a DIP switch (or other switches) it is possible for the PLC with firmware revision of r50 to set its own ID using the SETSYSTEM 8, n. So you need to read the DIP switch data and convert into ID = n and then use the above statement to change the PLC ID.
Please note that this function will not work on PLC with older firmware revision.