Skip to content

Configure Job trigger via OPC UA

Create a dedicated job

  1. Start the AdminClient and open the Jobs module.
  2. In the Project tree, select the component for which a job is to be created.

    Info

    The feature Triggered by URL is compatible with all component types.

  3. Click on the Create button in the menu bar or drag and drop the component into the Jobs area.

  4. Check whether the correct upload type is selected in the Job configuration area.
  5. Select the entry Triggered by URL in the Execute dropdown menu.

    Under General, the fields for entering the Trigger URL and the Acknowledge URL are displayed.

    Figure: Job configuration, General

  6. Enter the URL to the command variable defined on the PLC in the Trigger URL field.

  7. Enter the URL to the status variable defined on the PLC in the Acknowledge URL field.
  8. If authentication has been activated for the OPC UA server, enter the corresponding login data in the Username and Password fields.
  9. Define the other fields of the job as required and confirm with OK.
  10. Run and test the job manually.

Execution

On the application program of the PLC, the user sets the command variable to the value 1.

The versiondog server checks the value of the command variable (Trigger URL) at specified intervals of 1 minute. If the variable has the value 1, the job is added to the queue for job execution.

When the job starts, versiondog writes a 1 to the status variable on the controller. As soon as the job has been successfully executed, the status variable receives the value 2. To allow a restart, versiondog sets the value back to 0 on the controller.


Related topics