×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 19249315, Entry date: 03/31/2017
(3)
Rate

How do you avoid synchronization problems with WinCC Autostart?

  • Entry
  • Associated product(s)
In some special cases, depending on the configuration of your system, there might be synchronization problems when starting WinCC and other applications. You avoid this by delaying the start of WinCC.

Instructions
This FAQ response describes a procedure for delaying the autostart of WinCC using the Task Scheduler in Windows.
If you are using SIMATIC NET together with WinCC up to V7.3, follow the instructions in Entry 23061262.

Note
This FAQ response has been tested only for server/single-user systems.

No.Description
1

In the Start menu you call the "AutoStart Configuration" of WinCC via "All Programs > Siemens Automation > SIMATIC > WinCC > Autostart".



Fig. 01
2
  • Select the WinCC project that is to be started automatically.
  • Select the "Autostart active" option.
  • Select the "Activate project at startup" option.
  • As required, select the "Allow "Cancel" during activation" option.
  • Click the "OK" button to close the dialog window.



Fig. 02
3
  • Open the "Run" dialog of the operating system via the key combination <Win> + <R>.
  • Enter the "regedit" command.
  • Click the "OK" button to close the dialog window.



Fig. 03
4

Confirm any dialog displayed about user account control with "Yes".


Fig. 04
5
  • In the opened "Registry Editor" you navigate to the path "Computer > HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > Microsoft > Windows > CurrentVersion > Run".
  • Via the item "AutoStartWinCCRT" you open the pop-up menu and select "Modify...".



Fig. 05
6
  • Copy the value of the code to the clipboard via the key combination <Ctrl> + <C>.
  • Click the "Cancel" button to close the dialog window.
  • lose the Registry editor.



Fig. 06
7

Create a new text document and copy the value of the code from the clipboard into the opened text document via the key combination <Ctrl> + <V>.

Note

Further information about the parameters of the batch is available after this table.



Fig. 07
8
  • Rename the text document to AutoStart.bat.
  • Confirm the change of the file name extension by clicking the "Yes" button.



Fig. 08
9

In the Start menu you call the "Task Scheduler" via "All Programs > Accessories > System Tools".



Fig. 09
10

In the "Actions" menu you select "Create Task...".



Fig. 10
11
  • In the "General" tab you assign a name for the task.
  • Select the "Run with highest privileges" option.



Fig. 11
12

In the "Triggers" tab you select a new trigger with the "New..." button.



Fig. 12
13
  • In the trigger properties for "Begin the tasks" you select "At startup".
  • Under "Advanced settings" you select the option "Delay task for:".
  • In the drop-down list box you select "15 minutes".
  • Overwrite the value "15" with the value with which you want to delay the autostart, "5", for example.
  • Close the "New Trigger" window with the "OK" button.



Fig. 13
14

In the "Actions" tab you create a new with the "New..." button.



Fig. 14
15
  • In the "New Action" window for "Action" you select "Start a program".
  • With the "Browse..." button you open the "File Selection" dialog.



Fig. 15
16
  • Select the batch file "AutoStart.bat" with the value code.
  • Close the "New Action" dialog with the "OK" button.



Fig. 16
17

Close the "Create Task" dialog with the "OK" button.



Fig. 17
18
  • The "WinCC_AutoStart" task is now ready in the Task Scheduler Library.
  • Close the Task Scheduler.



Fig. 18
19
  • In the Start menu you call the "AutoStart Configuration" of WinCC via "All Programs > Siemens Automation > SIMATIC > WinCC > Autostart".
  • Disable the "Autostart active" option.
    Warning
    This is absolutely necessary to ensure that in future the WinCC Autostart can only be enabled via the Task Scheduler. The original value code in the Registry editor is also deleted.
  • Leave the "Activate project at startup" option selected.
    Warning
    This is absolutely necessary, otherwise the WinCC Runtime will not become active.
  • If required, select the "Allow "Cancel" during activation" option.
    Note
    If you need this option, then it must also be activated via the batch file "AutoStart.bat".
  • Further information about the parameters of the batch file are available after this table.
  • Close the dialog with the "OK" button.



Fig. 19
20
  • Restart your operating system.
  • Five minutes after the operating system has started the Task Scheduler starts the "AutoStart.bat" batch file.



Fig. 20
21

The "AutoStart.bat" batch file now calls the "AutoStartRT" with the corresponding parameters and activates the WinCC Runtime with the selected project.



Fig. 21

Further information about the parameters of the batch file "AutoStart.bat"
With the /Active parameter you decide whether the project is to be opened only in WinCC Runtime or whether the WinCC project is to be opened briefly and then closed again immediately.

  • /Active:yes
    The WinCC project is opened only in WinCC Runtime. The WinCC Explorer is not started.
  • /Active:no
    The WinCC project is opened briefly in the WinCC Explorer and then closed again immediately.

    Note
    The corresponding "Activate project at startup" option in the "Autostart Configuration" must match the "/Active" parameter.

With the /LANG parameter you preselect the language for display of the "AutoStartRT" tool.

  • /LANG=DEU
    Runtime language is German
  • /LANG=ENU
    Runtime language is English

With the /EnableBreak parameter you enable/disable the "Cancel" button.

  • /EnableBreak:no
    It is not possible to operate the "Cancel" button while "AutoStartRT" is being executed.
  • /EnableBreak:yes
    It is possible to operate the "Cancel" button while "AutoStartRT" is being executed.

    Note
    The corresponding "Allow "Cancel" during activation" option in the "Autostart Configuration" must match the "/EnableBreak" parameter.

Additional Keywords
Startup

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
http://www.siemens.com/industrialsecurity.