Configuring a Motor Group in VEXcode EXP

When starting to program with VEXcode EXP, motor group blocks will not appear in the Toolbox until a motor group has been configured. A motor group will allow you to link two motors together in a VEXcode EXP project.

There are a number of reasons for creating a motor group, for more information on building with VEX EXP motor groups, view this article from the Knowledge Base.


Adding a Motor Group

Screen_Shot_2022-02-03_at_9.50.15_AM.png

To configure a motor group, select the Devices button to open the Devices window.

Select “Add a device.”

Select “Add a device.”

Screen_Shot_2022-02-03_at_9.48.53_AM.png

Select “Motor Group.”

Screen_Shot_2022-02-04_at_4.14.33_PM.png

Select which ports the motors in the motor group are attached to on the EXP Brain. Ports that are already configured for other devices will be unavailable.

Screen_Shot_2022-02-03_at_10.04.06_AM.png

Once the motor group has been configured, select “Done” to submit the device to the configuration.

Note: Selecting “Cancel” will undo any changes you have made to the device and will not be a part of the configuration.

To configure the motor group further, see the additional options below.


Changing a Motor Group’s Port Number(s)

Screen_Shot_2022-02-03_at_10.06.12_AM.png

You can change the port number of a motor by first selecting the motor group in the Devices window.

Screen_Shot_2022-02-03_at_10.06.46_AM.png

Then, select the plug icon of the port you want to change in the top right corner of the Options screen.

Screen_Shot_2022-02-03_at_10.09.59_AM.png

Select its port on the Port Selection screen, and the port number will turn green. Then select “Done” to submit the change.


Naming Motor Group Directions

Screen_Shot_2022-02-04_at_3.28.42_PM.png

The motor group Options screen allows you to rename the directions the motor spins from their default of “forward” and “reverse.” For example, if configuring an arm motor group, you can rename the directions to “Up” and “Down.” Then select “Done” to submit the device changes to the configuration.


Renaming a Motor Group

Screen_Shot_2022-02-04_at_4.04.32_PM.png

You can also rename the motor group by changing the name in the text box at the top of the Options screen. If you select an invalid name, the text box will highlight red to indicate. Then select “Done” to submit the device changes to the configuration.

Note: for more information about naming rules for variables and devices, view this article from the Knowledge Base.

Screen_Shot_2022-02-04_at_3.36.56_PM.png

If you change the name of a motor that is already being used in your project, you will need to update the motor name in the block to the new name using the drop down.


Reversing a Motor(s) in a Motor Group

Screen_Shot_2022-02-04_at_3.38.09_PM.png

The Options screen also allows the direction of the motors to be reversed.

Screen_Shot_2022-02-04_at_4.23.01_PM.png

Once a motor has been reversed, select “Done” to submit the changes to the configuration.

Note: if two motors in a motor group are facing one another, such as when two motors share a single shaft, one of the motors will need to be reversed or the two motors will be fighting against one another. For more information on building with VEX EXP motor groups, view this article from the Knowledge Base.


Deleting a Motor Group

Screen_Shot_2022-02-04_at_3.47.53_PM.png

A motor group can also be deleted by selecting the “Delete” option at the bottom of the screen.

Note: if you delete a motor group that is already being used in your project, the project will not work until the blocks using that motor group have also been deleted.


Using a Motor Group with a Controller

Screen_Shot_2022-02-04_at_3.49.24_PM.png

If you have both a controller and a motor group configured, you can configure the buttons on the controller to control the entire motor group, instead of a single motor.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus