Smart Motors - Robot Config - VEXcode Text

When starting to program with VEXcode V5 Text, Motor commands will not appear in the Command Reference until a motor has been configured.

Here are the different options when configuring a motor:

  • Adding a Motor
  • Changing a Motor’s Port Number
  • Renaming a Motor
  • Reversing a Motor
  • Deleting a Motor
  • Changing a Gear Cartridge 

Adding a Motor

To configure a motor, select the Robot Configuration button to open the Robot Configuration window. A project must be open in order to use the Robot Configuration window.

file-0BbnuX6XwG.png

Select “Add a device.”

file-4Zb1DiFTc1.png

Select “Motor.”

file-nrqTLjB7sa.png

Select which port the motor is attached to on the VEX V5 Brain. Ports that are already configured for other devices will be unavailable.

file-ebHBmr5zYj.png

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

file-Rw0s2H8ppC.png

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

Note: To configure the motor further, see the additional options below.


Changing a Motor’s Port Number

You can change the port number for the Motor by first selecting the Motor in the Robot Configuration window.

file-5lsvLQBd56.png

Then, select the plug icon in the top right corner of the Motor Settings window.

file-GymJVTN16w.png

Select its port on the Port Selection window, and the port number will turn blue. Then select "Done" to submit the change. 

file-OlZjbk3QL7.png


Renaming a Motor 

You can also rename the motor by changing the name in the text box at the top of the Motor Settings window. If you select an invalid name, the text box will highlight orange to indicate. Then select "Done" to submit the device changes to the configuration. 

file-YnFdu2Pg1m.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 command to the new name.

file-ZmoK3SkISU.png


Reversing a Motor

The Motor Settings window also allows the direction of the motors to be reversed.

file-5hVGWiXgqf.png


Deleting a Motor

Motors can also be deleted by selecting the “Delete” option at the bottom of the window.

file-cwg3FPSDAl.png

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


Changing a Gear Cartridge

The Motor Settings window also allows the gear cartridge to be changed.

file-obtuJxcdKf.png

Note: Changing the motor's gear cartridge will also change the color indicator on the motor.