Skip to content

Creating jobs

Prerequisite

For Backup and Comparison of the HMI runtime during operation, you must install an HMI Upload and Compare agent on the WinCC Station before actually configuring a job. This allows you to navigate directly to the folder structure of the WinCC Station.

Restart the WinCC Station after installing agents.

Setting up agents for the WinCC Job

  1. To activate the previously installed agents in the AdminClient, click on Agent configuration in the menu bar.
  2. Click on Create new agent and configure the agent in the Agent settings area.
  3. Enter the Computer name or the IP address of your WinCC station in the Agent address field.
  4. Activate the Port for upload agent and the Port for compare agent. By default, the ports 64010 and 64011 are preset. These ports are enabled for the Agents in the firewall when the octoplant system is installed. If the ports are not blocked by other applications, they can be used unchanged.
  5. You can enter a suitable comment in the Comments field to make it easier to find the agents.
  6. You will find all the Agents installed in this way in the left-hand area of the Agent settings with IP address/computer name and the specified comment.
  7. Test the connection to the Agents with Test connection.
  8. Click on Save and close.

To configure jobs for SIMATIC WinCC projects

  1. Start the AdminClient and open the Jobs module.
  2. Select the WinCC component of your project in the Project tree.
  3. Click on the Create button in the menu bar or drag and drop the component into the Jobs area.
  4. Select the job from the job list and navigate to the Job configuration column in the right-hand area of the interface. Check whether the WinCC is preset in Upload type and configure the General and Upload and compare fields.
  5. Activate the agents in the job configuration under Upload and compare via the dropdown menus Upload agent and Compare agent.

    Figure: Job configuration, WinCC settings section

  6. 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, this is selected automatically.
    2. Under Upload agent, enter the upload agent configured under Upload and Compare
    3. Under Path, configure the directory to be saved on the WinCC station.
    4. save the job with Save and test it with Execute selected jobs once.
  7. Check the Enable custom configuration for this job box if you want to make special compare settings.
  8. Click Edit. The Settings for backup files dialog opens.

    Figure: Backup file configuration dialog

  9. Click on Comparison configuration. The Comparison configuration dialog opens.

    Figure: Comparison configuration dialog

  10. You can select three options in the Comparison configuration dialog:

    1. Ignore computer name when comparing: Under certain circumstances, it can happen that the computer name is changed by WinCC (Ex: One of the two compare partners was distributed to a visualization).
    2. Ignore Ignore application type of the project when comparing: Under certain circumstances, it may happen that the application type of WinCC is changed (e.g.: One of the two compare partners was distributed to a visualization).
    3. Ignore user when comparing (if the user is a Web Navigator). There are three possibilities here:
      • Both compare partners have the Web Navigator property activated.
      • In the case of Users different, at least one of the two users has the WEB Navigator property activated.
      • In the case of User inserted / User deleted, the existing User has the WEB Navigator property activated.
  11. Click on Save and test the job execution.

FAQ

The WinCC comparison is terminated with errors when creating a backup with an Upload and Compare agent

The following error messages are displayed in the Event log of the executed job in AdminClient > Jobs:

  • SQLDriverConnect(), Ret: -1, State: S1000, Native: 0, Msg: [Microsoft][ODBC SQL Server Driver]The SSPI context cannot be created[21053]

  • Error adding the database {Drive}:\vdAgentArchive\VD_TMP_VD\{Path}\{File}.MDF to the MSSQL database system [21055]

  • SQLDriverConnect(), Ret: -1, State: S1000, Native: 0, Msg: [Microsoft][ODBC SQL Server Driver]The SSPI context cannot be created [21053]

  • Comparison Version with Backup ended with errors

Solution

Change the Microsoft SQL Server settings on the Agent PC as follows:

The steps may vary depending on the operating system and SQL Server instance used.

  1. Start the SQL Server Configuration Manager.
  2. Open the Start menu via the Windows Start button.
  3. In the Start menu, navigate to: Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Configuration Manager.
    The SQL Server Configuration Manager opens.

  4. Open the logs for SQLEXPRESS:

  5. Select the following branch in the tree structure in the left-hand area of the dialog: SQL Server 2005-Network Configuration > Protocols for SQLEXPRESS

Adjusting the properties of Protocol Named Pipes.

  1. Right-click on Protocol Named Pipes in the right-hand area of the dialog.
  2. Select Properties from the context menu. The Properties of Named dialog opens.
  3. Open the Protocol tab.
  4. Select the value Yes for the Enabled property.

Adjusting the properties of TCP/IP protocol

  1. Right-click on Protocol Name TCP/IP.
  2. Select Properties from the context menu. The Properties of TCP/IP dialog opens.
  3. Open the Protocol tab.
  4. Select the value No for the Enabled property.

Restarting the SQL server

  1. Open the Start menu via the Windows Start button.
  2. In the Start menu, navigate to: Settings > Control Panel. The Control Panel dialog opens.
  3. Double-click on the Administrative Tools icon. The Administrative Tools dialog opens.
  4. Double-click on the Services shortcut. The Services dialog opens.
  5. In the right-hand area of the dialog, sort the entries in column Name in descending order.
  6. Right-click on SQL Server (MSSQLSERVER) item.
  7. Select the Start new entry in the context menu.