A very useful post from the Blog of DMC Inc. if you use one of the latest Siemens PLCs (1200, 1500).
These three hints will make your life a lot easier:
This article gives advise on how to configure your PLC to startup in RUN mode, with a Webserver and how to not get locked out from the HMI.
Enjoy!