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
integer in [ –128 127]
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.
3-Wire Expander (smart port) — Select the smart port that is used by 3-Wire Expander
None (default) |
If you are using a 3-Wire Expander, specify the smart port on VEX EDR V5 Robot Brain to which the expander is connected.
Port — Select the 3-wire port connected to the DC motor
A (default) |
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