Job configuration¶
- Start the AdminClient and open the Jobs module.
-
In the Project tree, select the component for which a Job is to be created.
Info
This can be a component of any component type.
-
Click on the Create button in the menu bar or drag and drop the component into the Jobs area.
- Check whether the correct upload type is selected in the Job configuration area.
-
Select the entry Triggered by URL in the Execute dropdown menu.
-
In the General section, the fields for entering the Trigger URL and the Acknowledge URL are displayed.
- Enter the URL to the command variable defined on the PLC in the Trigger URL field.
- Enter the URL to the status variable defined on the PLC in the Acknowledge URL field.
- If authentication has been activated for the OPC UA server, enter the corresponding login data in the Username and Password fields.
- Define the other fields of the Job as required and confirm with OK.
The octoplant 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, octoplant 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. This can be set back to 0 on the controller, for example to allow a restart. This functionality must be implemented in the application program of the controller.