SIMATIC WinCC: creating jobs

In versiondog, you have the option to execute jobs according to a schedule. This checks as to whether a program corresponds to the most recently checked in version on the device or whether the newest version has been implemented on the device. In addition to this, you can create jobs in versiondog that produce a backup of a device.

Requirements

In to backup and compare the HMI Runtime during operation, (and before you can configure a job) you will need to install a versiondog upload and compare agent on the WinCC station. For more information, see Installing and updating agents. This will allow you to navigate directly on the WinCC directory structure.

After installing agents, restart the WinCC station.

How to configure jobs for SINAMTIC WinCC projects in versiondog:

  1. Start the AdminClient and open the jobs module.
  2. How to set up agents for a WinCC job

  3. In order to activate the agents that you previously installed in the ribbon, click on Agent configuration.
  4. In the drop-down box Agent configuraton with add agent, you can configure the agent. This is located under agent settings.
  5. In the field Agent address, enter either the computer name or the IP adresse of your WinCC station
  6. Activate the port for the upload agent and the port for compare agent. The following ports are preselected as standard 64010 and 64011. During the installation of the versiondog system, the standard ports, required for the agents, are opened in the firewall. As long as the ports are not blocked by other applications, they can be used without the need for changes
  7. In the field Comments, you can enter an appropriate comment so that you are able to find again the agents that you require
  8. You will find all agents installed this way in the left drop-down box of the agent configuration with the IP address/ computer name as well as with any entered comment.
  9. Test the connection to the agents using Test connection.
  10. Click on Save and close.
  11. Configuring WinCC jobs

  12. In the project tree, select your WinCC component.
  13. In the menu tab, click on create or drag & drop the components into the jobs section.
  14. Check in the section job configuration, if the upload type WinCC is being displayed.
  15. Make sure the desired settings are in place for the following sections: general, notification, upload and compare, create a version automatically after job run. The notification and create a version automatically after job run sections are only displayed if the necessary settings have been implemented. For more information on configuring the general sections, please refer to jobs in the tutorial AdminClient.
  16. Activate the agents in the job configuration located under Upload and compare. This can be accessed via Upload agent and Compare agent.
  17. Special settings for the current WinCC job

  18. Configure the WinCC settings:

    1. Under WinCC Project, select the WinCC project from the drop-down menu. If there is only one project in the component, it will be automatically selected.
    2. Under Upload Agent, enter the Upload Agent configured under Upload and Compare.
    3. Configure the directory you want to be backed up on the WinCC station under Path.
    4. Save the job mit Save and test it by clicking on Execute selected jobs once.
  19. Activate the checkbox under Enable custom configuration for this job if you want use special comparison settings.
  20. Click on Edit and the window Settings for backup files will open.

  1. Click on Configure comparator and the field Comparison configuration will open.

  1. In Comparison configuration, you can select one of the three following options:
    1. Ignore computer name in comparison: In certain circumstances, it can occur that the computer name is changed by WinCC (e.g. one of the two comparison partners was allocated during visualization).
    2. Ignore application type in comparison: In certain circumstances, it can occur that the application type is changed by WinCC (e.g. one of the two comparison partners was allocated during visualization).
    3. Ignore user in comparison (if the user a Web Navigator is. Here, there are three options:
      • Both comparison partners have the web navigator feature activated.
      • In the case of different users, at least one of the users has the feature WEB - navigator activated.
      • In the case of adding users / deleting users, the previous user has activated the feature WEB - Navigator.

FAQ: During the course of a backup carried out via Upload & Compare agent, the WinCC compare process terminates with errors. What do I have to change in order to run the comparison without errors?

 

The following error messages can be seen in the Event log of Jobmodule in AdminClient for the executed job:

  • SQLDriverConnect(), Ret: -1, State: S1000, Native: 0, Msg: [Microsoft][ODBC SQL Server Driver] The SSPI context cannot be created [21053]
  • Error when database was added <Drive:>\vdAgentArchive\VD_TMP_VD\<Pfad>\<Datei>.MDF of MSSQL data base system [21055]
  • SQLDriverConnect(), Ret: -1, State: S1000, Native: 0, Msg: [Microsoft][ODBC SQL Server Driver] The SSPI context cannot be created [21053]
  • Comparison of version with backup was terminated with errors

Solution

Adjust the settings of Microsoft SQL server in the PC where the agent is installed as described below:

This step may differ depending on the operating system and the SQL server instance.

  1. Start the SQL Server Configuration Manager.
  2. Press the Windows Start button and the Start menu will be displayed.
  3. In the Start menu, go to: Programs > Microsoft SQL Server 2005 > Configuration tools > SQL Server Configuration Manager
  4. The SQL Server Configuration Manager will open.
  5. Open the protocols for SQLEXPRESS:
    1. In the left section of the window, select the following item in the tree structure:
      SQL Server 2005 Network configuration > Protocols for SQLEXPRESS
  6. Change the properties of the protocol Named Pipes.
    1. In the right section of the window, right-click on the protocol Named Pipes.
    2. In the context menu, select Properties.
    3. The dialog Named Pipes Properties will open.
    4. Open the Protocol tab.
    5. Set Property enabled to Yes .

Changes properties of protocol TCP/IP

  1. Right-click on Protocol Name TCP/IP.
  2. In the context menu, select Properties .
  3. The TCP/IP Properties dialog will open.
  4. Select the Protocol tab.
  5. Set Property enabled to No .

Restart SQL Server

  1. Press the Windows Start button and the Start menu will be displayed.
  2. In the Start menu, go to: Settings > Control Panel.
  3. The Windows Control Panelwill open.
  4. Double-click on Administrative Tools.
  5. The Administrative Tools dialog will open.
  6. Double-click on Services.
  7. The Services dialog will open.
  8. In the right section, sort column by Name.
  9. Right-click on SQL Server (MSSQLSERVER).
  10. In the context menu, select Restart.

 

To FAQ list