Creating jobs

Requirements

To backup and compare the HMI Runtime during operation, (and before you can configure a job) you need to install a versiondog upload and compare agent on the WinCC station.

After installing agents, restart the WinCC station.

Configuring agents for SIMATIC WinCC jobs

  1. Start the AdminClient and open the Jobs module and select Agent configuration.
  2. Select Add agent and can configure the agent in Agent settings.
  3. In the field Agent address, enter either the computer name or the IP address of your WinCC station.
  4. 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 being changed.
  5. In the field Comments, you can enter an appropriate comment to find the agents that you require.
  6. You will find all agents installed this way in the left dropdown box of the Agent settings with the IP address or computer name as well as with any entered comment.
  7. Test the connection to the agents using Test connection.
  8. Select Save and close.

 

Configuring WinCC jobs

  1. In the project tree, select your WinCC component.
  2. In the menu tab, select create or drag-and-drop the components into the jobs section.
  3. Check in the section job configuration, if the upload type WinCC is being displayed.
  4. 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.
  5. Activate the agents in the job configuration located under Upload and compare. This can be accessed via Upload agent and Compare agent.
  6. Image: Job configuration, section WinCC settings

  7. Configure the WinCC settings:

    1. Under WinCC Project, select the WinCC project from the dropdown 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 by selecting Save and test it by selecting Execute selected jobs once.
  8. Check the checkbox under Enable custom configuration for this job if you want use special comparison settings.
  9. Click on Edit and the window Settings for backup files will open.

Image: Dialog Settings for backup files

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

Image: Dialog Comparison configuration

  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 (for example, one of the two comparison partners was allocated during visualization).
    2. Ignore application type of the project when comparing: In certain circumstances, it can occur that the application type is changed by WinCC (for example, one of the two comparison partners was allocated during visualization).
    3. Ignore user when comparing (if the user is a Web Navigator): 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.
  2. Select Save and test the job execution.

 

You can make further settings for jobs of this upload type in the AdminClient by using the Global Job Settings dialog as well as the INI files.

 

During the course of a backup executed by and Upload and 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 Job module 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. Select 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 dialog, 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 dialog, 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. Select 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

 

Related topics:
About versiondog -> Term Jobs
Upload and Compare agents -> Installing and updating agents
AdminClient -> Job configuration
AdminClient -> Adding additional job settings