Represent connected DC motor and set motor speed
Simulink Coder Support Package for VEX EDR V5 Robot Brain / Actuators
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.
Port_1— Input analog signal that sets motor speed
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.
Port— Select the 3-wire port connected to the DC motor
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.