Skip to main content

Change targetX and targetY

  1. 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.

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

    Duplicate add
  3. The (Add) block containing the ‘targetY’ variable is now duplicated.

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

    targetY in X
  5. 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.’

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

    Add in X and Y
  7. Download and run the project.

    Download and run

    Note: if the dry-erase marker is not drawing well, adjust the z-axis values to provide more force.

  8. Observe that the arm mounted on the V5 Workcell drew a straight diagonal line (linear motion) one inch along the x and y-axis.

    xy1
  9. Stop the project.

    Stop the project