You use the CP340/341 configuration package.
Follow the steps below:
Properties - CP > Basic Parameters
Clicking the Parameters" button (single click) opens the protocol selection interface "Assigning Parameters to Point-To-Point Connections". Here you can select the required transmission protocol.
After selecting the protocol you can carry out the Parameter Assignment of the Driver. Start by double-clicking the letter symbol.
To download the Modbus driver, you have to have an online connection to the CPU (you don't connect to the CP341):
1.Select the desired loadable driver in the "Protocol" drop-down list in the "Assigning Parameters to Point-to-Point Connection" window.
2.Click the "Load drivers" icon.
In the "Load drivers to CP341" window, you see the driver version loaded online on the module and the driver version you have selected offline on the programming device.
3.Click the "Load drivers" button and confirm with "Yes".
The driver will be loaded to the CP 341.
After loading is complete, the information "Driver version online on the module" will be updated.
If the driver you have loaded is already located on the CP 341, the loading operation will be canceled with the message "Driver already exists". In this case, confirm with "OK" and close the "Download Drivers to CP341" window.
If the Parameters button is greyed out, you have to download the CP341 configuration package.
http://support.industry.siemens.com/cs/document/27013524/download-cd-cp340-cp341-cp440-cp441?dti=0&pnid=13807&lc=en-CA