Change targetX and targetY
-
Delete the ‘targetX’ variable by dragging it out of the workspace, or by right-clicking or long-pressing on the ‘targetX’ variable to launch the context menu. Select ‘Delete Block’ from the context menu.

-
Right-click or long-press on the (Add) block to launch the context menu. Then, select ‘Duplicate.’

-
The (Add) block containing the ‘targetY’ variable is now duplicated.

-
Place the duplicated (Add) block in the ‘x’ parameter of the [Linear move] block.

-
Right-click or long-press on the ‘targetY’ variable in the ‘x’ parameter of the [Linear move] block to launch the context menu. Select ‘targetX’ to change the name of the variable from ‘targetY’ to ‘targetX.’

-
The [Linear move] block now has an (Add) block in both the ‘x’ and ‘y’ parameters.

-
Download and run the project.

Note: if the dry-erase marker is not drawing well, adjust the z-axis values to provide more force.
-
Observe that the arm mounted on the V5 Workcell drew a straight diagonal line (linear motion) one inch along the x and y-axis.

-
Stop the project.
