Hardware manual
Impact Reference Guide Create a Task
3-33 Datalogic Automation Inc.
Create a Task
A task is a collection of one or more vision system tools connected in the tool tree. When you run the task,
tools are executed in order from top to bottom. When you call a task (with the Call Task tool), the called task
finishes before control is returned to the calling task.
To create a task
1. Start VPM.
2. Open the desired vision program, or create a new one.
3. Click the Add a Task button. A new tab is added below the program list. See page 3-34 for task config-
uration details.
4. Click the task icon and enter a name for the task, if desired.
5. In the toolbox, click on the tool you want to add to the task, then drag the tool to the task tree and drop
it in the desired place.
To add a tool after an existing tool, drop it on the existing tool.
To add a tool to the branch of a tool, drop it on the branch icon.
To move a tool in the task tree, click and drag the tool up or down to the desired location.
6. Continue to add and configure the tools you want in the task to create the desired program. (See
page 3-38 for tool configuration details.)
7. To delete a tool, select the tool in the tool tree, then click the Delete tool button in the VPM toolbar.
8. To move a tool in the task tree, click and drag the tool up or down to the desired location.
9. When you are ready to save your work, click the Save button.
To test a task
1. Select the desired task icon in the task tree.
2. Be sure that the Auto-update links check box is checked in Program Preferences.
3. Click the Run button or the Run Once on Current Image button on the Summary Table buttons. The
task runs one time, executing all the tools in the execution path, then stops.
Abort On Error If True, the program will stop running when the Task Timeout value is
reached or one of the tools in the task aborts due to an error. If an Abort
Task is defined in the task properties, that Abort task will be queued to
run.
If False, then the task keeps running and any remaining tools abort and
fail.
(See “Enable Timeout” on page 2-6 and “VPM Task Configuration” on
page 3-34.)
NOTE: This property applies only to tasks in a program that have the
Trigger Event type set to Image In Event and is effective only while the
device is online and triggering.
Output Name What it is
File Name The name of the Vision Program file. Names are case sensitive and
should end with the vp file extension.
General Properties
Name
What it is
Add a
task
Task
Icon