Blocks#
This guide provides detailed information on how to use Blocks in VEXcode GO. Here, you will learn how to read and understand each block, with comprehensive descriptions, parameters, and usage examples.
Understanding the Block Entries#
Each block entry in the API Reference includes the following components:
Block Name and Image: This is the name of the block and an image of the block.
Description: A brief explanation of what the block does.
Parameters: A table showing all the available parameters for that block with expanded drop-downs.
Example: Provides an image demonstrating how to use the block in VEXcode.
Example Block Entry#
move Arm to position#
The move Arm to position block moves the 6-Axis Arm to a specified x, y, and z coordinate.
move [arm v] to position x:[120] y:[0] z:[100] [mm v] ▶
Parameter |
Description |
|---|---|
x |
The x-coordinate of the target position. |
y |
The y-coordinate of the target position. |
z |
The z-coordinate of the target position. |
unit |
Selects the unit for coordinates:
|
expanding arrow |
By default, this is a waiting block, so the 6-Axis Arm will finish moving before running the next block. To make the 6-Axis Arm start moving and immediately run the next block right away, expand the block to say and don’t wait. |
Example
when started
[Move arm to standard position at start of project.]
move [arm v] to position x:(120) y:(120) z:(75) [mm v] ▶