| Author
|
Matrix Ltd.
|
| Version
|
1.2
|
| Category
|
|
DC Motor component
DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Motor_with_reverse.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Motor_with_reverse.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing how to drive the motor components and how to create sub assemblies attached to the motor output shafts in the simulation panels.
Motors
Macro reference
Break
|
Break
|
| Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property.
|
- VOID
|
Return
|
Coast
|
Coast
|
| Turn off power to the motor by setting the pins according to the 'Coast Pattern' property.
|
- VOID
|
Return
|
Disable
|
Disable
|
| Disable the motor output
|
- VOID
|
Return
|
Enable
|
Enable
|
| Enables the motor output
|
- VOID
|
Return
|
Forwards
|
Forwards
|
| Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property.
|
- UINT
|
Duty
|
| Sets the motor power for PWM or H-Bridge outputs
|
- VOID
|
Return
|
Reverse
|
Reverse
|
| Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property.
|
- UINT
|
Duty
|
| Sets the motor power for PWM or H-Bridge outputs
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Control Type
|
|
Control Method
|
| Controls how the motor is controlled. On/Off requires output pins PWM requires a hardware PWM channel H-Bridge requires a hardware H-Bridge channel
|
|
Bridge Type
|
|
|
|
Enable Method
|
| Decides how the motor outputs are enabled.
|
|
Connections
|
|
PinA
|
| First control pin - set 'pattern' properties below to set the pin's function.
|
|
PinB
|
| Second control pin - set 'pattern' properties below to set the pin's function.
|
|
Forwards Pattern
|
| The state of pins A and B required to drive the motor in a forwards direction.
|
|
Reverse Pattern
|
| States of pins A and B required to drive the motor in a reverse direction.
|
|
Coast Pattern
|
| States of pins A and B required to stop the motor.
|
|
Brake Pattern
|
| States of pins A and B required to stop the motor.
|
|
Simulation Settings
|
|
Speed
|
| Speed of the motor when turned on. Positive speed -> Counter-clockwsie Negative speed -> Clockwise
|
|
Acceleration
|
| Speed change per second when the motor us powered. Set to zero for instantaneous speed changes.
|
|
Deceleration
|
| Speed change per second when the motor is coasting with no power. Set to zero for instantaneous speed changes.
|
|
Show Actuator
|
| When active, an actuator is shown on the motor spindle to make the animation easier to observe.
|
|
Forwards Direction
|
| Which way the motor will rotate when the 'forwards' command is sent.
|
|
Linkage
|
|
Target Object
|
| An object or group to link the motor to - the object will move along with the motor.
|