This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

DC Motor

Represent connected DC motor and set motor speed

  • Library:
  • Simulink Coder Support Package for VEX EDR V5 Robot Brain / Actuators

Description

The DC Motor block represents a DC motor connected to a specified 3-wire port on an VEX® EDR V5 Robot Brain. The input signal sets the speed of the motor. There are eight 3-wire ports on the VEX EDR V5 Robot Brain that you can connect to DC motors.

Ports

Input

expand all

The block input value can range from –128 to 127. The sign determines the direction of rotation of the motor, and the amplitude determines the speed. A block input value of 0 stops the motor.

Data Types: double

Parameters

expand all

Select the 3-wire port on the VEX EDR V5 Robot Brain that is connected to the DC motor.

Do not assign the same port number to more than one DC Motor block within the same model.

Introduced in R2018b