plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Autostart WinCC

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI
View previous topic :: View next topic  
Author Message
valz
Member 3
Member 3
valz

Joined: 26 Jul 2015
Posts: 771

PostPosted: 22/11/2021 17:23    Post subject: Autostart WinCC Reply with quote

How do you avoid synchronization problems with WinCC Autostart?
https://support.industry.siemens.com/cs/document/19249315/
In some deosebit 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
https://support.industry.siemens.com/cs/document/23061262/how-do-you-set-up-autostart-for-wincc-?dti=0&lc=en-US
Note
This FAQ response has been tested only for server/single-user systems.

Autostart WinCC Autostart WinCC
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.

Autostart WinCC Autostart WinCC
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.
Autostart WinCC Autostart WinCC
Fig. 03
4
Confirm any dialog displayed about user account control with "Yes".

Autostart WinCC Autostart WinCC
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. 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...".
Autostart WinCC Autostart WinCC
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.
Autostart WinCC Autostart WinCC
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.
Autostart WinCC Autostart WinCC
Fig. 07
8
Rename the text document to AutoStart.bat.
Confirm the change of the file name extension by clicking the "Yes" button.

Autostart WinCC Autostart WinCC
Fig. 08
9
In the Start menu you call the "Task Scheduler" via "All Programs > Accessories > System Tools".

Autostart WinCC Autostart WinCC
Fig. 09
10
In the "Actions" menu you select "Create Task...".
Autostart WinCC Autostart WinCC
Fig. 10
11
In the "General" tab you assign a name for the task.
Select the "Run with highest privileges" option.
Autostart WinCC Autostart WinCC
Fig. 11
12
In the "Triggers" tab you select a new trigger with the "New..." button.
Autostart WinCC Autostart WinCC
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.
Autostart WinCC Autostart WinCC
Fig. 13
14
In the "Actions" tab you produse a new with the "New..." button.
Autostart WinCC Autostart WinCC
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.

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

Autostart WinCC Autostart WinCC
Fig. 16
17
Close the "Create Task" dialog with the "OK" button.
Autostart WinCC Autostart WinCC
Fig. 17
18
The "WinCC_AutoStart" task is now ready in the Task Scheduler Library.
Close the Task Scheduler.
Autostart WinCC Autostart WinCC
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.
Autostart WinCC Autostart WinCC
Fig. 19
20
Restart your operating system.
Five minutes after the operating system has started the Task Scheduler starts the "AutoStart.bat" batch file.

Autostart WinCC Autostart WinCC
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.
Autostart WinCC Autostart WinCC
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro